Commit 6ef445ce authored by honghy's avatar honghy

【(历史bug)后台-客户端公告】新增/修改

parent 7f97424c
...@@ -3,7 +3,6 @@ package cn.iocoder.yudao.module.system.controller.admin.notice.vo; ...@@ -3,7 +3,6 @@ package cn.iocoder.yudao.module.system.controller.admin.notice.vo;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull; import javax.validation.constraints.NotNull;
...@@ -28,6 +27,10 @@ public class NoticeBaseVO { ...@@ -28,6 +27,10 @@ public class NoticeBaseVO {
@Size(max = 50, message = "公告标题不能超过50个字符") @Size(max = 50, message = "公告标题不能超过50个字符")
private String titleEn; private String titleEn;
@ApiModelProperty(value = "公告标题法文")
@Size(max = 50, message = "公告标题不能超过50个字符")
private String titleFr;
@ApiModelProperty(value = "公告标题", required = true, example = "小博主") @ApiModelProperty(value = "公告标题", required = true, example = "小博主")
@NotNull(message = "公告类型不能为空") @NotNull(message = "公告类型不能为空")
private Integer type; private Integer type;
...@@ -38,6 +41,9 @@ public class NoticeBaseVO { ...@@ -38,6 +41,9 @@ public class NoticeBaseVO {
@ApiModelProperty(value = "公告内容英文") @ApiModelProperty(value = "公告内容英文")
private String contentEn; private String contentEn;
@ApiModelProperty(value = "公告标题法文")
private String contentFr;
@ApiModelProperty(value = "状态", required = true, example = "1", notes = "参见 CommonStatusEnum 枚举类") @ApiModelProperty(value = "状态", required = true, example = "1", notes = "参见 CommonStatusEnum 枚举类")
private Integer status; private Integer status;
......
...@@ -31,7 +31,10 @@ public class NoticeDO extends BaseDO { ...@@ -31,7 +31,10 @@ public class NoticeDO extends BaseDO {
/** /**
* 公告标题英文 * 公告标题英文
*/ */
private String titleEn; private String titleEn;/**
* 公告标题法文
*/
private String titleFr;
/** /**
* 公告类型 * 公告类型
* <p> * <p>
...@@ -48,6 +51,10 @@ public class NoticeDO extends BaseDO { ...@@ -48,6 +51,10 @@ public class NoticeDO extends BaseDO {
* 公告内容英文 * 公告内容英文
*/ */
private String contentEn; private String contentEn;
/**
* 公告内容法文
*/
private String contentFr;
/** /**
* 公告状态 * 公告状态
* <p> * <p>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment