package com.xhpc.user.domain;

import com.xhpc.common.core.web.domain.BaseEntity;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.math.BigDecimal;

/**
 * @author yuyang
 * @date 2021/12/23 15:50
 */
@Data
public class XhpcCustomersPersonnel extends BaseEntity {

    private Long customersPersonnelId;

    private Long customersId;

    private String name;

    private String account;

    private BigDecimal rechargeMoney;

    private BigDecimal consumeMoney;

    private BigDecimal redPacket;

    private BigDecimal surplusMoney;

    private String phone;

    private Integer type;

    private Integer clearingType;

    private Integer status;

    private Integer delFlag;

    /**
     * 是否有退款订单审核（0无 1有）
     */
    private Integer isRefundApplication;

    private Integer soc;

    /**
     * 头像地址
     */
    private String avatar;
    /**
     * weixin_open_id
     */
    @Length(max = 50, message = "openId不能超过50位")
    private String weixinOpenId;

    /**
     * alipay_open_id
     */
    @Length(max = 50, message = "openId不能超过50位")
    private String alipayOpenId;

    /**
     * 微信是否登录（0未登录 1已登录）
     */
    private Integer weixinLogin;

    /**
     * 支付宝是否登录（0未登录 1已登录）
     */
    private Integer alipayLogin;
    /**
     * 充值渠道（1微信 2支付宝  3平台)
     */
    private Integer rechargeType;
    /**
     * 充值订单id、退款订单id
     */
    private Long moneyOrderId;

    private Long createId;

    private Integer createType;
}
