/** * Namespace Api * * All backend api type */ declare namespace Api { namespace Common { /** common params of paginating */ interface PaginatingCommonParams { /** currentPage page number */ currentPage: number /** page pageSize */ pageSize: number /** total count */ total: number } /** common params of paginating query list data */ interface PaginatingQueryRecord extends PaginatingCommonParams { list: T[] } /** common search params of table */ type CommonSearchParams = Pick /** * enable status * * - "1": enabled * - "2": disabled */ type EnableStatus = '1' | '2' /** common record */ type CommonRecord = { /** record id */ id: number /** record creator */ createBy: string /** record create time */ createTime: string /** record updater */ updateBy: string /** record update time */ updateTime: string /** record status */ status: EnableStatus | null } & T } }