package org.dromara.system.domain.bo;

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

/**
 * 联系电话业务对象 sys_phone
 *
 * @author Antigravity
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysPhone.class, reverseConvertGenerate = false)
public class SysPhoneBo extends BaseEntity {

    /**
     * 联系电话ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 华晟型材专家电话
     */
    @NotBlank(message = "专家电话不能为空")
    @Size(min = 1, max = 20, message = "专家电话长度不能超过{max}个字符")
    private String expertPhone;

    /**
     * 客服电话
     */
    @NotBlank(message = "客服电话不能为空")
    @Size(min = 1, max = 20, message = "客服电话长度不能超过{max}个字符")
    private String servicePhone;

    /**
     * 业务员电话
     */
    @NotBlank(message = "业务员电话不能为空")
    @Size(min = 1, max = 20, message = "业务员电话长度不能超过{max}个字符")
    private String salesPhone;

}
