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();
|
}
|
|
}
|