liujie
2025-05-12 83ae9bfcc24103dd951558020f005852f779caab
springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/java/com/panzhihua/sangeshenbian/controller/ComplaintProgressController.java
@@ -1,6 +1,18 @@
package com.panzhihua.sangeshenbian.controller;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.sangeshenbian.model.dto.ComplaintProcessDTO;
import com.panzhihua.sangeshenbian.service.IComplaintProgressService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Lazy;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@@ -13,8 +25,23 @@
 * @author 
 * @since 2025-02-22
 */
@Api(tags = {"【2.0.1】诉求办理进度相关接口"})
@RestController
@RequestMapping("/complaint-progress")
@RequestMapping("/applet/complaint-progress")
@RequiredArgsConstructor(onConstructor_ = {@Lazy})
public class ComplaintProgressController {
    private final IComplaintProgressService complaintProgressService;
    @DeleteMapping("/{id}")
    @ApiOperation("【2.0.1】删除办理进度")
    public R<?> delete(@ApiParam(name = "id", value = "进度id", required = true) @PathVariable("id") Long id) {
        complaintProgressService.removeById(id);
        return R.ok();
    }
    @PutMapping("/edit")
    @ApiOperation("【2.0.1】编辑办理进度")
    public R<?> edit(@RequestBody ComplaintProcessDTO dto) {
        complaintProgressService.edit(dto);
        return R.ok();
    }
}