index.ts 606 B

123456789101112131415161718192021222324252627282930
  1. import axiosInstance from '../../utils/axios';
  2. // 锁定站 VO 类型
  3. export interface LotoStationVO {
  4. id?: number;
  5. lotoName: string;
  6. [key: string]: any;
  7. }
  8. // 分页参数类型
  9. export interface PageParam {
  10. pageNo?: number;
  11. pageSize?: number;
  12. [key: string]: any;
  13. }
  14. // 分页响应类型
  15. export interface PageResponse<T> {
  16. list: T[];
  17. total: number;
  18. }
  19. // 锁定站管理 API
  20. export const lotoStationApi = {
  21. // 查询锁定站列表
  22. listLoto: (params?: PageParam): Promise<PageResponse<LotoStationVO>> => {
  23. return axiosInstance.get('/iscs/loto-station/page', { params });
  24. },
  25. };