package org.dromara.system.domain.dto.projectnews;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author lilemy
 * @date 2025/4/28 11:52
 */
@Data
public class BusProjectNewsCreateReq implements Serializable {

    @Serial
    private static final long serialVersionUID = 7116830397516873096L;

    /**
     * 项目id
     */
    @NotNull(message = "项目id不能为空")
    private Long projectId;

    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空")
    private String title;

    /**
     * 内容
     */
    @NotBlank(message = "内容不能为空")
    private String content;

    /**
     * 附件
     */
    private String file;

}
