feat(weibo): 增加工作台独占与快捷操作
This commit is contained in:
@@ -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;
|
||||
}) =>
|
||||
|
||||
Reference in New Issue
Block a user