适配新改动

This commit is contained in:
Pan Qiancheng 2026-01-21 12:38:15 +08:00
parent eb194867a8
commit 2a4f94b62f
4 changed files with 30 additions and 14 deletions

View File

@ -9,12 +9,7 @@ type ChunkInfo = {
partCount: number;
uploadId: string;
merged: boolean;
parts: Array<{
partNumber: number;
uploadUrl: string;
etag: string;
formData?: Record<string, any>;
}>;
parts: Array<string>;
};
export type OpSchema = EntityShape & {
origin: CosOrigin;

View File

@ -58,5 +58,18 @@ export const desc = {
}
},
actionType: "crud",
actions
actions,
indexes: [
{
// 业务上可能涉及的间接授权查询,建立索引以避免全表扫描
name: 'idx_oauthUser_composite',
attributes: [{
name: "userId",
}, {
name: 'providerUserId',
}, {
name: "providerConfigId",
}]
}
]
};

View File

@ -9,12 +9,7 @@ type ChunkInfo = {
partCount: number;
uploadId: string;
merged: boolean;
parts: Array<{
partNumber: number;
uploadUrl: string;
etag: string;
formData?: Record<string, any>;
}>;
parts: Array<string>;
};
export type OpSchema = EntityShape & {
origin: CosOrigin;

View File

@ -61,5 +61,18 @@ exports.desc = {
}
},
actionType: "crud",
actions: Action_1.actions
actions: Action_1.actions,
indexes: [
{
// 业务上可能涉及的间接授权查询,建立索引以避免全表扫描
name: 'idx_oauthUser_composite',
attributes: [{
name: "userId",
}, {
name: 'providerUserId',
}, {
name: "providerConfigId",
}]
}
]
};