6 changed files with 108 additions and 86 deletions
@ -0,0 +1,42 @@ |
|||
package com.epmet.commons.tools.security.dto; |
|||
|
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class BaseTokenDto { |
|||
/** |
|||
* 政府端:gov、居民端:resi、运营端:oper |
|||
*/ |
|||
private String app; |
|||
|
|||
/** |
|||
* PC端:web、微信小程序:wxmp |
|||
*/ |
|||
private String client; |
|||
|
|||
/** |
|||
* 用户ID |
|||
*/ |
|||
private String userId; |
|||
|
|||
/** |
|||
* token字符串 |
|||
*/ |
|||
private String token; |
|||
|
|||
public BaseTokenDto() { |
|||
} |
|||
|
|||
public BaseTokenDto(String app, String client, String userId) { |
|||
this.app = app; |
|||
this.client = client; |
|||
this.userId = userId; |
|||
} |
|||
|
|||
public BaseTokenDto(String app, String client, String userId, String token) { |
|||
this.app = app; |
|||
this.client = client; |
|||
this.userId = userId; |
|||
this.token = token; |
|||
} |
|||
} |
Loading…
Reference in new issue