package com.crm.rely.backend.core.entity.follow.cpt;

import com.crm.rely.backend.core.entity.base.BaseAddEntity;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;

/**
 * @ClassName FollowCptSignInEntity
 * @Description
 * @Author y
 * @Date 2023/3/28 15:06
 */
@Data
public class FollowCptSignInEntity extends BaseAddEntity {

    private Long customId;

    private Long cId;

    @NotNull(message = "login_not_null_error")
    @Min(value = 0, message = "parameter_error")
    private Long login;

    @NotNull(message = "cpt_not_null")
    @Min(value = 0, message = "parameter_error")
    private Long cptId;

    @NotNull(message = "nickname_not_null")
    @Size(max = 50, message = "parameter_error")
    private String nickname;

    @NotNull(message = "recipient_not_null")
    @Size(max = 50, message = "parameter_error")
    private String recipient;

    @NotNull(message = "phone_format_error")
    @Size(max = 50, message = "parameter_error")
    private String mobile;

    @NotNull(message = "address_not_null")
    @Size(max = 300, message = "parameter_error")
    private String address;

}
