提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.api.logger; |
H |
2 |
|
|
3 |
import com.iailab.framework.common.pojo.CommonResult; |
|
4 |
import com.iailab.framework.common.pojo.PageResult; |
|
5 |
import com.iailab.module.system.api.logger.dto.OperateLogCreateReqDTO; |
|
6 |
import com.iailab.module.system.api.logger.dto.OperateLogPageReqDTO; |
|
7 |
import com.iailab.module.system.api.logger.dto.OperateLogRespDTO; |
|
8 |
import com.iailab.module.system.enums.ApiConstants; |
|
9 |
import feign.QueryMap; |
|
10 |
import io.swagger.v3.oas.annotations.Operation; |
|
11 |
import io.swagger.v3.oas.annotations.tags.Tag; |
|
12 |
import org.springframework.cloud.openfeign.FeignClient; |
|
13 |
import org.springframework.web.bind.annotation.PostMapping; |
|
14 |
import org.springframework.web.bind.annotation.RequestBody; |
|
15 |
|
|
16 |
import javax.validation.Valid; |
|
17 |
|
1ecdfb
|
18 |
@FeignClient(name = ApiConstants.NAME) |
e7c126
|
19 |
@Tag(name = "RPC 服务 - 操作日志") |
H |
20 |
public interface OperateLogApi { |
|
21 |
|
|
22 |
String PREFIX = ApiConstants.PREFIX + "/operate-log"; |
|
23 |
|
|
24 |
@PostMapping(PREFIX + "/create") |
|
25 |
@Operation(summary = "创建操作日志") |
|
26 |
CommonResult<Boolean> createOperateLog(@Valid @RequestBody OperateLogCreateReqDTO createReqDTO); |
|
27 |
|
|
28 |
@PostMapping(PREFIX + "/page") |
|
29 |
@Operation(summary = "获取指定模块的指定数据的操作日志分页") |
|
30 |
CommonResult<PageResult<OperateLogRespDTO>> getOperateLogPage(@QueryMap OperateLogPageReqDTO pageReqVO); |
|
31 |
|
|
32 |
} |