38cd3df3 by chentao

新增广告类别

1 parent 0a723442
...@@ -52,8 +52,14 @@ public class Advert extends BaseEntity { ...@@ -52,8 +52,14 @@ public class Advert extends BaseEntity {
52 private String language; 52 private String language;
53 53
54 /** 54 /**
55 * 类型(0广告 1背景图片 )
56 */
57 private String type;
58
59 /**
55 * 删除标志(0代表存在 2代表删除) 60 * 删除标志(0代表存在 2代表删除)
56 */ 61 */
57 @TableLogic 62 @TableLogic
58 private String delFlag; 63 private String delFlag;
64
59 } 65 }
......
...@@ -40,6 +40,12 @@ public class AdvertBo extends BaseBO { ...@@ -40,6 +40,12 @@ public class AdvertBo extends BaseBO {
40 private String status; 40 private String status;
41 41
42 /** 42 /**
43 * 类型(0词语 1图标 )
44 */
45 @NotBlank(message = "类别不能为空")
46 private String type;
47
48 /**
43 * 文件ID 49 * 文件ID
44 */ 50 */
45 private String ossId; 51 private String ossId;
......
...@@ -2,6 +2,8 @@ package com.lego.core.domin.vo; ...@@ -2,6 +2,8 @@ package com.lego.core.domin.vo;
2 2
3 import lombok.Data; 3 import lombok.Data;
4 4
5 import javax.validation.constraints.NotBlank;
6
5 /** 7 /**
6 * 广告视图对象 core_advert 8 * 广告视图对象 core_advert
7 * 9 *
...@@ -43,6 +45,11 @@ public class AdvertVo { ...@@ -43,6 +45,11 @@ public class AdvertVo {
43 private String language; 45 private String language;
44 46
45 /** 47 /**
48 * 类型(0广告 1背景图片 )
49 */
50 private String type;
51
52 /**
46 * 文件全地址 53 * 文件全地址
47 */ 54 */
48 private String ossUrl; 55 private String ossUrl;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!