70 lines
1.5 KiB
TypeScript
70 lines
1.5 KiB
TypeScript
import request from '../request'
|
||
|
||
export interface UserMajorListRequest {
|
||
page?: number
|
||
size?: number
|
||
batch?: string
|
||
batch2?: string
|
||
probability?: string
|
||
schoolCode?: string
|
||
}
|
||
|
||
export interface HistoryMajorEnroll {
|
||
year: string
|
||
enrollmentCode: string
|
||
enrollmentCount: number
|
||
rulesEnrollProbability: string
|
||
probabilityOperator: string
|
||
admissionLine: number
|
||
controlLine: number
|
||
}
|
||
|
||
export interface MajorItem {
|
||
schoolCode: string
|
||
schoolName: string
|
||
schoolNature: string
|
||
province: string
|
||
institutionType: string
|
||
majorCode: string
|
||
majorName: string
|
||
majorType: string
|
||
majorTypeChild: string
|
||
planNum: number
|
||
mainSubjects: string
|
||
limitation: string
|
||
chineseScoreLimitation: number
|
||
englishScoreLimitation: number
|
||
culturalScoreLimitation: number
|
||
professionalScoreLimitation: number
|
||
enrollmentCode: string
|
||
tuition: string
|
||
detail: string
|
||
category: string
|
||
batch: string
|
||
rulesEnrollProbability: string
|
||
probabilityOperator: string
|
||
rulesEnrollProbabilitySx: string
|
||
kslx: string
|
||
state: string
|
||
historyMajorEnrollMap: Record<string, HistoryMajorEnroll>
|
||
enrollProbability: number
|
||
studentScore: number
|
||
}
|
||
|
||
export interface UserMajorListResponse {
|
||
list: {
|
||
items: MajorItem[]
|
||
probCount: Record<string, number>
|
||
}
|
||
total: number
|
||
page: number
|
||
size: number
|
||
}
|
||
|
||
export function getUserMajorList(params: UserMajorListRequest) {
|
||
return request.get<UserMajorListResponse>('/user/major/list', {
|
||
params,
|
||
showLoading: false, // 页面内部处理 loading,不需要全屏遮罩
|
||
})
|
||
}
|