refactor(codegen): 更新Swagger注解版本
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
@@ -2,7 +2,7 @@ package cn.fateverse.notice.dto;
|
||||
|
||||
import cn.fateverse.notice.enums.ActionEnums;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
@@ -17,36 +17,36 @@ import java.util.List;
|
||||
@ApiModel("公告发送实体")
|
||||
public class NoticeDto implements Serializable {
|
||||
|
||||
@ApiModelProperty("公告标题")
|
||||
@Schema(description = "公告标题")
|
||||
@NotNull(message = "公告标题不能为空")
|
||||
private String noticeTitle;
|
||||
|
||||
@ApiModelProperty("公告类型(1通知 2公告)")
|
||||
@Schema(description = "公告类型(1通知 2公告)")
|
||||
@NotNull(message = "公告类型不能为空")
|
||||
private String noticeType;
|
||||
|
||||
@ApiModelProperty("发送类型,用户:user,用户数组:user,角色:role,部门:dept,全发:all")
|
||||
@Schema(description = "发送类型,用户:user,用户数组:user,角色:role,部门:dept,全发:all")
|
||||
@NotNull(message = "发送类型不能为空")
|
||||
private String sendType;
|
||||
|
||||
private ActionEnums action;
|
||||
|
||||
@ApiModelProperty("发送类型的id")
|
||||
@Schema(description = "发送类型的id")
|
||||
@NotNull(message = "发送对象id不能为空")
|
||||
private List<Long> senderIds;
|
||||
|
||||
@ApiModelProperty("公告内容")
|
||||
@Schema(description = "公告内容")
|
||||
private String noticeContent;
|
||||
|
||||
@ApiModelProperty("内容类型: html,text 等")
|
||||
@Schema(description = "内容类型: html,text 等")
|
||||
@NotNull(message = "内容类型不能为空")
|
||||
private String contentType;
|
||||
|
||||
@ApiModelProperty("发送群组")
|
||||
@Schema(description = "发送群组")
|
||||
@NotNull(message = "消息发送群组不能为空")
|
||||
private String cluster;
|
||||
|
||||
@ApiModelProperty("公告备注")
|
||||
@Schema(description = "公告备注")
|
||||
private String remark;
|
||||
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package cn.fateverse.notice.entity.query;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
@@ -11,22 +11,22 @@ import lombok.Data;
|
||||
@Data
|
||||
public class NoticeQuery {
|
||||
|
||||
@ApiModelProperty("公告标题")
|
||||
@Schema(description = "公告标题")
|
||||
private String noticeTitle;
|
||||
|
||||
@ApiModelProperty("公告类型(1通知 2公告)")
|
||||
@Schema(description = "公告类型(1通知 2公告)")
|
||||
private String noticeType;
|
||||
|
||||
@ApiModelProperty("发送类型,用户,用户数组,角色,部门,全发")
|
||||
@Schema(description = "发送类型,用户,用户数组,角色,部门,全发")
|
||||
private String sendType;
|
||||
|
||||
@ApiModelProperty("内容类型: html,text等")
|
||||
@Schema(description = "内容类型: html,text等")
|
||||
private String contentType;
|
||||
|
||||
@ApiModelProperty("公告状态(0正常 1关闭)")
|
||||
@Schema(description = "公告状态(0正常 1关闭)")
|
||||
private String state;
|
||||
|
||||
@ApiModelProperty("群组")
|
||||
@Schema(description = "群组")
|
||||
private String cluster;
|
||||
|
||||
@JsonIgnore
|
||||
|
||||
@@ -2,11 +2,11 @@ package cn.fateverse.notice.entity.vo;
|
||||
|
||||
import cn.fateverse.notice.entity.Notice;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -19,36 +19,36 @@ public class NoticeVo {
|
||||
|
||||
private Long noticeId;
|
||||
|
||||
@ApiModelProperty("公告标题")
|
||||
@Schema(description = "公告标题")
|
||||
private String noticeTitle;
|
||||
|
||||
@ApiModelProperty("公告类型(1通知 2公告)")
|
||||
@Schema(description = "公告类型(1通知 2公告)")
|
||||
private String noticeType;
|
||||
|
||||
@ApiModelProperty("发送类型,用户,用户数组,角色,部门,全发")
|
||||
@Schema(description = "发送类型,用户,用户数组,角色,部门,全发")
|
||||
private String sendType;
|
||||
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
@ApiModelProperty("发送类型对应的信息")
|
||||
@Schema(description = "发送类型对应的信息")
|
||||
private List<String> senders;
|
||||
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
private String noticeContent;
|
||||
|
||||
@ApiModelProperty("内容类型: html,text等")
|
||||
@Schema(description = "内容类型: html,text等")
|
||||
private String contentType;
|
||||
|
||||
@ApiModelProperty("公告状态(0正常 1关闭)")
|
||||
@Schema(description = "公告状态(0正常 1关闭)")
|
||||
private String state;
|
||||
|
||||
@ApiModelProperty("群组")
|
||||
@Schema(description = "群组")
|
||||
private String cluster;
|
||||
|
||||
@ApiModelProperty("创建人")
|
||||
@Schema(description = "创建人")
|
||||
private Object createBy;
|
||||
|
||||
@ApiModelProperty("创建时间")
|
||||
private Date createTime;
|
||||
@Schema(description = "创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
public static NoticeVo toNoticeVo(Notice notice){
|
||||
return NoticeVo.builder()
|
||||
|
||||
@@ -6,7 +6,7 @@ import cn.fateverse.notice.entity.NoticeMq;
|
||||
import cn.fateverse.notice.enums.ActionEnums;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
@@ -24,23 +24,23 @@ public class NotifyVo {
|
||||
|
||||
private Long noticeId;
|
||||
|
||||
@ApiModelProperty("公告标题")
|
||||
@Schema(description = "公告标题")
|
||||
private String noticeTitle;
|
||||
|
||||
@ApiModelProperty("公告类型(1通知 2公告)")
|
||||
@Schema(description = "公告类型(1通知 2公告)")
|
||||
private String noticeType;
|
||||
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
private String noticeContent;
|
||||
|
||||
@ApiModelProperty("消息阅读状态")
|
||||
@Schema(description = "消息阅读状态")
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
private String state;
|
||||
|
||||
@JsonIgnore
|
||||
private ActionEnums action;
|
||||
|
||||
@ApiModelProperty("群组")
|
||||
@Schema(description = "群组")
|
||||
private String cluster;
|
||||
|
||||
public static NotifyVo toNotifyVo(Notice notice) {
|
||||
|
||||
Reference in New Issue
Block a user