/** * @author songxiwen * @date 2020/12/07 17:29 */ export type ThirdPartyPlatformRequestType = { name: string; limit: number; cycle: string; authFields: object; }; export type ThirdPartyApiKeyRequestType = { thirdPartyPlatformId: string; key: any; isPaid: boolean; }; export type ThirdPartyPlatformResponseType = { id: string; name: string; limit: number; cycle: string; authFields: object; isEnabled: boolean; createdAt: Date; updatedAt: Date; }; export type ThirdPartyApiKeyResponseType = { id: string; thirdPartyPlatform: ThirdPartyPlatformResponseType; key: any; isEnabled: boolean; isPaid: boolean; remainingCount: number; resetAt: Date; createdAt: Date; updatedAt: Date; }; export type ThirdPartyApiKeyListFilterRequestType = { pageIndex: number; pageSize: number; thirdPartyPlatformId?: string; order: { [key: string]: number } | {}; }; export type ThirdPartyPlatformListFilterRequestType = { pageIndex: number; pageSize: number; order: { [key: string]: number } | {}; }; export type GettingUsableApiKeySuccessType = { code: number; data: { thirdPartyApiKeyId: string; key: T; }; }; export type GettingUsableApiKeyErrorType = { code: number; message: string; };