package org.jk.rag.domain.bo;

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

/**
 * 在线人数记录业务对象 sys_user_online_log
 *
 * @author Lion Li
 * @date 2026-01-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysUserOnlineLog.class, reverseConvertGenerate = false)
public class SysUserOnlineLogBo extends BaseEntity {

    /**
     * 主键ID，雪花算法生成
     */
    @NotNull(message = "主键ID，雪花算法生成不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 在线人数
     */
    @NotBlank(message = "在线人数不能为空", groups = { AddGroup.class, EditGroup.class })
    private String onlineNum;


}
