Commit 1979084ca93ffc10d431adc244ce906837879546
1 parent
b6451631
feat:【system】操作日志增加 userType 的展示
Showing
1 changed file
with
7 additions
and
0 deletions
yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/logger/vo/operatelog/OperateLogRespVO.java
| 1 | 1 | package cn.iocoder.yudao.module.system.controller.admin.logger.vo.operatelog; |
| 2 | 2 | |
| 3 | +import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat; | |
| 3 | 4 | import cn.iocoder.yudao.module.system.dal.dataobject.user.AdminUserDO; |
| 4 | 5 | import cn.idev.excel.annotation.ExcelIgnoreUnannotated; |
| 5 | 6 | import cn.idev.excel.annotation.ExcelProperty; |
| 7 | +import cn.iocoder.yudao.module.system.enums.DictTypeConstants; | |
| 6 | 8 | import com.fhs.core.trans.anno.Trans; |
| 7 | 9 | import com.fhs.core.trans.constant.TransType; |
| 8 | 10 | import com.fhs.core.trans.vo.VO; |
| ... | ... | @@ -31,6 +33,11 @@ public class OperateLogRespVO implements VO { |
| 31 | 33 | @ExcelProperty("操作人") |
| 32 | 34 | private String userName; |
| 33 | 35 | |
| 36 | + @Schema(description = "用户类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1", implementation = Integer.class) | |
| 37 | + @ExcelProperty("用户类型") | |
| 38 | + @DictFormat(DictTypeConstants.USER_TYPE) | |
| 39 | + private Integer userType; | |
| 40 | + | |
| 34 | 41 | @Schema(description = "操作模块类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "订单") |
| 35 | 42 | @ExcelProperty("操作模块类型") |
| 36 | 43 | private String type; | ... | ... |