package com.xcong.farmer.cms.modules.system.dto; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import javax.validation.constraints.NotNull; @Data @ApiModel(value = "AdminAddMessageDto", description = "参数接收类") public class AdminAddMessageDto { @ApiModelProperty(value = "姓名") @NotNull(message = "请输入姓名") private String name; @ApiModelProperty(value = "联系方式") @NotNull(message = "请输入联系方式") private String contactValue; @ApiModelProperty(value = "留言标题") @NotNull(message = "请输入留言标题") private String title; @ApiModelProperty(value = "留言描述") @NotNull(message = "请输入留言描述") private String remark; @ApiModelProperty(value = "备注1") private String paramOne; @ApiModelProperty(value = "备注2") private String paramTwo; }