|
|
@@ -0,0 +1,48 @@
|
|
|
+package com.nb.web.api.entity;
|
|
|
+
|
|
|
+
|
|
|
+import com.baomidou.mybatisplus.annotation.TableName;
|
|
|
+import com.nb.core.entity.GenericEntity;
|
|
|
+import com.nb.web.api.enums.AppArticleEnum;
|
|
|
+import io.swagger.annotations.ApiModel;
|
|
|
+import io.swagger.annotations.ApiModelProperty;
|
|
|
+import lombok.Data;
|
|
|
+import lombok.EqualsAndHashCode;
|
|
|
+
|
|
|
+import javax.validation.constraints.NotNull;
|
|
|
+
|
|
|
+
|
|
|
+/**
|
|
|
+ * @author lifang
|
|
|
+ * @version 1.0.0
|
|
|
+ * @ClassName BusHospitalLogEntity.java
|
|
|
+ * @Description TODO
|
|
|
+ * @createTime 2022年03月21日 11:25:00
|
|
|
+ */
|
|
|
+@EqualsAndHashCode(callSuper = true)
|
|
|
+@Data
|
|
|
+@TableName(value = "app_article",autoResultMap = true)
|
|
|
+@ApiModel(value="app端宣教文章", description="app端宣教文章")
|
|
|
+public class AppArticleEntity extends GenericEntity<String> {
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "文章标题",required = true)
|
|
|
+ @NotNull(message = "文章标题不能为空")
|
|
|
+ private String title;
|
|
|
+
|
|
|
+ @ApiModelProperty("首图")
|
|
|
+ private String graph;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "文章类型",example = "0(术后镇痛) 1(癌痛知识) 2(评价标准) 3(健康资讯)",required = true)
|
|
|
+ @NotNull(message = "文章类型不能为空")
|
|
|
+ private AppArticleEnum type;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "是否为外链",required = true)
|
|
|
+ @NotNull(message = "是否为外链不能为空")
|
|
|
+ private Boolean backLinks;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "文章内容",example = "当backLinks=false时,该字段不能为空")
|
|
|
+ private String content;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "外链地址",example = "当backLinks=true时,该字段不能为空")
|
|
|
+ private String url;
|
|
|
+}
|