package com.xiaoniu.system.platformsettings.notice.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

/**
 * @Author haoxuyang
 * @Date 2024/10/11 11:47
 */
@Data
@Schema(description = "新增公告参数DTO")
public class AddNoticeDTO {

    @Schema(description = "标题")
    @NotEmpty(message = "公告标题不能为空")
    private String noticeTitle;

    @Schema(description = "类型（门店类型大类）")
    private String type;

    @Schema(description = "状态（1-显示，2-隐藏）")
    @NotNull(message = "状态不能为空")
    private Integer status;

    @Schema(description = "目标用户（多个用,分隔）")
    @NotEmpty(message = "目标用户不能为空")
//    private String targetUsers;
    private List<String> targetUsers;

    @Schema(description = "公告内容")
    private String noticeContent;

}

