package com.ghy.worker.domain;

import com.ghy.common.annotation.Excel;
import com.ghy.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * @author clunt
 * 师傅实体
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class Worker extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @Excel(name = "师傅id", cellType = Excel.ColumnType.NUMERIC)
    private Long workerId;

    @Excel(name = "师傅名字", cellType = Excel.ColumnType.STRING)
    private String name;

    @Excel(name = "师傅账号", cellType = Excel.ColumnType.STRING)
    private String account;

    @Excel(name = "师傅手机号", cellType = Excel.ColumnType.STRING)
    private String phone;

    @Excel(name = "密码", cellType = Excel.ColumnType.STRING)
    private String password;

    @Excel(name = "0 服务商 1供应商", cellType = Excel.ColumnType.NUMERIC)
    private Integer type;

    @Excel(name = "微信open_id", cellType = Excel.ColumnType.STRING)
    private String openId;

    @Excel(name = "微信union_id", cellType = Excel.ColumnType.STRING)
    private String unionId;

    @Excel(name = "公众号open_id", cellType = Excel.ColumnType.STRING)
    private String wxOpenId;

    @Excel(name = "支付宝账号")
    private String alipayAccount;

    @Excel(name = "支付宝姓名")
    private String alipayName;

    @Excel(name = "分公司名称", cellType = Excel.ColumnType.STRING)
    private String deptName;

    @Excel(name = "分公司id", cellType = Excel.ColumnType.NUMERIC)
    private Long deptId;

    @Excel(name = "用户状态 0生效 1冻结 2删除", readConverterExp = "0=生效,1=冻结,2=删除")
    private Integer status;

    @Excel(name = "登录状态 0允许登录 1禁止登录", readConverterExp = "0=允许登录,1=禁止登录")
    private Integer loginStatus;

    @Excel(name = "店铺状态")
    private Integer storeStatus;

    @Excel(name = "用户头像", cellType = Excel.ColumnType.STRING)
    private String workerLogoUrl;

    @Excel(name = "领导团队扣点", cellType = Excel.ColumnType.STRING)
    private String leaderTeamRate;

    @Excel(name = "领导团队扣费金额", cellType = Excel.ColumnType.STRING)
    private String leaderTeamMoney;

    private String bannerUrl;

    /**
     * 注册验证码
     */
    private String registerCode;

    private List<Long> workerIds;

    private Long districtId;

    private List<Long> districtIds;

    private List<Long> exceptDistrictIds;

    private Long goodsCategoryId;

    private List<Long> goodsCategoryIds;

    private Long exceptParentAreaId;

    private String keyWords;

    private String realName;
}
