Commit 77ce81f4 by yuwei

2.0.0项目初始化

parent 411515c9
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>cn.datax</groupId> <groupId>cn.datax</groupId>
<artifactId>system-service-api</artifactId> <artifactId>datax-common-core</artifactId>
<version>2.0.0</version> <version>2.0.0</version>
</dependency> </dependency>
<dependency> <dependency>
......
...@@ -2,7 +2,7 @@ package cn.datax.common.dictionary.annotation; ...@@ -2,7 +2,7 @@ package cn.datax.common.dictionary.annotation;
import java.lang.annotation.*; import java.lang.annotation.*;
@Target({ ElementType.PARAMETER, ElementType.METHOD }) @Target({ ElementType.FIELD })
@Retention(RetentionPolicy.RUNTIME) @Retention(RetentionPolicy.RUNTIME)
@Documented @Documented
public @interface DictAop { public @interface DictAop {
......
...@@ -41,6 +41,11 @@ ...@@ -41,6 +41,11 @@
<artifactId>datax-common-core</artifactId> <artifactId>datax-common-core</artifactId>
<version>2.0.0</version> <version>2.0.0</version>
</dependency> </dependency>
<dependency>
<groupId>cn.datax</groupId>
<artifactId>datax-common-dictionary</artifactId>
<version>2.0.0</version>
</dependency>
</dependencies> </dependencies>
</project> </project>
\ No newline at end of file
package cn.datax.service.system.api.vo; package cn.datax.service.system.api.vo;
import cn.datax.common.dictionary.annotation.DictAop;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data; import lombok.Data;
...@@ -13,6 +14,7 @@ public class RoleVo implements Serializable { ...@@ -13,6 +14,7 @@ public class RoleVo implements Serializable {
private static final long serialVersionUID=1L; private static final long serialVersionUID=1L;
private String id; private String id;
@DictAop(code = "status")
private Integer status; private Integer status;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private LocalDateTime createTime; private LocalDateTime createTime;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment