mirror of
https://github.com/suyiiyii/SIMS.git
synced 2025-06-02 00:16:11 +08:00
docs(record): 添加奖惩记录接口的描述
This commit is contained in:
parent
c484bdcf69
commit
675c07939e
@ -1,5 +1,6 @@
|
||||
package top.suyiiyii.sims.controller;
|
||||
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import top.suyiiyii.sims.common.Result;
|
||||
import top.suyiiyii.sims.dto.CommonResponse;
|
||||
@ -12,22 +13,26 @@ import java.util.List;
|
||||
public class RecordController {
|
||||
|
||||
|
||||
@Operation(summary = "获取所有奖惩记录")
|
||||
@GetMapping("/admin/record")
|
||||
public Result<List<RecordDto>> adminRecord(Integer page, Integer size) {
|
||||
return Result.success(new ArrayList<>());
|
||||
}
|
||||
|
||||
@Operation(summary = "获取自己的奖惩记录")
|
||||
@GetMapping("/record")
|
||||
public Result<List<RecordDto>> record(Integer page, Integer size) {
|
||||
return Result.success(new ArrayList<>());
|
||||
}
|
||||
|
||||
@Operation(summary = "更新单个奖惩记录")
|
||||
@PutMapping("/admin/record/{id}")
|
||||
public Result<CommonResponse> adminUpdateRecord(@PathVariable Integer id, @RequestBody RecordDto recordDto) {
|
||||
|
||||
return Result.msg("修改成功");
|
||||
}
|
||||
|
||||
@Operation(summary = "删除单个奖惩记录")
|
||||
@DeleteMapping("/admin/record/{id}")
|
||||
public Result<CommonResponse> adminDeleteRecord(@PathVariable Integer id) {
|
||||
|
||||
@ -35,6 +40,7 @@ public class RecordController {
|
||||
}
|
||||
|
||||
|
||||
@Operation(summary = "添加奖惩记录")
|
||||
@PostMapping("/admin/record")
|
||||
public Result<CommonResponse> adminAddRecord(@RequestBody RecordDto recordDto) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user