58 lines
1.9 KiB
Java
58 lines
1.9 KiB
Java
/**
|
|
* Copyright (c) 2018-2028, Chill Zhuang 庄骞 (smallchill@163.com).
|
|
* <p>
|
|
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
* <p>
|
|
* http://www.gnu.org/licenses/lgpl.html
|
|
* <p>
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
package org.springblade.core.secure;
|
|
|
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
|
import io.swagger.annotations.ApiModel;
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
import lombok.Data;
|
|
|
|
/**
|
|
* AuthInfo
|
|
*
|
|
* @author Chill
|
|
*/
|
|
@Data
|
|
@ApiModel(description = "认证信息")
|
|
public class AuthInfo {
|
|
@ApiModelProperty(value = "令牌")
|
|
private String accessToken;
|
|
@ApiModelProperty(value = "令牌类型")
|
|
private String tokenType;
|
|
@ApiModelProperty(value = "刷新令牌")
|
|
private String refreshToken;
|
|
@ApiModelProperty(value = "用户ID")
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
|
private Long userId;
|
|
@ApiModelProperty(value = "租户ID")
|
|
private String tenantId;
|
|
@ApiModelProperty(value = "第三方系统ID")
|
|
private String oauthId;
|
|
@ApiModelProperty(value = "头像")
|
|
private String avatar = "https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png";
|
|
@ApiModelProperty(value = "角色名")
|
|
private String authority;
|
|
@ApiModelProperty(value = "用户名")
|
|
private String userName;
|
|
@ApiModelProperty(value = "账号名")
|
|
private String account;
|
|
@ApiModelProperty(value = "过期时间")
|
|
private long expiresIn;
|
|
@ApiModelProperty(value = "许可证")
|
|
private String license = "powered by blade";
|
|
}
|