package com.template.model.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author ceshi
 * @since 2024-10-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="新增Account对象", description="")
public class updateAlumniNewsRequest implements Serializable {
    @ApiModelProperty(value = "数据ID")
    @NotNull(message = "数据ID不能为空")
    private Integer id;

    @ApiModelProperty(value = "标题")
    @NotBlank(message = "标题不能为空")
    private String theme;

    @ApiModelProperty(value = "发件人ID")
    @NotNull(message = "发件人ID不能为空")
    private Integer userId;

    @ApiModelProperty(value = "发件人姓名")
    @NotBlank(message = "发件人姓名不能为空")
    private String userName;

    @ApiModelProperty(value = "所属分类ID")
    @NotNull(message = "所属分类ID不能为空")
    private Integer categoryId;

    @ApiModelProperty(value = "所属分类名称")
    @NotBlank(message = "所属分类名称不能为空")
    private String categoryName;

    @ApiModelProperty(value = "内容")
    @NotBlank(message = "内容不能为空")
    private String content;
}
