mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-24 07:19:46 +08:00
add 新增 ruoyi-common-translation 通用转换模块(雏形)
This commit is contained in:
@ -73,6 +73,11 @@
|
||||
<artifactId>ruoyi-common-ratelimiter</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.ruoyi</groupId>
|
||||
<artifactId>ruoyi-common-translation</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- 短信 用哪个导入哪个依赖 -->
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>com.aliyun</groupId>-->
|
||||
|
@ -2,6 +2,8 @@ package com.ruoyi.demo.domain.vo;
|
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import com.alibaba.excel.annotation.ExcelProperty;
|
||||
import com.ruoyi.common.translation.annotation.Translation;
|
||||
import com.ruoyi.common.translation.constant.TransConstant;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serial;
|
||||
@ -67,6 +69,7 @@ public class TestDemoVo implements Serializable {
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@Translation(type = TransConstant.USER_ID_TO_NAME)
|
||||
@ExcelProperty(value = "创建人")
|
||||
private Long createBy;
|
||||
|
||||
@ -79,6 +82,7 @@ public class TestDemoVo implements Serializable {
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
@Translation(type = TransConstant.USER_ID_TO_NAME)
|
||||
@ExcelProperty(value = "更新人")
|
||||
private Long updateBy;
|
||||
|
||||
|
Reference in New Issue
Block a user