From af2ff6353abb09500ff08293490446a4d40d8e87 Mon Sep 17 00:00:00 2001 From: jinpengyong <jpy123456> Date: Fri, 31 Jul 2020 17:03:19 +0800 Subject: [PATCH] 更换天气预测接口,根据城市名获取预测与实测数据对比 --- src/main/java/com/moral/entity/Account.java | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/moral/entity/Account.java b/src/main/java/com/moral/entity/Account.java index bc31017..18e66a6 100644 --- a/src/main/java/com/moral/entity/Account.java +++ b/src/main/java/com/moral/entity/Account.java @@ -1,8 +1,11 @@ package com.moral.entity; +import java.util.Arrays; import java.util.Date; +import java.util.List; import javax.persistence.Id; +import javax.persistence.Transient; import lombok.Data; @@ -68,7 +71,19 @@ * @mbggenerated Thu Dec 07 16:17:21 CST 2017 */ private Date expireTime; - + + private String userName; + @Transient + private JwtTokenVersion jwtTokenVersion; + @Transient + private List<Role> Roles; + // TODO ������������ + public List<Role> getRoles(){ + Role role = new Role(); + role.setRoleName("temp"); + return Arrays.asList(role); + } + @Transient private Organization organization; } \ No newline at end of file -- Gitblit v1.8.0