package com.ghy.customer.domain;

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

import java.util.List;

/**
 * @author clunt
 * 消费者实体
 */
@Data
public class Customer extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @Excel(name = "用户id", cellType = Excel.ColumnType.NUMERIC)
    private Long customerId;

    @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 = "微信open_id", cellType = Excel.ColumnType.STRING)
    private String openId;

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

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

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

    @Excel(name = "上级分销人", cellType = Excel.ColumnType.NUMERIC)
    private Long customerPlace;


    private String customerPlaceName;

    private String customerPlacePhone;

    @Excel(name = "祖级分销人", cellType = Excel.ColumnType.NUMERIC)
    private Long parentCustomerPlace;

    private String parentCustomerPlaceName;

    private String parentCustomerPlacePhone;

    private Integer placeStatus;

    // 是否为分销商
    private Boolean isDistributor;

    private List<Long> customerPlaces;

    /*审核分销名*/
    private String placeName;

    /*上上级审核分销名*/
    private String parentPlaceName;
}
