package org.dromara.system.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.system.domain.SysCustomer;

/**
 * 客户业务对象 sys_customer
 *
 * @author Lion Li
 */

@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysCustomer.class, reverseConvertGenerate = false)
public class SysCustomerBo extends BaseEntity {

    /**
     * 客户ID
     */
    private Long id;

    /**
     * 用户名
     */
    @NotBlank(message = "用户名不能为空")
    @Size(min = 0, max = 30, message = "用户名长度不能超过{max}个字符")
    private String userName;

    /**
     * 手机号
     */
    @Size(min = 0, max = 11, message = "手机号长度不能超过{max}个字符")
    private String phone;

    /**
     * 微信OpenID
     */
    @Size(min = 0, max = 255, message = "微信OpenID长度不能超过{max}个字符")
    private String wechatOpenid;

    /**
     * 微信UnionID
     */
    @Size(min = 0, max = 255, message = "微信UnionID长度不能超过{max}个字符")
    private String wechatUnionid;

    /**
     * 授权客户ERP RowID
     */
    @Size(min = 0, max = 100, message = "授权客户ERP RowID长度不能超过{max}个字符")
    private String authClientFRowID;

    /**
     * 头像OSS ID
     */
    private Long avatar;

}
