upper attachment-selector to lib

This commit is contained in:
Timi
2026-10-21 16:24:00 +08:00
parent e40c912dd9
commit c870bcdd39
43 changed files with 678 additions and 1663 deletions
+13
View File
@@ -19,3 +19,16 @@ export function getAttachmentReadURL(id: string, thumbnailSize?: number): string
const separator = url.includes("?") ? "&" : "?";
return `${url}${separator}${params.toString()}`;
}
/**
* 获取业务附件类型的显示名称。
*/
export function getAttachmentTypeText(attachType?: string): string {
if (attachType === "POINT_CARD") {
return "积分卡";
}
if (attachType === "OTHER") {
return "其他文件";
}
return "照片";
}