package com.ruoyi.usernotice.domain.bo;

import com.ruoyi.common.core.domain.BaseTimeEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.validate.RegGroup;
import com.ruoyi.usernotice.enums.UserNoticeEntityType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * C端用户通知业务对象 tb_user_notice
 *
 * @author ruoyi
 * @date 2025-04-21
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ApiModel("C端用户通知业务对象")
public class UserNoticeBo extends BaseTimeEntity {

    /**
     * 主键ID
     */
    @ApiModelProperty(value = "主键ID", required = true)
    @NotNull(message = "主键ID不能为空", groups = { EditGroup.class, RegGroup.class })
    private Long id;

    /**
     * 所属用户Id
     */
    @ApiModelProperty(value = "所属用户Id", required = true)
    @NotNull(message = "所属用户Id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 标题
     */
    @ApiModelProperty(value = "标题", required = true)
    @NotBlank(message = "标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 内容
     */
    @ApiModelProperty(value = "内容", required = true)
    @NotBlank(message = "内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;

    /**
     * 状态：0-未读，1-已读
     */
    @ApiModelProperty(value = "状态：0-未读，1-已读", required = true)
    @NotNull(message = "状态：0-未读，1-已读不能为空", groups = { AddGroup.class, EditGroup.class })
    private Boolean status;

    /**
     * 实体ID
     */
    @ApiModelProperty(value = "实体ID", required = true)
    @NotNull(message = "实体ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long entityId;

    /**
     * 实体类型
     */
    @ApiModelProperty(value = "实体类型", required = true)
    @NotNull(message = "实体类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private UserNoticeEntityType entityType;


}
