refactor(codegen): 更新Swagger注解版本
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
lsym004933
2026-01-17 13:54:59 +08:00
parent 5730ae5046
commit c3b925cc13
82 changed files with 573 additions and 573 deletions

View File

@@ -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

View File

@@ -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()

View File

@@ -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) {