package org.dromara.talk.domain.bo;

import org.dromara.talk.domain.TalkUser;
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.*;

/**
 * 对话用户业务对象 talk_user
 *
 * @author Lion Li
 * @date 2026-01-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TalkUser.class, reverseConvertGenerate = false)
public class TalkUserBo extends BaseEntity {

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

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

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String password;

    /**
     * 昵称
     */
    private String nickname;

    /**
     * 状态（0=正常 1=停用）
     */
    private String status;


}
