Browse Source

1.增加TokenDTO的toString()方法,用JSON.toJSONString()实现

master
wxz 5 years ago
parent
commit
5d19351b38
  1. 7
      epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/security/dto/GovTokenDto.java
  2. 5
      epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/security/dto/TokenDto.java

7
epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/security/dto/GovTokenDto.java

@ -1,9 +1,9 @@
package com.epmet.commons.tools.security.dto; package com.epmet.commons.tools.security.dto;
import com.alibaba.fastjson.JSON;
import lombok.Data; import lombok.Data;
import java.io.Serializable; import java.io.Serializable;
import java.util.List;
import java.util.Set; import java.util.Set;
/** /**
@ -78,5 +78,10 @@ public class GovTokenDto extends BaseTokenDto implements Serializable {
* 角色ID列表 * 角色ID列表
*/ */
private Set<String> roleIdList; private Set<String> roleIdList;
@Override
public String toString() {
return JSON.toJSONString(this);
}
} }

5
epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/security/dto/TokenDto.java

@ -1,5 +1,6 @@
package com.epmet.commons.tools.security.dto; package com.epmet.commons.tools.security.dto;
import com.alibaba.fastjson.JSON;
import lombok.Data; import lombok.Data;
import java.io.Serializable; import java.io.Serializable;
@ -39,4 +40,8 @@ public class TokenDto extends BaseTokenDto implements Serializable {
*/ */
private long updateTime; private long updateTime;
@Override
public String toString() {
return JSON.toJSONString(this);
}
} }

Loading…
Cancel
Save