package cn.superdesk.uniorder.dto.vo.sys;

import cn.superdesk.uniorder.dto.vo._superdeskapp.jwt.SupperdeskAppTokenUser;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: Java类作用描述
 * @Author: linjinyu
 * @CreateDate: 2022/2/28 上午10:58
 * @UpdateUser: linjinyu
 * @UpdateDate: 2022/2/28 上午10:58
 * @UpdateRemark: 修改内容
 * @Version: 1.0
 */
@NoArgsConstructor
@AllArgsConstructor
@Builder(toBuilder = true)
@Data
public class SysUserVo implements Serializable {

	private static final long serialVersionUID = 1L;

	private Long id;

	@ApiModelProperty("后端登陆账号")
	private String userName;
	@ApiModelProperty("后端登陆账号对映的实名")
	private String fullname;
	private String phone;

	@ApiModelProperty("角色权限ID")
	private Long roleId;
	@ApiModelProperty("数据权限ID")
	private Long sysRoleExtDataId;

	@ApiModelProperty("账号来源")
	private String sourceFrom;

	private Date createTime;
	private Long createUserId;

	private Date updateTime;
	private Long updateUserId;

	private String token;
	private String refreshToken;

	/******************************************  start ******************************************/

	private Long   outSaleId;
	private String outSaleName;

	/******************************************    end ******************************************/

	// private TokenUserBySuperdeskApp tokenUserByService;

	@JsonProperty(access = JsonProperty.Access.READ_ONLY)
	private SupperdeskAppTokenUser tokenUserByService;

	private String personalizedLogo;
	private String personalizedSubhead;

}
