动态管理使用枚举类
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package com.cool.store.dto.content;
|
||||
|
||||
import com.cool.store.enums.ContentSubjectEnum;
|
||||
import com.cool.store.enums.ContentTypeEnum;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@@ -13,10 +15,10 @@ public class ContentAddDto {
|
||||
private String status;
|
||||
|
||||
@ApiModelProperty(value = "栏目code", required = true)
|
||||
private String subject;
|
||||
private ContentSubjectEnum subject;
|
||||
|
||||
@ApiModelProperty(value = "类型", required = true)
|
||||
private String contentType;
|
||||
private ContentTypeEnum contentType;
|
||||
|
||||
@ApiModelProperty(value = "封面地址", required = true)
|
||||
private String cover;
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package com.cool.store.dto.content;
|
||||
|
||||
import com.cool.store.common.PageBasicInfo;
|
||||
import com.cool.store.enums.ContentSubjectEnum;
|
||||
import com.cool.store.enums.ContentTypeEnum;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
@@ -13,10 +15,10 @@ public class ContentQueryListDto extends PageBasicInfo {
|
||||
private String contentTitle;
|
||||
|
||||
@ApiModelProperty("栏目Code")
|
||||
private String subject;
|
||||
private ContentSubjectEnum subject;
|
||||
|
||||
@ApiModelProperty("类型,默认选中全部时不传值")
|
||||
private String contentType;
|
||||
private ContentTypeEnum contentType;
|
||||
|
||||
@ApiModelProperty("筛选开始时间")
|
||||
private String startTime;
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package com.cool.store.dto.content;
|
||||
|
||||
import com.cool.store.enums.ContentSubjectEnum;
|
||||
import com.cool.store.enums.ContentTypeEnum;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@@ -16,10 +18,10 @@ public class ContentUpdateDto {
|
||||
private String status;
|
||||
|
||||
@ApiModelProperty("栏目code")
|
||||
private String subject;
|
||||
private ContentSubjectEnum subject;
|
||||
|
||||
@ApiModelProperty("类型")
|
||||
private String contentType;
|
||||
private ContentTypeEnum contentType;
|
||||
|
||||
@ApiModelProperty("封面地址")
|
||||
private String cover;
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
package com.cool.store.entity;
|
||||
|
||||
import com.cool.store.enums.ContentSubjectEnum;
|
||||
import com.cool.store.enums.ContentTypeEnum;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
@@ -25,10 +27,10 @@ public class HyContentInfoDO implements Serializable {
|
||||
private String contentTitle;
|
||||
|
||||
@ApiModelProperty("栏目CODE")
|
||||
private String subject;
|
||||
private ContentSubjectEnum subject;
|
||||
|
||||
@ApiModelProperty("类型 image-图文 video-视频")
|
||||
private String contentType;
|
||||
private ContentTypeEnum contentType;
|
||||
|
||||
@ApiModelProperty("封面URL")
|
||||
private String cover;
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package com.cool.store.vo;
|
||||
|
||||
import com.cool.store.enums.ContentSubjectEnum;
|
||||
import com.cool.store.enums.ContentTypeEnum;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
@@ -13,10 +15,10 @@ public class HyContentInfoVO {
|
||||
private String contentTitle;
|
||||
|
||||
@ApiModelProperty("栏目CODE")
|
||||
private String subject;
|
||||
private ContentSubjectEnum subject;
|
||||
|
||||
@ApiModelProperty("类型 image-图文 video-视频")
|
||||
private String contentType;
|
||||
private ContentTypeEnum contentType;
|
||||
|
||||
@ApiModelProperty("封面URL")
|
||||
private String cover;
|
||||
|
||||
Reference in New Issue
Block a user