package com.chinaweal.aiccs.org.entity;

import com.chinaweal.aiccs.aiccs.abnormal.entity.Gzaiccode;
import com.chinaweal.youfool.framework.springboot.user.entity.UserBase;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 用户实体，应用于与前端交互
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "用户实体")
public class User extends UserBase implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "primaryKey")
    private String primaryKey;
    @ApiModelProperty(value = "头像")
    private String avatar;
    @ApiModelProperty(value = "昵称")
    private String nickname;
    @ApiModelProperty(value = "单位id")
    private String unitId;
    @ApiModelProperty(value = "单位")
    private String unitName;
    @ApiModelProperty(value = "机构id")
    private String orgId;
    @ApiModelProperty(value = "机构")
    private String orgName;
    @ApiModelProperty(value = "机构代码")
    private String orgCode;

    @ApiModelProperty(value = "根据当前用户的机关信息，区和所则获取区，市局则市局")
    private Gzaiccode decisionOrgan;


}
