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.NotBlank;
|
import javax.validation.constraints.NotNull;
|
|
@Data
|
@ApiModel(value = "AdminUpdateColumnDto", description = "参数接收类")
|
public class AdminUpdateColumnDto {
|
|
@NotNull(message = "参数不能为空")
|
@ApiModelProperty(value = "栏目ID")
|
private Long id;
|
|
@ApiModelProperty(value = "栏目名称")
|
@NotBlank(message = "请输入栏目名称")
|
private String columnName;
|
|
@ApiModelProperty(value = "栏目编码")
|
@NotBlank(message = "请输入栏目编码")
|
private String columnCode;
|
|
@ApiModelProperty(value = "描述")
|
private String remark;
|
|
@ApiModelProperty(value = "排序")
|
private Integer orderNum;
|
|
@ApiModelProperty(value = "图片")
|
private String pic;
|
|
@ApiModelProperty(value = "上级类目ID")
|
private Long parentId;
|
|
@ApiModelProperty(value = "列表页模板")
|
private String listTemplate;
|
|
@ApiModelProperty(value = "文章页模板")
|
private String articleTemplate;
|
|
@ApiModelProperty(value = "栏目类型 1-普通栏目 2-标题栏目")
|
private Integer type;
|
|
@ApiModelProperty(value = "若栏目类型为标题类型 1-链接到内容 2-链接到栏目 3-外部地址")
|
private Integer targetType;
|
|
@ApiModelProperty(value = "目标地址")
|
private String targetUrl;
|
|
@ApiModelProperty(value = "是否为导航 1-是 2-否")
|
private Integer isNav;
|
|
@ApiModelProperty(value = "内容类型 1:文章 2:图片 3:文件 4:音频")
|
private Integer contentType;
|
}
|