123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- import { PropsWithChildren, SVGProps } from "react";
- export type IconSvgProps = SVGProps<SVGSVGElement> & {
- size?: number;
- };
- export type LocalPropsWithChildren<T = unknown> = {
- params: {
- local: string;
- };
- } & PropsWithChildren<T>;
- export interface Pagination {
- /**
- * 分页模式--当前页数
- */
- current_page: number;
- /**
- * 升序-降序
- */
- is_asc: boolean;
- /**
- * 是否已经没有数据
- */
- is_end: boolean;
- /**
- * 下一页的起始位,默认0
- */
- next_cursor: string;
- /**
- * 每页大小
- */
- page_size: number;
- /**
- * 如果是升序-那就是最大ID,如果是降序那就是最小ID
- */
- start_cursor: string;
- /**
- * 总数
- */
- total_count: number;
- /**
- * 是否使用分页----默认为下标模式
- */
- use_page: boolean;
- }
- export type Result<T> = {
- code: number;
- msg: string;
- data: T;
- };
- export type Response<T> = T extends any[] ? Result<T> & { page: Pagination } : Result<T>;
- // 钱包类型
- export enum WalletEnum {
- Bonus = "Bonus",
- Balance = "Balance",
- Free = "Free",
- Replay = "Replay",
- }
|