refactor(typings): Refactor user and profile models; update API response types
This commit is contained in:
@@ -5,6 +5,19 @@ import {
|
||||
} from '@/constants/api';
|
||||
import { request } from '@umijs/max';
|
||||
|
||||
export async function apiSearchThings(
|
||||
body: MasterModel.SearchPaginationBody,
|
||||
domain: 'spole',
|
||||
): Promise<SpoleModel.SpoleThingsResponse>;
|
||||
export async function apiSearchThings(
|
||||
body: MasterModel.SearchPaginationBody,
|
||||
domain: 'sgw',
|
||||
): Promise<SgwModel.SgwThingsResponse>;
|
||||
export async function apiSearchThings(
|
||||
body: MasterModel.SearchPaginationBody,
|
||||
domain?: 'gms',
|
||||
): Promise<GmsModel.GmsThingsResponse>;
|
||||
|
||||
export async function apiSearchThings(
|
||||
body: MasterModel.SearchPaginationBody,
|
||||
domain: string = process.env.DOMAIN_ENV || 'gms',
|
||||
|
||||
Reference in New Issue
Block a user