abpcoder vor 5 Tagen
Ursprung
Commit
f9b666ac0c
1 geänderte Dateien mit 5 neuen und 5 gelöschten Zeilen
  1. 5 5
      src/api/modules/voluntary.ts

+ 5 - 5
src/api/modules/voluntary.ts

@@ -8,7 +8,7 @@ export function getRenderRules(um: SelectedUniversityMajor) {
     return flyio.post('/voluntary/getRenderRules', {universityId, majorId}) as Promise<ApiResponse<EnrollRule[]>>
 }
 
-export function getSkillRules(params: SelectedUniversityMajor) {
+export function getSkillRules(um: SelectedUniversityMajor) {
     // EnrollRule 需要返回文化+职业,但职业EnrollRule.details = []不需要返回字段规则
     const {universityId, majorId} = um
     return flyio.post('/voluntary/getSkillRules', {universityId, majorId}) as Promise<ApiResponse<EnrollRule[]>>
@@ -42,22 +42,22 @@ export function addVoluntary(data: Partial<SelectedUniversityMajor>) {
     return flyio.post('/voluntary/addVoluntary', {universityId, majorId})
 }
 
-export function removeVoluntaryByUniversity(universityId) {
+export function removeVoluntaryByUniversity(universityId: string) {
     // 删除院校下的所有 // SelectedUniversityMajor.universityId
     return flyio.post('/voluntary/removeVoluntaryByUniversity/' + universityId)
 }
 
-export function removeVoluntaryByMajor(majorId) {
+export function removeVoluntaryByMajor(majorId: string) {
     // 删除指定专业,注意合并 // SelectedUniversityMajor.majorId
     return flyio.post('/voluntary/removeVoluntaryByMajor/' + majorId)
 }
 
-export function sortVoluntaryByMajor(universityId, majorIdList: []) {
+export function sortVoluntaryByMajor(universityId: string, majorIdList: string[]) {
     // 按传入专业id顺序,保存专业排序优先级
     return flyio.post('/voluntary/sortVoluntaryByMajor', {universityId, majorIdList})
 }
 
-export function sortVoluntaryByUniversity(universityIdList: []) {
+export function sortVoluntaryByUniversity(universityIdList: string[]) {
     // 按传入院校id顺序,保存排序优先级
     return flyio.post('/voluntary/sortVoluntaryByUniversity', {universityIdList})
 }