This commit is contained in:
dap
2024-08-08 08:03:04 +08:00
71 changed files with 1219 additions and 1210 deletions

View File

@@ -26,7 +26,7 @@ export namespace AuthApi {
/**
* 登录
*/
export async function login(data: AuthApi.LoginParams) {
export async function loginApi(data: AuthApi.LoginParams) {
return requestClient.post<AuthApi.LoginResult>(
'/auth/login',
{ ...data, clientId },
@@ -70,3 +70,7 @@ export interface TenantResp {
export function tenantList() {
return requestClient.get<TenantResp>('/auth/tenant/list');
}
export async function getAccessCodesApi() {
return requestClient.get<string[]>('/auth/codes');
}