|
@@ -8,6 +8,7 @@ import java.util.List;
|
|
|
import com.yonge.cooleshow.cms.dal.entity.NewsStatusEnum;
|
|
|
import com.yonge.cooleshow.common.page.QueryInfo;
|
|
|
|
|
|
+import javax.validation.constraints.NotBlank;
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
|
|
public class NewsInformationQueryInfo extends QueryInfo {
|
|
@@ -16,6 +17,10 @@ public class NewsInformationQueryInfo extends QueryInfo {
|
|
|
@NotNull(message = "类型不能为空")
|
|
|
private Integer type;
|
|
|
|
|
|
+ @ApiModelProperty(value = "平台类型 ADMIN:平台端 STUDENT:学生端 TEACHER:老师端",required = true)
|
|
|
+ @NotBlank(message = "平台类型不能为空")
|
|
|
+ private String platformType;
|
|
|
+
|
|
|
@ApiModelProperty(value = "子类型 IMAGE:图片,VIDEO:视频", required = false)
|
|
|
private String subType;
|
|
|
|
|
@@ -99,4 +104,12 @@ public class NewsInformationQueryInfo extends QueryInfo {
|
|
|
public void setExcludeIds(List<Long> excludeIds) {
|
|
|
this.excludeIds = excludeIds;
|
|
|
}
|
|
|
+
|
|
|
+ public String getPlatformType() {
|
|
|
+ return platformType;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setPlatformType(String platformType) {
|
|
|
+ this.platformType = platformType;
|
|
|
+ }
|
|
|
}
|