适配新改动
This commit is contained in:
parent
eb194867a8
commit
2a4f94b62f
|
|
@ -9,12 +9,7 @@ type ChunkInfo = {
|
||||||
partCount: number;
|
partCount: number;
|
||||||
uploadId: string;
|
uploadId: string;
|
||||||
merged: boolean;
|
merged: boolean;
|
||||||
parts: Array<{
|
parts: Array<string>;
|
||||||
partNumber: number;
|
|
||||||
uploadUrl: string;
|
|
||||||
etag: string;
|
|
||||||
formData?: Record<string, any>;
|
|
||||||
}>;
|
|
||||||
};
|
};
|
||||||
export type OpSchema = EntityShape & {
|
export type OpSchema = EntityShape & {
|
||||||
origin: CosOrigin;
|
origin: CosOrigin;
|
||||||
|
|
|
||||||
|
|
@ -58,5 +58,18 @@ export const desc = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
actionType: "crud",
|
actionType: "crud",
|
||||||
actions
|
actions,
|
||||||
|
indexes: [
|
||||||
|
{
|
||||||
|
// 业务上可能涉及的间接授权查询,建立索引以避免全表扫描
|
||||||
|
name: 'idx_oauthUser_composite',
|
||||||
|
attributes: [{
|
||||||
|
name: "userId",
|
||||||
|
}, {
|
||||||
|
name: 'providerUserId',
|
||||||
|
}, {
|
||||||
|
name: "providerConfigId",
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
]
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -9,12 +9,7 @@ type ChunkInfo = {
|
||||||
partCount: number;
|
partCount: number;
|
||||||
uploadId: string;
|
uploadId: string;
|
||||||
merged: boolean;
|
merged: boolean;
|
||||||
parts: Array<{
|
parts: Array<string>;
|
||||||
partNumber: number;
|
|
||||||
uploadUrl: string;
|
|
||||||
etag: string;
|
|
||||||
formData?: Record<string, any>;
|
|
||||||
}>;
|
|
||||||
};
|
};
|
||||||
export type OpSchema = EntityShape & {
|
export type OpSchema = EntityShape & {
|
||||||
origin: CosOrigin;
|
origin: CosOrigin;
|
||||||
|
|
|
||||||
|
|
@ -61,5 +61,18 @@ exports.desc = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
actionType: "crud",
|
actionType: "crud",
|
||||||
actions: Action_1.actions
|
actions: Action_1.actions,
|
||||||
|
indexes: [
|
||||||
|
{
|
||||||
|
// 业务上可能涉及的间接授权查询,建立索引以避免全表扫描
|
||||||
|
name: 'idx_oauthUser_composite',
|
||||||
|
attributes: [{
|
||||||
|
name: "userId",
|
||||||
|
}, {
|
||||||
|
name: 'providerUserId',
|
||||||
|
}, {
|
||||||
|
name: "providerConfigId",
|
||||||
|
}]
|
||||||
|
}
|
||||||
|
]
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue