oak-general-business/lib/entities/ExtraFile.js

95 lines
2.7 KiB
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.entityDesc = void 0;
;
exports.entityDesc = {
locales: {
zh_CN: {
name: '文件',
attr: {
origin: '源',
type: '类型',
bucket: '桶',
objectId: '对象编号',
tag1: '标签一',
tag2: '标签二',
filename: '文件名',
md5: 'md5',
entity: '关联对象',
entityId: '关联对象id',
extra1: '额外信息',
extra2: '非结构化额外信息',
extension: '后缀名',
size: '文件大小',
sort: '排序',
fileType: '文件类型',
isBridge: '是否桥接访问',
uploadState: '上传状态',
uploadMeta: '上传需要的metadata',
application: '来源应用',
},
v: {
origin: {
qiniu: '七牛云',
ctyun: '天翼云',
wechat: '微信',
aliyun: '阿里云',
tencent: '腾讯云',
local: '本地',
unknown: '未知',
s3: 'S3',
},
type: {
image: '图像',
video: '视频',
audio: '音频',
file: '文件',
},
uploadState: {
success: '上传成功',
failed: '上传失败',
uploading: '上传中',
},
},
},
},
indexes: [
{
name: 'objectId_deleteAt',
attributes: [
{
name: 'objectId',
},
{
name: '$$deleteAt$$',
},
],
},
],
style: {
color: {
origin: {
s3: '#FFA500',
qiniu: '#37caff',
wechat: '#2aae67',
ctyun: '#ff0000',
aliyun: '#1677ff',
tencent: '#0052d9',
local: '#A9A9A9',
unknown: '#A9A9A9',
},
type: {
image: '#0000FF',
video: '#008000',
audio: '#F5DEB3',
file: '#EEE8AA',
},
uploadState: {
success: '#008000',
failed: '#FF0000',
uploading: '#0000FF',
},
},
},
};