forked from Gitlink/microservices
feat(AI资源广场): 模型/数据集/SKILL简介允许为空
This commit is contained in:
parent
a349b2e88f
commit
675a080b29
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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("文件上传返回为空,请重试");
|
||||
|
|
|
|||
Loading…
Reference in New Issue