| 1234567891011121314151617181920212223242526272829303132 |
- import axiosInstance from '../../utils/axios';
- // 岗位(MarsDept)VO 类型
- export interface MarsDeptVO {
- id?: number;
- workstationName: string;
- parentId?: number;
- children?: MarsDeptVO[];
- [key: string]: any;
- }
- // 分页参数类型
- export interface PageParam {
- pageNo?: number;
- pageSize?: number;
- [key: string]: any;
- }
- // 分页响应类型
- export interface PageResponse<T> {
- list: T[];
- total: number;
- }
- // 岗位(MarsDept)管理 API
- export const marsDeptApi = {
- // 查询岗位列表
- listMarsDept: (params?: PageParam): Promise<PageResponse<MarsDeptVO>> => {
- return axiosInstance.get('/system/marsdept/list', { params });
- },
- };
|