21 lines
497 B
TypeScript
21 lines
497 B
TypeScript
import { request } from '@/utils/request'
|
|
import type { BaseResponse } from '../login/type'
|
|
|
|
/** 考试信息类型 */
|
|
export interface ExamItem {
|
|
id: string
|
|
examName: string
|
|
examDate: string
|
|
startTime: string
|
|
endTime: string
|
|
provinceName: string
|
|
cityName: string
|
|
address: string
|
|
locationName: string
|
|
estimatedAttendees: string
|
|
}
|
|
|
|
/** 获取可报名考试列表 */
|
|
export const getCanBookExamListAPI = () =>
|
|
request.get<BaseResponse<ExamItem[]>>('/exam/getCanBookExamList')
|