package com.zy.asrs.entity;
|
|
import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableField;
|
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import java.io.Serializable;
|
|
@Data
|
@TableName("sys_erp_secret")
|
public class ErpSecret implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 临时token
|
*/
|
@ApiModelProperty(value= "临时token")
|
@TableField("access_token")
|
private String accessToken;
|
|
/**
|
* 刷新token
|
*/
|
@ApiModelProperty(value= "刷新token")
|
@TableField("refresh_token")
|
private String refreshToken;
|
|
/**
|
* 用户id
|
*/
|
@ApiModelProperty(value= "用户id")
|
@TableField("account_id")
|
private String accountId;
|
|
public ErpSecret() {}
|
|
public ErpSecret(String accessToken,String refreshToken,String accountId) {
|
this.accessToken = accessToken;
|
this.refreshToken = refreshToken;
|
this.accountId = accountId;
|
}
|
|
// ErpSecret erpSecret = new ErpSecret(
|
// null, // 临时token
|
// null, // 刷新token
|
// null // 用户id
|
// );
|
|
|
}
|