feat(weibo): 增加工作台独占与快捷操作

This commit is contained in:
yml2213
2026-11-08 16:39:32 +08:00
parent d566518478
commit c8b62e5267
10 changed files with 341 additions and 29 deletions
+9 -1
View File
@@ -19,6 +19,7 @@ import type {
export const weiboApi = {
listAccounts: (params: {
search?: string;
tag?: string;
bind_status?: string;
enabled?: boolean;
page: number;
@@ -30,10 +31,11 @@ export const weiboApi = {
),
getAccount: (accountId: number) =>
api.get<WeiboAccountItem, WeiboAccountItem>(`/weibo/accounts/${accountId}`),
importCookies: (text: string, tag = '') =>
importCookies: (text: string, tag = '', updateExisting = false) =>
api.post<WeiboImportResult, WeiboImportResult>('/weibo/accounts/import-cookies', {
text,
tag,
update_existing: updateExisting,
}),
updateAccount: (
accountId: number,
@@ -67,8 +69,13 @@ export const weiboApi = {
'/weibo/accounts/batch-tag',
{ ids, tag },
),
accountTags: () =>
api.get<{ tags: string[] }, { tags: string[] }>('/weibo/accounts/tags'),
workbenchTags: () =>
api.get<{ tags: string[] }, { tags: string[] }>('/weibo/workbench/tags'),
listWorkbenchAccounts: (params: {
search?: string;
tag?: string;
bind_status?: string;
enabled?: boolean;
page: number;
@@ -80,6 +87,7 @@ export const weiboApi = {
),
listWorkbenchPool: (params: {
search?: string;
tag?: string;
page: number;
page_size: number;
}) =>