package com.hotwj.platform.noticeManagerment.companyNotice.domain.bo;

import com.hotwj.platform.noticeManagerment.companyNotice.domain.HotCompanyNotice;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

/**
 * 公司公告业务对象 hot_company_notice
 *
 * @author shihongwei
 * @date 2026-01-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HotCompanyNotice.class, reverseConvertGenerate = false)
public class HotCompanyNoticeBo extends BaseEntity {

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

    /**
     * 公司ID
     */
    @NotNull(message = "公司ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long companyId;

    /**
     * 新闻类型（company=企业，head=总部）
     */
    private Long noticeType;

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

    /**
     * 作者
     */
    private String author;

    /**
     * 封面图URL
     */
    private String coverImage;

    /**
     * 公告内容（富文本）
     */
    private String content;

    /**
     * 排序值，越大越靠前
     */
    private Long sortNo;

    /**
     * 是否置顶：0=否 1=是
     */
    @NotNull(message = "是否置顶：0=否 1=是不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long isTop;

    /**
     * 是否发布：0=未发布 1=已发布
     */
    @NotNull(message = "是否发布：0=未发布 1=已发布不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long isPublished;

    /**
     * 0=正常, 1=已删除
     */
    private Long isDeleted;


}
