New file |
| | |
| | | package com.panzhihua.service_community.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.panzhihua.common.model.dtos.community.convenient.ConvenientMerchantDTO; |
| | | import com.panzhihua.common.model.dtos.community.convenient.DisableOrEnableConvenientMerchantDTO; |
| | | import com.panzhihua.common.model.dtos.community.convenient.ExportMerchantDTO; |
| | | import com.panzhihua.common.model.dtos.community.convenient.PageClassifyMerchantDTO; |
| | | import com.panzhihua.common.model.dtos.community.convenient.PageConvenientMerchantDTO; |
| | | import com.panzhihua.common.model.dtos.community.convenient.PagePopularMerchantDTO; |
| | | import com.panzhihua.common.model.dtos.community.convenient.PageSearchDTO; |
| | | import com.panzhihua.common.model.dtos.community.convenient.ResetPasswordConvenientMerchantDTO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.convenient.ConvenientMerchantVO; |
| | | import com.panzhihua.service_community.model.dos.ConvenientMerchantDO; |
| | | |
| | | /** |
| | | * @title: ConvenientMerchantService |
| | | * @projectName: 成都呐喊信息技术有限公司-智慧社区项目 |
| | | * @description: 便民服务商家服务类 |
| | | * @author: hans |
| | | * @date: 2021/09/16 16:02 |
| | | */ |
| | | public interface ConvenientMerchantService extends IService<ConvenientMerchantDO> { |
| | | /** |
| | | * 便民服务新增商家 |
| | | * @param convenientMerchantDTO |
| | | * @return 新增结果 |
| | | */ |
| | | R addMerchant(ConvenientMerchantDTO convenientMerchantDTO); |
| | | |
| | | /** |
| | | * 编辑便民服务商家 |
| | | * @param convenientMerchantDTO |
| | | * @return |
| | | */ |
| | | R putMerchant(ConvenientMerchantDTO convenientMerchantDTO); |
| | | |
| | | /** |
| | | * 删除便民服务商家 |
| | | * @param merchantId 商家id |
| | | * @param operator 操作人员 |
| | | * @return |
| | | */ |
| | | R deleteMerchant(Long merchantId, Long operator); |
| | | |
| | | /** |
| | | * 分页查询便民服务商家 |
| | | * @param pageConvenientMerchantDTO |
| | | * @return |
| | | */ |
| | | R pageMerchant(PageConvenientMerchantDTO pageConvenientMerchantDTO); |
| | | |
| | | /** |
| | | * 获取便民服务商家详情 |
| | | * @param merchantId |
| | | * @return |
| | | */ |
| | | R getMerchant(Long merchantId); |
| | | |
| | | /** |
| | | * 禁用/启用便民服务商家 |
| | | * @param disableOrEnableConvenientMerchantDTO |
| | | * @return |
| | | */ |
| | | R disableOrEnableMerchant(DisableOrEnableConvenientMerchantDTO disableOrEnableConvenientMerchantDTO); |
| | | |
| | | /** |
| | | * 重置便民服务商家账号密码 |
| | | * @param resetPasswordConvenientMerchantDTO |
| | | * @return |
| | | */ |
| | | R resetPasswordMerchant(ResetPasswordConvenientMerchantDTO resetPasswordConvenientMerchantDTO); |
| | | |
| | | /** |
| | | * 获取用户便民服务商家详情 |
| | | * @param account 商家绑定账号 |
| | | * @return |
| | | */ |
| | | R<ConvenientMerchantVO> getUserMerchantInfoByAccount(String account); |
| | | |
| | | /** |
| | | * 获取商便民服务商家信息 |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | R<ConvenientMerchantVO> getUserConvenientMerchantInfo(Long userId); |
| | | |
| | | /** |
| | | * 获取该社区下的热门商家 |
| | | * @param pagePopularMerchantDTO |
| | | * @return |
| | | */ |
| | | R getPopularMerchants(PagePopularMerchantDTO pagePopularMerchantDTO); |
| | | |
| | | /** |
| | | * 分页获取服务类型下商家信息 |
| | | * @param pageClassifyMerchantDTO |
| | | * @return |
| | | */ |
| | | R getClassifyMerchants(PageClassifyMerchantDTO pageClassifyMerchantDTO); |
| | | |
| | | /** |
| | | * 小程序获取商家详情 |
| | | * @param merchantId |
| | | * @return |
| | | */ |
| | | R getMerchantDetail(Long merchantId); |
| | | |
| | | /** |
| | | * 搜索商家信息 |
| | | * @param pageSearchDTO |
| | | * @return |
| | | */ |
| | | R pageSearchMerchant(PageSearchDTO pageSearchDTO); |
| | | |
| | | /** |
| | | * 增加商家店铺咨询量 |
| | | * @param merchantId |
| | | * @return |
| | | */ |
| | | R consultMerchant(Long merchantId); |
| | | |
| | | /** |
| | | * 增加商家店铺浏览量 |
| | | * @param merchantId |
| | | * @return |
| | | */ |
| | | R incrMerchantView(Long merchantId); |
| | | |
| | | /** |
| | | * 获取商家导出数据 |
| | | * @param exportMerchantDTO |
| | | * @return |
| | | */ |
| | | R exportMerchant(ExportMerchantDTO exportMerchantDTO); |
| | | |
| | | /** |
| | | * 定时任务每隔半小时将商家浏览量和咨询量总值计入指定商家数据中 |
| | | * @return |
| | | */ |
| | | R timedTaskWriteDataToMerchantJobHandler(); |
| | | } |