index.ts 672 B

1234567891011121314151617181920212223242526272829303132
  1. import axiosInstance from '../../utils/axios';
  2. // 岗位(MarsDept)VO 类型
  3. export interface MarsDeptVO {
  4. id?: number;
  5. workstationName: string;
  6. parentId?: number;
  7. children?: MarsDeptVO[];
  8. [key: string]: any;
  9. }
  10. // 分页参数类型
  11. export interface PageParam {
  12. pageNo?: number;
  13. pageSize?: number;
  14. [key: string]: any;
  15. }
  16. // 分页响应类型
  17. export interface PageResponse<T> {
  18. list: T[];
  19. total: number;
  20. }
  21. // 岗位(MarsDept)管理 API
  22. export const marsDeptApi = {
  23. // 查询岗位列表
  24. listMarsDept: (params?: PageParam): Promise<PageResponse<MarsDeptVO>> => {
  25. return axiosInstance.get('/system/marsdept/list', { params });
  26. },
  27. };