罗元桥
2021-09-24 09e41d546b030b47661877d4b8141c88584d7598
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/ConvenientServiceCategoryService.java
New file
@@ -0,0 +1,65 @@
package com.panzhihua.service_community.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.panzhihua.common.model.dtos.community.convenient.ConvenientServiceCategoryDTO;
import com.panzhihua.common.model.dtos.community.convenient.PageConvenientServiceCategoryDTO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.service_community.model.dos.ConvenientServiceCategoryDO;
/**
 * @title: ConvenientServiceCategoryService
 * @projectName: 成都呐喊信息技术有限公司-智慧社区项目
 * @description: 便民服务分类服务类
 * @author: hans
 * @date: 2021/09/16 10:31
 */
public interface ConvenientServiceCategoryService extends IService<ConvenientServiceCategoryDO> {
    /**
     * 便民服务新增分类
     * @param convenientServiceCategoryDTO
     * @return 新增结果
     */
    R addServiceCategory(ConvenientServiceCategoryDTO convenientServiceCategoryDTO);
    /**
     * 便民服务分类编辑
     * @param convenientServiceCategoryDTO
     * @return 修改结果
     */
    R putServiceCategory(ConvenientServiceCategoryDTO convenientServiceCategoryDTO);
    /**
     * 便民服务分类删除
     * @param categoryId 便民服务分类id
     * @param operator 操作人员
     * @return 删除结果
     */
    R deleteServiceCategoryById(Long categoryId, Long operator);
    /**
     * 获取便民服务分类详情
     * @param categoryId 便民服务分类id
     * @return 分类详情
     */
    R getServiceCategoryById(Long categoryId);
    /**
     * 分页查询便民服务分类
     * @param pageConvenientServiceCategoryDTO
     * @return 分类详情
     */
    R pageServiceCategory(PageConvenientServiceCategoryDTO pageConvenientServiceCategoryDTO);
    /**
     * 获取所有便民服务分类
     * @return
     */
    R getAllServiceCategories();
    /**
     * 获取该社区商家数量大于0的分类
     * @param communityId
     * @return
     */
    R getSuitableServiceCategories(Long communityId);
}