feat(database): improve MySQL user authorization (#13326)

This commit is contained in:
ssongliu
2026-07-21 19:08:09 +08:00
committed by GitHub
parent af12526a6c
commit c77ddcfebe
48 changed files with 1233 additions and 318 deletions
+5
View File
@@ -79,6 +79,11 @@ export const updateMysqlUserPassword = (params: Database.MysqlUserPassword) => {
encodeBase64Fields(request, ['password']);
return http.post(`/databases/users/password`, request);
};
export const saveMysqlUserPassword = (params: Database.MysqlUserPassword) => {
let request = deepCopy(params) as Database.MysqlUserPassword;
encodeBase64Fields(request, ['password']);
return http.post(`/databases/users/password/save`, request);
};
export const searchMysqlGrants = (params: Database.MysqlUserSearch) => {
return http.post<Database.MysqlGrant[]>(`/databases/grants/search`, params);
};