feat(weibo): 支持管理员强制更新占用账号 CK
This commit is contained in:
@@ -775,6 +775,12 @@ export interface WeiboAccountItem {
|
||||
export interface WeiboImportError {
|
||||
line: number;
|
||||
message: string;
|
||||
account_id: number | null;
|
||||
uid: string;
|
||||
assigned_user_id: number | null;
|
||||
assigned_username: string;
|
||||
workbench_owner_id: number | null;
|
||||
workbench_owner_username: string;
|
||||
}
|
||||
|
||||
export interface WeiboImportDuplicate {
|
||||
|
||||
@@ -49,11 +49,17 @@ export const weiboApi = {
|
||||
),
|
||||
getAccount: (accountId: number) =>
|
||||
api.get<WeiboAccountItem, WeiboAccountItem>(`/weibo/accounts/${accountId}`),
|
||||
importCookies: (text: string, tag = '', updateExisting = false) =>
|
||||
importCookies: (
|
||||
text: string,
|
||||
tag = '',
|
||||
updateExisting = false,
|
||||
forceUpdate = false,
|
||||
) =>
|
||||
api.post<WeiboImportResult, WeiboImportResult>('/weibo/accounts/import-cookies', {
|
||||
text,
|
||||
tag,
|
||||
update_existing: updateExisting,
|
||||
force_update: forceUpdate,
|
||||
}),
|
||||
updateAccount: (
|
||||
accountId: number,
|
||||
|
||||
Reference in New Issue
Block a user