lidongdong
2023-10-18 ee3b9984201fac1a1c5d74c212615e5f0424c053
springcloud_k8s_panzhihuazhihuishequ/service_jinhui_community/src/main/java/com/panzhihua/service_jinhui_community/api/JinhuiMicroVolunteeringApi.java
@@ -1,8 +1,11 @@
package com.panzhihua.service_jinhui_community.api;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.model.vos.jinhui.JinhuiMicroVolunteeringTypeVO;
import com.panzhihua.common.model.vos.jinhui.JinhuiMicroVolunteeringVO;
import com.panzhihua.service_jinhui_community.entity.JinhuiMicroVolunteeringType;
import com.panzhihua.service_jinhui_community.service.JinhuiMicroVolunteeringService;
import com.panzhihua.service_jinhui_community.service.JinhuiMicroVolunteeringTypeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
@@ -21,6 +24,9 @@
    @Resource
    private JinhuiMicroVolunteeringService recordService;
    @Resource
    private JinhuiMicroVolunteeringTypeService volunteeringTypeService;
    /**
     * 分页查询
@@ -80,8 +86,69 @@
    }
    /***************************************************************************************************************
     *
     *
     *                        金汇微心愿分类
     *
     *
     *****************************************************************************************************************/
    /**
     * 分页查询
     * @param
     * @return
     */
    @GetMapping("/type/getList")
    public R volunteeringTypeGetList(@RequestParam("pageNum") int pageNum,
                                     @RequestParam("pageSize") int pageSize)
    {
        return volunteeringTypeService.getList(pageNum,pageSize);
    }
    /**
     * 详情
     * @param
     * @return
     */
    @GetMapping("/type/getDetails")
    public R volunteeringTypeGetDetails(@RequestParam("id") String id)
    {
        return R.ok(volunteeringTypeService.getDetails(id));
    }
    /**
     * 新增
     * @param
     * @return
     */
    @PostMapping("/type/addData")
    public R volunteeringTypeAddData(@RequestBody JinhuiMicroVolunteeringTypeVO item)
    {
        return volunteeringTypeService.addData(item);
    }
    /**
     * 编辑
     * @param
     * @return
     */
    @PostMapping("/type/editData")
    public R volunteeringTypeEditData(@RequestBody JinhuiMicroVolunteeringTypeVO item)
    {
        return volunteeringTypeService.editData(item);
    }
    /**
     * 删除
     * @param
     * @return
     */
    @DeleteMapping("/type/expurgateData")
    public R volunteeringTypeExpurgateData(@RequestParam("id") String id)
    {
        return volunteeringTypeService.expurgateData(id);
    }
}