| 1 | import type { ClientType } from '@/app/[lng]/accounts/accounts.enums' |
| 2 | import type { PlatType } from '@/app/config/platConfig' |
| 3 | |
| 4 | // Source: types/account.type.ts |
| 5 | |
| 6 | /** |
| 7 | * SocialAccount 类型。 |
| 8 | */ |
| 9 | export interface SocialAccount { |
| 10 | id: string |
| 11 | type: PlatType |
| 12 | loginCookie?: string |
| 13 | access_token?: string |
| 14 | refresh_token?: string |
| 15 | loginTime?: string |
| 16 | uid: string |
| 17 | avatar: string |
| 18 | nickname: string |
| 19 | fansCount?: number |
| 20 | followingCount?: number |
| 21 | readCount?: number |
| 22 | likeCount?: number |
| 23 | collectCount?: number |
| 24 | forwardCount?: number |
| 25 | commentCount?: number |
| 26 | lastStatsTime?: string |
| 27 | workCount?: number |
| 28 | income?: number |
| 29 | status: number |
| 30 | createTime?: string |
| 31 | updateTime?: string |
| 32 | createdAt?: string |
| 33 | updatedAt?: string |
| 34 | rank: number |
| 35 | groupId: string |
| 36 | channelId?: string |
| 37 | clientType?: ClientType |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * CreateChannelAccountParams 请求参数。 |
| 42 | */ |
| 43 | export interface CreateChannelAccountParams { |
| 44 | type: PlatType |
| 45 | uid: string |
| 46 | nickname: string |
| 47 | loginCookie?: string |
| 48 | avatar?: string |
| 49 | groupId?: string |
| 50 | } |
| 51 | |
| 52 | /** |
| 53 | * AccountListData 数据结构。 |
| 54 | */ |
| 55 | export interface AccountListData { |
| 56 | total: number |
| 57 | list: SocialAccount[] |
| 58 | } |
| 59 | |
| 60 | /** |
| 61 | * AccountGroupItem 数据结构。 |
| 62 | */ |
| 63 | export interface AccountGroupItem { |
| 64 | id: string |
| 65 | name: string |
| 66 | rank?: number |
| 67 | isDefault: boolean |
| 68 | proxyIp?: string |
| 69 | ip?: string |
| 70 | location?: string |
| 71 | countryCode?: string |
| 72 | hasBrowserConfig?: boolean |
| 73 | createdAt?: string |
| 74 | updatedAt?: string |
| 75 | } |
| 76 | |
| 77 | // Source: accounts/account.api.ts inline types |
| 78 | // Source: accountSort.ts |
| 79 | /** |
| 80 | * SortRankItem 数据结构。 |
| 81 | */ |
| 82 | export interface SortRankItem |
| 83 | { |
| 84 | id: string |
| 85 | rank: number |
| 86 | } |
| 87 | |
| 88 | /** |
| 89 | * SortRankRequest 请求参数。 |
| 90 | */ |
| 91 | export interface SortRankRequest { |
| 92 | list: SortRankItem[] |
| 93 | } |
| 94 |