feat(AI资源广场): 模型/数据集/SKILL简介允许为空

This commit is contained in:
otto 2026-05-25 17:21:08 +08:00
parent a349b2e88f
commit 675a080b29
4 changed files with 4 additions and 6 deletions

View File

@ -25,8 +25,7 @@ public class AiDatasetInputVo {
@NotNull(message = "资源领域Id不能为空")
private Long domainId;
@ApiModelProperty(value = "数据集简介", required = true)
@NotBlank(message = "数据集简介不能为空")
@ApiModelProperty(value = "数据集简介")
@Size(max = 500, message = "数据集简介不能超过500个字符")
private String summary;

View File

@ -25,8 +25,7 @@ public class AiModelInputVo {
@NotNull(message = "资源领域Id不能为空")
private Long domainId;
@ApiModelProperty(value = "模型简介", required = true)
@NotBlank(message = "模型简介不能为空")
@ApiModelProperty(value = "模型简介")
@Size(max = 500, message = "模型简介不能超过500个字符")
private String summary;

View File

@ -28,7 +28,7 @@ public class AiSkillInputVo {
@NotNull
private Long domainId;
@ApiModelProperty(value = "Skill简介", required = true)
@ApiModelProperty(value = "Skill简介")
@Size(max = 500, message = "Skill简介不能超过500个字符")
private String summary;

View File

@ -108,7 +108,7 @@ public class AiResourceParseServiceImpl implements IAiResourceParseService {
// 解析成功后自动上传ZIP文件到File微服务上传失败则阻断整个接口
SysFile sysFile = FeignUtils.getReturnData(
remoteFileService.upload(zipFile, "ai-resource", "skill", SecurityConstants.INNER)
remoteFileService.upload(zipFile, "ai-resource", "skills", SecurityConstants.INNER)
);
if (sysFile == null || StringUtils.isEmpty(sysFile.getFileIdentifier())) {
throw new ServiceException("文件上传返回为空,请重试");