mitao
7 天以前 21488a55ba76ae4f1296b608fbcdf1f06036db64
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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;
 
/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 
 * @since 2025-02-22
 */
@Api(tags = {"【2.0.1】诉求办理进度相关接口"})
@RestController
@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();
    }
 
}