feat:【framework 框架】增加 api 加解密能力

This commit is contained in:
YunaiV
2025-08-16 17:09:08 +08:00
parent 9cac5a2937
commit 2920dabb99
13 changed files with 605 additions and 2 deletions

View File

@@ -64,7 +64,11 @@ export namespace AuthApi {
/** 登录 */
export async function loginApi(data: AuthApi.LoginParams) {
return requestClient.post<AuthApi.LoginResult>('/system/auth/login', data);
return requestClient.post<AuthApi.LoginResult>('/system/auth/login', data, {
headers: {
isEncrypt: true,
},
});
}
/** 刷新 accessToken */