喊话器参数文档优化
This commit is contained in:
parent
3177b26cd9
commit
161c089635
|
|
@ -24,31 +24,31 @@ public class SpeakerDTO implements Serializable {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
|
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
|
||||||
@Schema(name = "标识")
|
@Schema(description = "标识")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@NotNull(message = "类型不能为空")
|
@NotNull(message = "类型不能为空")
|
||||||
@Min(value = 1, message = "类型错误")
|
@Min(value = 1, message = "类型错误")
|
||||||
@Max(value = 2, message = "类型错误")
|
@Max(value = 2, message = "类型错误")
|
||||||
@Schema(name = "类型 1:文本 2:音频")
|
@Schema(description = "类型 1:文本 2:音频")
|
||||||
private Integer type;
|
private Integer type;
|
||||||
|
|
||||||
@NotBlank(message = "机场编号不能为空")
|
@NotBlank(message = "机场编号不能为空")
|
||||||
@Schema(name = "机场编号")
|
@Schema(description = "机场编号")
|
||||||
private String dockSn;
|
private String dockSn;
|
||||||
|
|
||||||
@NotBlank(message = "模版名称不能为空")
|
@NotBlank(message = "模版名称不能为空")
|
||||||
@Schema(name = "模版名称")
|
@Schema(description = "模版名称")
|
||||||
private String name;
|
private String name;
|
||||||
|
|
||||||
@Schema(name = "文本内容")
|
@Schema(description = "文本内容")
|
||||||
private String textContent;
|
private String textContent;
|
||||||
|
|
||||||
@Schema(name = "源音频文件地址")
|
@Schema(description = "源音频文件地址")
|
||||||
private String mediaPath;
|
private String mediaPath;
|
||||||
|
|
||||||
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
|
@JsonProperty(access = JsonProperty.Access.READ_ONLY)
|
||||||
@Schema(name = "创建时间")
|
@Schema(description = "创建时间")
|
||||||
private Date createDate;
|
private Date createDate;
|
||||||
|
|
||||||
@JsonIgnore
|
@JsonIgnore
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue