喊话器参数文档优化

This commit is contained in:
sdy 2026-05-25 17:21:19 +08:00
parent 3177b26cd9
commit 161c089635
1 changed files with 7 additions and 7 deletions

View File

@ -24,31 +24,31 @@ public class SpeakerDTO implements Serializable {
private static final long serialVersionUID = 1L;
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
@Schema(name = "标识")
@Schema(description = "标识")
private Long id;
@NotNull(message = "类型不能为空")
@Min(value = 1, message = "类型错误")
@Max(value = 2, message = "类型错误")
@Schema(name = "类型 1:文本 2:音频")
@Schema(description = "类型 1:文本 2:音频")
private Integer type;
@NotBlank(message = "机场编号不能为空")
@Schema(name = "机场编号")
@Schema(description = "机场编号")
private String dockSn;
@NotBlank(message = "模版名称不能为空")
@Schema(name = "模版名称")
@Schema(description = "模版名称")
private String name;
@Schema(name = "文本内容")
@Schema(description = "文本内容")
private String textContent;
@Schema(name = "源音频文件地址")
@Schema(description = "源音频文件地址")
private String mediaPath;
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
@Schema(name = "创建时间")
@Schema(description = "创建时间")
private Date createDate;
@JsonIgnore