refactor: 拆分公司/系统账户权限与模块,系统账户迁至 sys/account 并更新菜单

This commit is contained in:
2026-08-27 22:39:08 +08:00
parent 65c412d533
commit 5f184ef560
14 changed files with 273 additions and 251 deletions
@@ -4,40 +4,25 @@ import type { PageQueryDTO, PageResultVO } from '#/types/common';
import type { SuperAccountDTO, SuperAccountVO } from './types';
/**
* 超管账户管理API
* 平台系统账户管理 API(/api/sys/account)
*/
/**
* 创建账户(超管)
*/
export async function super_createAccountApi(data: SuperAccountDTO.SuperCreateAccountDTO) {
return requestClient.post<SuperAccountVO.AccountInfoVO>('/super/account/create', data);
return requestClient.post<SuperAccountVO.AccountInfoVO>('/sys/account/create', data);
}
/**
* 分页查询账户(超管)
*/
export async function super_getAccountPageApi(params: PageQueryDTO<SuperAccountDTO.AccountFilterDTO>) {
return requestClient.post<PageResultVO<SuperAccountVO.AccountInfoVO>>('/super/account/list', params);
return requestClient.post<PageResultVO<SuperAccountVO.AccountInfoVO>>('/sys/account/list', params);
}
/**
* 更新账户信息(超管)
*/
export async function super_updateAccountApi(accountId: number, data: SuperAccountDTO.SuperUpdateAccountDTO) {
return requestClient.put<SuperAccountVO.AccountInfoVO>(`/super/account/update/${accountId}`, data);
return requestClient.put<SuperAccountVO.AccountInfoVO>(`/sys/account/update/${accountId}`, data);
}
/**
* 删除账户(超管)
*/
export async function super_deleteAccountApi(accountId: number) {
return requestClient.delete<void>(`/super/account/delete/${accountId}`);
return requestClient.delete<void>(`/sys/account/delete/${accountId}`);
}
/**
* 获取账户详情(超管)
*/
export async function super_getAccountDetailApi(accountId: number) {
return requestClient.get<SuperAccountVO.AccountInfoVO>(`/super/account/detail/${accountId}`);
return requestClient.get<SuperAccountVO.AccountInfoVO>(`/sys/account/detail/${accountId}`);
}