package org.dromara.system.domain.bo;

import org.dromara.system.domain.Article;
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.*;

/**
 * 文章业务对象 article
 *
 * @author Lion Li
 * @date 2025-08-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Article.class, reverseConvertGenerate = false)
public class ArticleBo extends BaseEntity {

    /**
     *
     */
    private Long id;

    /**
     * 赛事id
     */
    private Long eventId;

    /**
     * 赛事名称
     */
    private String eventName;

    /**
     * 标题
     */
    private String title;

    /**
     * 内容
     */
    private String content;

    /**
     * 文章类型
     */
    @NotNull(message = "文章类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long type;

    /**
     * 是否展示 0:展示 1:隐藏
     */
    private String status;


}
