广州市综治平台后端
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
package cn.huge.module.cases.controller;
 
import cn.huge.base.common.bo.R;
import cn.huge.base.config.CurrentUser;
import cn.huge.module.cases.domain.dto.CaseUpdateDTO;
import cn.huge.module.cases.service.ICaseModifyService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
/**
 * 案件修改记录控制器
 *
 * @author trae
 * @since 2024-02-14
 */
@Api(tags = "案件修改记录接口")
@RestController
@RequestMapping("/api/web/case/modify")
public class CaseModifyController {
 
    @Autowired
    private ICaseModifyService caseModifyService;
 
    @ApiOperation(value = "更新案件信息", notes = "根据传入的案件信息进行更新,并记录修改历史")
    @PostMapping("/update")
    public R<Void> updateCase(
            @ApiParam(value = "案件更新信息", required = true) @RequestBody CaseUpdateDTO caseUpdateDTO,
            @ApiParam(value = "当前用户ID", required = true) @CurrentUser String userId) {
        caseModifyService.updateCase(caseUpdateDTO, userId);
        return R.ok();
    }
}