package com.panzhihua.service_community.api; import com.panzhihua.service_community.service.ComActEasyPhotoHandlerService; import com.panzhihua.common.model.dtos.common.*; import com.panzhihua.common.model.vos.R; import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; /** * title: 随手拍、微心愿处理人绑定表(ComActEasyPhotoHandler) 表控制层 *
* projectName 成都呐喊信息技术有限公司-智慧社区项目 *
* description: 随手拍、微心愿处理人绑定表 * * @author lyq * @date 2022-03-01 13:45:10 */ @RestController @RequestMapping("/comActEasyPhotoHandler") public class ComActEasyPhotoHandlerController { @Resource private ComActEasyPhotoHandlerService comActEasyPhotoHandlerService; /** * description queryByPage 分页查询 * * @param comActEasyPhotoHandler 请求参数 * @return 分页查询返回参数 * @author lyq * @date 2022-03-01 13:45:10 */ @PostMapping("/page") public R queryByPage(@RequestBody PageComActEasyPhotoHandlerDto comActEasyPhotoHandler) { return this.comActEasyPhotoHandlerService.queryByPage(comActEasyPhotoHandler); } /** * description add 新增数据 * * @param comActEasyPhotoHandler 请求参数 * @return 新增结果 * @author lyq * @date 2022-03-01 13:45:10 */ @PostMapping("/add") public R add(@RequestBody AddComActEasyPhotoHandlerDto comActEasyPhotoHandler) { return this.comActEasyPhotoHandlerService.insert(comActEasyPhotoHandler); } /** * description edit 编辑数据 * * @param comActEasyPhotoHandler 请求参数 * @return 编辑结果 * @author lyq * @date 2022-03-01 13:45:10 */ @PostMapping("/edit") public R edit(@RequestBody EditComActEasyPhotoHandlerDto comActEasyPhotoHandler) { return this.comActEasyPhotoHandlerService.update(comActEasyPhotoHandler); } /** * description deleteById 删除数据 * * @param id 主键id * @return 删除结果 * @author lyq * @date 2022-03-01 13:45:10 */ @GetMapping("/delete") public R deleteById(@RequestParam("id") Long id) { return this.comActEasyPhotoHandlerService.deleteById(id); } /** * description detailById 查询详情 * * @param id 主键id * @return 详情数据 * @author lyq * @date 2022-03-01 13:45:10 */ @GetMapping("/detail") public R detailById(@RequestParam("id") Long id) { return this.comActEasyPhotoHandlerService.detailById(id); } /** * description queryByPage 查询列表 * * @param comActEasyPhotoHandler 请求参数 * @return 列表数据 * @author lyq * @date 2022-03-01 13:45:10 */ @PostMapping("/list") public R queryByList(@RequestBody PageComActEasyPhotoHandlerDto comActEasyPhotoHandler) { return this.comActEasyPhotoHandlerService.queryByList(comActEasyPhotoHandler); } }