lidongdong
2023-10-25 d2be0b36553b566f6034923290646b17a7a34f44
springcloud_k8s_panzhihuazhihuishequ/service_jinhui_community/src/main/java/com/panzhihua/service_jinhui_community/api/JinhuiSnapshotApi.java
@@ -2,11 +2,14 @@
import com.panzhihua.common.controller.BaseController;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.model.vos.jinhui.JinhuiReseauVO;
import com.panzhihua.common.model.vos.jinhui.JinhuiSnapshotClassifyVO;
import com.panzhihua.common.model.vos.jinhui.JinhuiSnapshotVO;
import com.panzhihua.service_jinhui_community.entity.JinhuiReseau;
import com.panzhihua.service_jinhui_community.entity.JinhuiSnapshot;
import com.panzhihua.service_jinhui_community.entity.JinhuiSnapshotClassify;
import com.panzhihua.service_jinhui_community.service.JinhuiComActWorkGuideService;
import com.panzhihua.service_jinhui_community.service.JinhuiReseauService;
import com.panzhihua.service_jinhui_community.service.JinhuiSnapshotClassifyService;
import com.panzhihua.service_jinhui_community.service.JinhuiSnapshotService;
import lombok.extern.slf4j.Slf4j;
@@ -29,6 +32,9 @@
    @Resource
    private JinhuiSnapshotService snapshotService;
    @Resource
    private JinhuiReseauService reseauService;
    /************************************************************************************************************
     *
     *
@@ -44,18 +50,18 @@
     */
    @GetMapping("/getClassifyList")
    public R getClassifyList(@RequestParam("pageNum") int pageNum,
                     @RequestParam("pageSize") int pageSize) {
                             @RequestParam("pageSize") int pageSize) {
        return classifyService.getList(pageNum, pageSize);
    }
    /**
     * 详情
     *
     * @param id
     * @return
     */
    @GetMapping("/getClassifyDetails")
    public JinhuiSnapshotClassify getClassifyDetails(String id)
    {
    public JinhuiSnapshotClassify getClassifyDetails(@RequestParam("id") String id) {
        return classifyService.getDetails(id);
    }
@@ -67,30 +73,29 @@
     * @return
     */
    @PostMapping("/addClassifyData")
    public R addClassifyData(@RequestBody JinhuiSnapshotClassifyVO item)
    {
    public R addClassifyData(@RequestBody JinhuiSnapshotClassifyVO item) {
        return classifyService.addData(item);
    }
    /**
     * 编辑
     *
     * @param item
     * @return
     */
    @PostMapping("/editClassifyData")
    public R editClassifyData(@RequestBody JinhuiSnapshotClassifyVO item)
    {
    public R editClassifyData(@RequestBody JinhuiSnapshotClassifyVO item) {
        return classifyService.editData(item);
    }
    /**
     * 删除
     *
     * @param id
     * @return
     */
    @DeleteMapping("/expurgateClassifyData")
    public R expurgateClassifyData(@RequestParam("pageNum")String id)
    {
    public R expurgateClassifyData(@RequestParam("id") String id) {
        return classifyService.expurgateData(id);
    }
@@ -100,43 +105,100 @@
     *                                    金汇随手拍
     *
     *********************************************************************************************************/
    /**
     * 分页查询
     *
     * @param
     * @return
     */
    public R getShotList(int pageNum,int pageSize)
    {
        return snapshotService.getList(pageNum,pageSize);
    @GetMapping("/getShotList")
    public R getShotList(@RequestParam("pageNum") int pageNum,
                         @RequestParam("pageSize") int pageSize) {
        return snapshotService.getList(pageNum, pageSize);
    }
    public JinhuiSnapshot getShotDetails(String id)
    {
    @GetMapping("/getShotDetails")
    public JinhuiSnapshot getShotDetails(@RequestParam("id") String id) {
        return snapshotService.getDetails(id);
    }
    /**
     * 新增
     *
     * @param
     * @return
     */
    public R addShotData(JinhuiSnapshotVO item)
    {
    @PostMapping("/addShotData")
    public R addShotData(@RequestBody JinhuiSnapshotVO item) {
        return snapshotService.addData(item);
    }
    public R editShotData(JinhuiSnapshotVO item)
    {
    @PostMapping("/editShotData")
    public R editShotData(@RequestBody JinhuiSnapshotVO item) {
        return snapshotService.editData(item);
    }
    public R expurgateShotData(String id)
    {
    @DeleteMapping("/expurgateShotData")
    public R expurgateShotData(@RequestParam("id") String id) {
        return snapshotService.expurgateData(id);
    }
    /********************************************************************************************************
     *
     *
     *                             金汇网格员
     *
     *
     ****************************************************************************************************/
    /**
     * 分页查询
     *
     * @param
     * @return
     */
    @GetMapping("/getReseauList")
    public R getReseauList(int pageNum, int pageSize) {
        return reseauService.getList(pageNum, pageSize);
    }
    @GetMapping("/getReseauDetails")
    public R getReseauDetails(String id)
    {
        return R.ok(reseauService.getDetails(id));
    }
    /**
     * 新增
     * @param
     * @return
     */
    @PostMapping("/addReseauData")
    public R addReseauData(JinhuiReseauVO item)
    {
        return reseauService.addData(item);
    }
    @PostMapping("/editReseauData")
    public R editReseauData(JinhuiReseauVO item)
    {
        return reseauService.editData(item);
    }
    @PostMapping("/expurgateReseauData")
    public R expurgateReseauData(String id)
    {
        return reseauService.expurgateData(id);
    }
}