新增账户管理页

This commit is contained in:
ah--desktop
2025-10-15 23:32:34 +08:00
parent b8a7c5c18e
commit 9782570163
7 changed files with 1219 additions and 23 deletions
@@ -20,7 +20,7 @@ export async function createAccountApi(data: AccountDTO.CreateAccountDTO) {
* 分页查询账户(超管)
*/
export async function getAccountPageApi(params: PageQueryDTO<AccountDTO.AccountFilterDTO>) {
return requestClient.get<AccountVO.AccountPageVO>('/account/page', { params });
return requestClient.post<PageResultVO<AccountVO.AccountInfoVO>>('/account/page', params);
}
// ==================== 管理员接口 ====================
@@ -36,7 +36,7 @@ export async function createAccountForCompanyApi(data: AccountDTO.CreateAccountD
* 分页查询账户(管理员)
*/
export async function getAccountPageForCompanyApi(params: PageQueryDTO<AccountDTO.AccountFilterDTO>) {
return requestClient.get<AccountVO.AccountPageVO>('/account/company/page', { params });
return requestClient.post<PageResultVO<AccountVO.AccountInfoVO>>('/account/company/page', params);
}
// ==================== 通用接口 ====================
@@ -49,23 +49,25 @@ export namespace AccountDTO {
/** 账户过滤条件 */
export interface AccountFilterDTO {
/** 用户名(模糊查询) */
username?: string;
/** 真实姓名(模糊查询) */
/** 登录账号(模糊查询) */
loginCode?: string;
/** 用户姓名(模糊查询) */
realName?: string;
/** 邮箱(精确查询) */
email?: string;
/** 手机号(精确查询) */
/** 手机号码(精确查询) */
phone?: string;
/** 公司ID */
companyId?: number;
/** 部门ID */
departmentId?: number;
/** 职位ID */
/** 岗位ID */
positionId?: number;
/** 角色ID */
roleId?: number;
/** 状态 */
/** 角色 */
role?: string;
/** 状态(0-正常 1-删除 2-停用 3-冻结) */
status?: number;
/** 页码 */
pageNum?: number;
/** 每页大小 */
pageSize?: number;
}
}
@@ -39,15 +39,4 @@ export namespace AccountVO {
updateTime: string;
}
/** 账户分页结果 */
export interface AccountPageVO {
/** 总记录数 */
total: number;
/** 当前页码 */
current: number;
/** 每页大小 */
size: number;
/** 账户列表 */
records: AccountInfoVO[];
}
}