| | |
| | | package com.panzhihua.common.service.jinhui; |
| | | |
| | | import com.panzhihua.common.model.dtos.community.ComActWorkGuideDTO; |
| | | import com.panzhihua.common.model.dtos.community.PageActWorkGuideDTO; |
| | | import com.panzhihua.common.model.dtos.community.convenient.PageConvenientMerchantDTO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.SignactivityVO; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import com.panzhihua.common.model.vos.community.ComActWorkGuideClassifyVO; |
| | | import com.panzhihua.common.model.vos.jinhui.*; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | /** |
| | | * 川工之家 |
| | | * 金汇社区 |
| | | */ |
| | | @FeignClient(name = "huacheng-jinhui-community") |
| | | public interface JinhuiCommunityService |
| | | { |
| | | /**************************************************************************************************** |
| | | * |
| | | * |
| | | * 金汇币总币 |
| | | * |
| | | * |
| | | *****************************************************************************************************/ |
| | | |
| | | @ApiOperation(value = "金汇社区报名/取消活动接口") |
| | | @PostMapping("/jinhuiActivity/signActivity") |
| | | public R signActivity(@RequestBody SignactivityVO signactivityVO); |
| | | |
| | | @GetMapping("/jinhuiCoinTable/getList") |
| | | public R coinTableGetList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam("type") String type); |
| | | |
| | | @GetMapping("/jinhuiCoinTable/getDetails") |
| | | public R coinTableGetDetails(@RequestParam("userId") String userId); |
| | | /** |
| | | * 新增 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @PostMapping("/jinhuiCoinTable/addData") |
| | | public R coinTableAddData(@RequestBody JinhuiCoinGeneralTableVO jinhuiGoldCoinRecordVO); |
| | | |
| | | @PostMapping("/jinhuiCoinTable/editData") |
| | | public R coinTableEditData(@RequestBody JinhuiCoinGeneralTableVO jinhuiGoldCoinRecordVO); |
| | | |
| | | @PostMapping("/jinhuiCoinTable/expurgateData") |
| | | public R coinTableExpurgateData(@RequestParam("id") String id); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /**************************************************************************************************** |
| | | * |
| | | * |
| | | * 金汇币记录 |
| | | * |
| | | * |
| | | *****************************************************************************************************/ |
| | | |
| | | @GetMapping("/jinhuiRecord/getList") |
| | | public R recordGetList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam("userId") String userId); |
| | | |
| | | @GetMapping("/jinhuiRecord/getDetails") |
| | | public R recordGetDetails(@RequestParam("id") String id); |
| | | /** |
| | | * 新增 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @PostMapping("/jinhuiRecord/addData") |
| | | public R recordAddData(@RequestBody JinhuiGoldCoinRecordVO jinhuiGoldCoinRecordVO); |
| | | |
| | | @PostMapping("/jinhuiRecord/editData") |
| | | public R recordEditData(@RequestBody JinhuiGoldCoinRecordVO jinhuiGoldCoinRecordVO); |
| | | |
| | | @PostMapping("/jinhuiRecord/expurgateData") |
| | | public R recordExpurgateData(@RequestParam("id") String id); |
| | | |
| | | |
| | | /************************************************************************************************* |
| | | * |
| | | * 办事指南 |
| | | * |
| | | ***************************************************************************************************/ |
| | | |
| | | /** |
| | | * 办事指南_新增 |
| | | * |
| | | * @param workGuideDTO |
| | | * 新增信息 |
| | | * @return 新增结果 |
| | | */ |
| | | @PostMapping("/JinhuiWorkGuide/addworkguide") |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public R addWorkGuide(@RequestBody ComActWorkGuideDTO workGuideDTO, @RequestParam("userId") String userId); |
| | | |
| | | /** |
| | | * 办事指南_编辑 |
| | | * |
| | | * @param workGuideDTO |
| | | * @return 编辑结果 |
| | | */ |
| | | @PostMapping("/JinhuiWorkGuide/editworkguide") |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public R putWorkGuide(@RequestBody ComActWorkGuideDTO workGuideDTO, @RequestParam("userId") String userId) ; |
| | | |
| | | /** |
| | | * 办事指南_详情 |
| | | * |
| | | * @param workGuideId |
| | | * @return 详情 |
| | | */ |
| | | @GetMapping("/JinhuiWorkGuide/detailworkguide") |
| | | public R detailWorkGuide(@RequestParam("workGuideId") String workGuideId, |
| | | @RequestParam("communityId") String communityId) ; |
| | | |
| | | /** |
| | | * 办事指南_分页 |
| | | * |
| | | * @param pageActWorkGuideDTO |
| | | * 查询参数 |
| | | * @return 分页集合 |
| | | */ |
| | | @PostMapping("/JinhuiWorkGuide/pageworkguide") |
| | | public R pageWorkGuide(@RequestBody PageActWorkGuideDTO pageActWorkGuideDTO) ; |
| | | |
| | | /** |
| | | * 办事指南_删除 |
| | | * |
| | | * @param workGuideId |
| | | * 办事指南id |
| | | * @return 删除结果 |
| | | */ |
| | | @PostMapping("/JinhuiWorkGuide/delectworkguide") |
| | | R delectWorkGuide(@RequestParam("workGuideId") String workGuideId) ; |
| | | |
| | | /** |
| | | * 分页查询办事执念-分类管理 addWorkGuideClassify 分页查询办事执念-分类管理 |
| | | * @param comActWorkGuideClassifyVO 查询参数 |
| | | * @return R 返回结果 |
| | | * @author txb |
| | | * @date 2021/8/31 15:03 |
| | | */ |
| | | @PostMapping("/JinhuiWorkGuide/workGuide/classify/apage") |
| | | public R pageWorkGuideClassify(@RequestBody ComActWorkGuideClassifyVO comActWorkGuideClassifyVO) ; |
| | | |
| | | /** |
| | | * 办事执念-分类管理新增或修改 addWorkGuideClassify 办事执念-分类管理新增或修改 |
| | | * @param comActWorkGuideClassifyVO 新增或修改参数 |
| | | * @return R 返回结果 |
| | | * @author txb |
| | | * @date 2021/8/31 15:03 |
| | | */ |
| | | @PostMapping("/JinhuiWorkGuide/workGuide/classify/add") |
| | | public R addWorkGuideClassify(@RequestBody ComActWorkGuideClassifyVO comActWorkGuideClassifyVO) ; |
| | | |
| | | /** |
| | | * 办事执念-分类管理删除 addWorkGuideClassify 办事执念-分类管理删除 |
| | | * @param workGuideClassifyId 办事执念-分类管理id |
| | | * @return R 返回结果 |
| | | * @author txb |
| | | * @date 2021/8/31 15:03 |
| | | */ |
| | | @GetMapping("/JinhuiWorkGuide/workGuide/classify/delete") |
| | | public R deleteWorkGuideClassify(@RequestParam("workGuideClassifyId") String workGuideClassifyId) ; |
| | | |
| | | /** |
| | | * 办事指南-分类管理列表查询 getWorkGuideClassifyList 办事指南-分类管理列表查询 |
| | | * @return R 返回结果 |
| | | * @author txb |
| | | * @date 2021/8/31 15:03 |
| | | */ |
| | | @GetMapping("/JinhuiWorkGuide/workGuide/classify/getList") |
| | | public R getWorkGuideClassifyList(@RequestParam("areaCode")String areaCode) ; |
| | | |
| | | /** |
| | | * 办事指南列表-按分类查询 |
| | | * @param pageActWorkGuideDTO 请求参数 |
| | | * @return 办事指南分类列表 |
| | | */ |
| | | @PostMapping("/JinhuiWorkGuide/listworkguide") |
| | | public R listWorkGuide(@RequestBody PageActWorkGuideDTO pageActWorkGuideDTO) ; |
| | | |
| | | /** |
| | | * 根据办事指南分类id查询办事指南列表 |
| | | * @param classifyId 办事指南分类id |
| | | * @return 办事指南列表数据 |
| | | */ |
| | | @GetMapping("/JinhuiWorkGuide/listworkguide/classify") |
| | | public R listWorkGuideByClassifyId(@RequestParam("classifyId") String classifyId) ; |
| | | |
| | | |
| | | /********************************************************************************************** |
| | | * |
| | | * |
| | | * 便民服务 |
| | | * |
| | | * |
| | | ************************************************************************************************/ |
| | | |
| | | /** |
| | | * 删除便民服务商家 |
| | | * |
| | | * @param merchantId |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/jinhuiMerchant/delete") |
| | | public R deleteMerchant(@RequestParam("merchantId") String merchantId, @RequestParam("operator") String operator); |
| | | |
| | | /** |
| | | * 分页查询便民服务商家 运营后台 |
| | | * |
| | | * @param pageConvenientMerchantDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/jinhuiMerchant/page") |
| | | public R pageMerchant(@RequestBody PageConvenientMerchantDTO pageConvenientMerchantDTO); |
| | | |
| | | /** |
| | | * 获取便民服务商家详情 |
| | | * |
| | | * @param merchantId |
| | | * @return |
| | | */ |
| | | @GetMapping("/jinhuiMerchant/get") |
| | | public R getMerchant(@RequestParam("merchantId") String merchantId); |
| | | |
| | | |
| | | /** |
| | | * 分页查询 商家类别 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @GetMapping("/jinhuiMerchant/getCategories") |
| | | public R getListCategories(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize); |
| | | |
| | | |
| | | /************************************************************************************************************** |
| | | * |
| | | * |
| | | * 商家评论 |
| | | * |
| | | * |
| | | *************************************************************************************************************/ |
| | | /** |
| | | * 商家评论列表 |
| | | * @param pageNum |
| | | * @param pageSize |
| | | * @param merchantId |
| | | * @return |
| | | */ |
| | | @GetMapping("/jinghuiMerchantEvaluate/getList") |
| | | public R merchantEvaluateGetList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam("merchantId") String merchantId); |
| | | |
| | | /** |
| | | * 商家评论列单个详情 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @GetMapping("/jinghuiMerchantEvaluate/getDetails") |
| | | public R merchantEvaluateGetDetails(@RequestParam("id") String id); |
| | | /** |
| | | * 商家评论列添加 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @PostMapping("/jinghuiMerchantEvaluate/addData") |
| | | public R merchantEvaluateAddData(@RequestBody JinghuiMerchantEvaluateVO item); |
| | | |
| | | /** |
| | | * 商家评论列编辑 |
| | | * @param item |
| | | * @return |
| | | */ |
| | | @PostMapping("/jinghuiMerchantEvaluate/editData") |
| | | public R merchantEvaluateEditData(@RequestBody JinghuiMerchantEvaluateVO item); |
| | | |
| | | /** |
| | | * 商家评论列删除 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @PostMapping("/jinghuiMerchantEvaluate/expurgateData") |
| | | public R merchantEvaluateExpurgateData(@RequestParam("id") String id); |
| | | |
| | | |
| | | /********************************************************************************************************* |
| | | * |
| | | * |
| | | * 金汇预约空间 |
| | | * |
| | | * |
| | | *********************************************************************************************************/ |
| | | /** |
| | | * 金汇空间预约模块分页查询 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @GetMapping("/JinhuiInterspace/interspaceGetList") |
| | | public R interspaceGetList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam(value = "intendantType",required = false) String intendantType); |
| | | |
| | | /** |
| | | * 金汇空间预约模块单个详情 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @GetMapping("/JinhuiInterspace/interspaceGetList") |
| | | public R interspaceGetDetails(@RequestParam("id") String id); |
| | | |
| | | /** |
| | | * 金汇空间预约模块新增 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @PostMapping("/JinhuiInterspace/interspaceAddData") |
| | | public R interspaceAddData(@RequestBody JinhuiInterspaceVO item); |
| | | |
| | | |
| | | /** |
| | | * 金汇空间预约模块编辑 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @PostMapping("/JinhuiInterspace/interspaceEditData") |
| | | public R interspaceEditData(@RequestBody JinhuiInterspaceVO item); |
| | | |
| | | |
| | | /** |
| | | * 金汇空间预约模块删除 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @GetMapping("/JinhuiInterspace/interspaceExpurgateData") |
| | | public R interspaceExpurgateData(@RequestParam("id") String id); |
| | | |
| | | |
| | | /**************************************************************************************************** |
| | | * |
| | | * |
| | | * 空间预约分类 |
| | | * |
| | | * |
| | | ******************************************************************************************************/ |
| | | /** |
| | | * 空间预约分类分页查询 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @GetMapping("/JinhuiInterspace/interspaceTypeGetList") |
| | | public R interspaceTypeGetList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize); |
| | | |
| | | /** |
| | | * 空间预约分类单个详情 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @GetMapping("/JinhuiInterspace/interspaceTypeGetDetails") |
| | | public R interspaceTypeGetDetails(@RequestParam("id") String id); |
| | | |
| | | /** |
| | | * 空间预约分类新增 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @PostMapping("/JinhuiInterspace/interspaceTypeAddData") |
| | | public R interspaceTypeAddData(@RequestBody JinhuiInterspaceTypeVO item); |
| | | |
| | | /** |
| | | * 空间预约分类编辑 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @PostMapping("/JinhuiInterspace/interspaceTypeEditData") |
| | | public R interspaceTypeEditData(@RequestBody JinhuiInterspaceTypeVO item); |
| | | |
| | | |
| | | /** |
| | | * 空间预约分类删除 |
| | | * @param |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/JinhuiInterspace/interspaceTypeExpurgateData") |
| | | public R interspaceTypeExpurgateData(@RequestParam("id") String id); |
| | | |
| | | |
| | | |