vitesse-yitisheng-web/src/service/api/major.ts

70 lines
1.5 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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不需要全屏遮罩
})
}