修改门户管理图片显示逻辑
This commit is contained in:
@@ -40,8 +40,11 @@ public class PortalRespVO {
|
|||||||
@ExcelProperty("图标类型")
|
@ExcelProperty("图标类型")
|
||||||
private Integer iconType;
|
private Integer iconType;
|
||||||
|
|
||||||
@Schema(description = "图标图片URL(当 iconType=2 时使用)", example = "https://example.com/icon.png")
|
@Schema(description = "图标文件ID(当 iconType=2 时使用)", example = "1234567890")
|
||||||
private String iconUrl;
|
private String iconFileId;
|
||||||
|
|
||||||
|
@Schema(description = "图标文件名(当 iconType=2 时使用)", example = "logo.png")
|
||||||
|
private String iconFileName;
|
||||||
|
|
||||||
@Schema(description = "门户分类", example = "业务系统")
|
@Schema(description = "门户分类", example = "业务系统")
|
||||||
@ExcelProperty("门户分类")
|
@ExcelProperty("门户分类")
|
||||||
|
|||||||
@@ -41,9 +41,13 @@ public class PortalSaveReqVO {
|
|||||||
@Max(value = 2, message = "图标类型值不正确")
|
@Max(value = 2, message = "图标类型值不正确")
|
||||||
private Integer iconType;
|
private Integer iconType;
|
||||||
|
|
||||||
@Schema(description = "图标图片URL(当 iconType=2 时使用)", example = "https://example.com/icon.png")
|
@Schema(description = "图标文件ID(当 iconType=2 时使用)", example = "1234567890")
|
||||||
@Size(max = 500, message = "图标图片URL长度不能超过500个字符")
|
@Size(max = 64, message = "图标文件ID长度不能超过64个字符")
|
||||||
private String iconUrl;
|
private String iconFileId;
|
||||||
|
|
||||||
|
@Schema(description = "图标文件名(当 iconType=2 时使用)", example = "logo.png")
|
||||||
|
@Size(max = 255, message = "图标文件名长度不能超过255个字符")
|
||||||
|
private String iconFileName;
|
||||||
|
|
||||||
@Schema(description = "门户分类", example = "业务系统")
|
@Schema(description = "门户分类", example = "业务系统")
|
||||||
@Size(max = 50, message = "门户分类长度不能超过50个字符")
|
@Size(max = 50, message = "门户分类长度不能超过50个字符")
|
||||||
|
|||||||
@@ -49,14 +49,21 @@ public class PortalDO extends TenantBaseDO {
|
|||||||
* 图标类型
|
* 图标类型
|
||||||
*
|
*
|
||||||
* 1 - 图标库(使用 icon 字段)
|
* 1 - 图标库(使用 icon 字段)
|
||||||
* 2 - 自定义图片(使用 iconUrl 字段)
|
* 2 - 自定义图片(使用 iconFileId 字段)
|
||||||
*/
|
*/
|
||||||
private Integer iconType;
|
private Integer iconType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 图标图片URL(当 iconType=2 时使用)
|
* 图标文件ID(当 iconType=2 时使用)
|
||||||
|
*
|
||||||
|
* 通过文件ID实时获取访问URL,避免URL过期问题
|
||||||
*/
|
*/
|
||||||
private String iconUrl;
|
private String iconFileId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 图标文件名(当 iconType=2 时使用)
|
||||||
|
*/
|
||||||
|
private String iconFileName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 门户分类
|
* 门户分类
|
||||||
|
|||||||
Reference in New Issue
Block a user