package com.yuchen.saas.message.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * <p>
 * 公告/资讯类型Dto
 * </p>
 *
 * @author caiwq
 * @since 2024-02-23
 */
@Data
@ApiModel(value = "PmgBatNoticeTypeDto对象", description = "公告/资讯类型Dto")
public class PmgBatNoticeTypeDto {

    /**
     * 主键ID
     */
    @ApiModelProperty(name = "id", value = "主键ID")
    private Long id;
    /**
     * 类型(1:系统公告 2:管理区公告 3:组织公告 4:资讯)
     */
    @ApiModelProperty(name = "type", value = "类型(1:系统公告 2:管理区公告 3:组织公告 4:资讯)")
    @NotNull(message = "类型不能为空")
    private Long type;
    /**
     * 客户ID
     */
    @ApiModelProperty(name = "customerId", value = "客户ID")
    private Long customerId;
    /**
     * 类型名称
     */
    @ApiModelProperty(name = "name", value = "类型名称")
    @NotBlank(message = "类型名称不能为空")
    @Size(max = 20, message = "类型名称不能超出20字符")
    private String name;
    /**
     * 默认配图(多张，逗号隔开)
     */
    @ApiModelProperty(name = "image", value = "默认配图(多张，逗号隔开)")
    private String image;
    /**
     * 备注
     */
    @ApiModelProperty(name = "remark", value = "备注")
    private String remark;

}
