feat(system): 新增工具名称、工具 URL 和类型字段

feature/community-center
yang 2025-05-23 09:44:00 +08:00
parent 7b7154f532
commit 376f462db0
5 changed files with 76 additions and 9 deletions

View File

@ -107,12 +107,6 @@
<artifactId>mcwl-pay</artifactId>
<version>3.8.8</version>
</dependency>
<!-- 资源中心模块-->
<dependency>
<groupId>com.mcwl</groupId>
<artifactId>mcwl-resource</artifactId>
<version>3.8.8</version>
</dependency>
<!-- 代码生成-->
<dependency>
<groupId>com.mcwl</groupId>

View File

@ -18,17 +18,29 @@ import lombok.*;
@NoArgsConstructor
public class SysTool extends BaseEntity {
/**
* id
*/
@TableId
private Long id;
/**
*
*/
private String name;
/**
* url
*/
private String imageUrl;
/**
* url
*/
private String toolUrl;
/**
* 0 1 2
*/
private Integer type;
/**
* 0 1
*/

View File

@ -17,6 +17,13 @@ import javax.validation.constraints.Pattern;
@ApiModel(value = "新增工具请求对象")
public class AddToolRes {
/**
*
*/
@ApiModelProperty(value = "工具名称", required = true)
@NotBlank(message = "工具名称不能为空")
private String name;
/**
* url
*/
@ -24,4 +31,18 @@ public class AddToolRes {
@NotBlank(message = "图片url不能为空")
private String imageUrl;
/**
* url
*/
@ApiModelProperty(value = "工具url", required = true)
@NotBlank(message = "工具url不能为空")
private String toolUrl;
/**
* 0 1 2
*/
@ApiModelProperty(value = "类型 0文本 1图片 2视频", required = true)
@NotBlank(message = "类型不能为空")
private Integer type;
}

View File

@ -24,6 +24,14 @@ public class EditToolRes {
@NotNull(message = "工具id不能为空")
private Long id;
/**
*
*/
@ApiModelProperty(value = "工具名称", required = true)
@NotBlank(message = "工具名称不能为空")
private String name;
/**
* url
*/
@ -31,6 +39,20 @@ public class EditToolRes {
@NotBlank(message = "图片url不能为空")
private String imageUrl;
/**
* url
*/
@ApiModelProperty(value = "工具url", required = true)
@NotBlank(message = "工具url不能为空")
private String toolUrl;
/**
* 0 1 2
*/
@ApiModelProperty(value = "类型 0文本 1图片 2视频", required = true)
@NotBlank(message = "类型不能为空")
private Integer type;
/**
*
*/

View File

@ -24,12 +24,30 @@ public class ToolVo {
@ApiModelProperty(value = "工具id")
private Long id;
/**
*
*/
@ApiModelProperty(value = "工具名称")
private String name;
/**
* url
*/
@ApiModelProperty(value = "图片url")
private String imageUrl;
/**
* url
*/
@ApiModelProperty(value = "工具url")
private String toolUrl;
/**
* 0 1 2
*/
@ApiModelProperty(value = "类型 0文本 1图片 2视频")
private Integer type;
/**
* 0 1
*/