package com.greenorange.promotion.model.dto.projectNotification;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Min;
import lombok.Data;

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

/**
 * 项目通知添加请求体
 */
@Data
@Schema(description = "项目通知添加请求体", requiredProperties = {
                "notificationTitle",
                "notificationContent",
                "projectId",
})
public class ProjectNotificationAddRequest implements Serializable {

    /**
     * 通知标题
     */
    @NotBlank(message = "通知标题不能为空")
    @Schema(description = "通知标题", example = "美团试吃官-涨价通知")
    private String notificationTitle;

    /**
     * 通知内容
     */
    @NotBlank(message = "通知内容不能为空")
    @Schema(description = "通知内容", example = "富文本")
    private String notificationContent;

    /**
     * 项目ID
     */
    @Min(value = 1L, message = "项目ID ID不能小于1")
    @Schema(description = "项目ID", example = "1")
    private Long projectId;


    @Serial
    private static final long serialVersionUID = 1L;
}

