优化首页报表
This commit is contained in:
@@ -103,6 +103,24 @@ export function fetchPushToMeilisearch(modelIds: number[]) {
|
||||
});
|
||||
}
|
||||
|
||||
export function fetchBatchUpdateModels(data: {
|
||||
ids: number[];
|
||||
brand_name?: string;
|
||||
form?: string;
|
||||
source?: string;
|
||||
rig?: string;
|
||||
}) {
|
||||
return request<{
|
||||
updated_count: number;
|
||||
updated_ids: number[];
|
||||
errors: Array<{ id: number; brand_name: string; name: string; error: string }>;
|
||||
}>({
|
||||
url: '/models/batch-update',
|
||||
method: 'patch',
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
export function fetchFromSquigLink(shareUrl: string, selectedFile?: string) {
|
||||
return request({
|
||||
url: '/models/squiglink-fetch',
|
||||
|
||||
Reference in New Issue
Block a user