package org.dromara.zhishu.domain.bo;

import org.dromara.zhishu.domain.Notice;
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.*;

/**
 * 消息通知业务对象 t_notice
 *
 * @author yxy
 * @date 2025-05-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Notice.class, reverseConvertGenerate = false)
public class NoticeBo extends BaseEntity {

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

    /**
     * 发件人
     */
    private String sender;

    /**
     * 收件人
     */
    private String recipient;

    /**
     * 消息
     */
    private String content;

    /**
     * 状态 0 未读  1 已读
     */
    private String status;


    private String tenantId;
}
