启动成功
This commit is contained in:
31
Frontend/src/api/controller/JiaoSe/getApiRoleList.ts
Normal file
31
Frontend/src/api/controller/JiaoSe/getApiRoleList.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
import request from "./src/api/http.js";
|
||||
import { type TrangleAgentApiUserV1RoleListRes, type DeepRequired } from "../../interface";
|
||||
import { type AxiosRequestConfig } from "axios";
|
||||
|
||||
/**
|
||||
* 角色列表
|
||||
* /api/role/list
|
||||
*/
|
||||
export function getApiRoleList(params: GetApiRoleListParams, config?: AxiosRequestConfig) {
|
||||
const paramsInput = {
|
||||
page: params.page,
|
||||
pageSize: params.pageSize,
|
||||
total: params.total,
|
||||
userId: params.userId,
|
||||
departmentId: params.departmentId,
|
||||
};
|
||||
return request.get<DeepRequired<TrangleAgentApiUserV1RoleListRes>>(`/api/role/list`, {
|
||||
params: paramsInput,
|
||||
...config,
|
||||
});
|
||||
}
|
||||
|
||||
export interface GetApiRoleListParams {
|
||||
page?: number;
|
||||
pageSize?: number;
|
||||
total?: number;
|
||||
/** 用户ID */
|
||||
userId?: number;
|
||||
/** 部门ID */
|
||||
departmentId?: number;
|
||||
}
|
||||
Reference in New Issue
Block a user