perf(fulfillment): 优化本地能力选号查询与索引
This commit is contained in:
@@ -30,6 +30,7 @@ export interface DouyuCollabOrder {
|
||||
id: number;
|
||||
order_no: string;
|
||||
shop: string;
|
||||
shop_original_name: string;
|
||||
owner_id: number | null;
|
||||
owner_name: string;
|
||||
source_type: string;
|
||||
@@ -179,6 +180,7 @@ export interface DouyuCollabOwner {
|
||||
export interface DouyuCollabShop {
|
||||
id: number;
|
||||
name: string;
|
||||
aliases: string[];
|
||||
sort_order: number;
|
||||
is_active: boolean;
|
||||
remark: string;
|
||||
@@ -348,11 +350,17 @@ export const douyuCollabApi = {
|
||||
owners: () => api.get<DouyuCollabOwner[], DouyuCollabOwner[]>('/douyu/external-orders/owners'),
|
||||
shops: () => api.get<string[], string[]>('/douyu/external-orders/shops'),
|
||||
shopRecords: () => api.get<DouyuCollabShop[], DouyuCollabShop[]>('/douyu/collab-shops'),
|
||||
createShop: (data: { name: string; remark?: string }) =>
|
||||
createShop: (data: { name: string; aliases?: string[]; remark?: string }) =>
|
||||
api.post<DouyuCollabShop, DouyuCollabShop>('/douyu/collab-shops', data),
|
||||
updateShop: (
|
||||
id: number,
|
||||
data: { name?: string; sort_order?: number; is_active?: boolean; remark?: string },
|
||||
data: {
|
||||
name?: string;
|
||||
aliases?: string[];
|
||||
sort_order?: number;
|
||||
is_active?: boolean;
|
||||
remark?: string;
|
||||
},
|
||||
) => api.put<DouyuCollabShop, DouyuCollabShop>(`/douyu/collab-shops/${id}`, data),
|
||||
deleteShop: (id: number) =>
|
||||
api.delete<{ success: boolean; name: string; id: number }, { success: boolean; name: string; id: number }>(
|
||||
|
||||
Reference in New Issue
Block a user