package org.dromara.talk.domain.bo;

import org.dromara.talk.domain.PhoneUser;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * ZoomPhone用户业务对象 phone_user
 *
 * @author Lion Li
 * @date 2026-02-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = PhoneUser.class, reverseConvertGenerate = false)
public class PhoneUserBo extends BaseEntity {

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

    /**
     * 用户电话
     */
    @NotBlank(message = "用户电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String customerPhone;

}
