Class SchoolController

java.lang.Object
io.github.seenings.school.controller.SchoolController
All Implemented Interfaces:
io.github.seenings.school.http.HttpSchoolService

@RestController public class SchoolController extends Object implements io.github.seenings.school.http.HttpSchoolService
SchoolController
Since:
2022-12-03
Author:
chixuehui
  • Constructor Details

    • SchoolController

      public SchoolController()
  • Method Details

    • idToSchoolName

      public Map<String,String> idToSchoolName(@RequestBody Set<String> ids)
      Specified by:
      idToSchoolName in interface io.github.seenings.school.http.HttpSchoolService
    • locationToSchoolCode

      public Map<String, Set<String>> locationToSchoolCode(Set<String> locations)
      根据所在地获取学校标识符
      Specified by:
      locationToSchoolCode in interface io.github.seenings.school.http.HttpSchoolService
      Parameters:
      locations - 所在地
      Returns:
      所在地对应学校标识符
    • schoolCodeToLocation

      public Map<String,String> schoolCodeToLocation(Set<String> schoolCodes)
      根据学校标识符获取所在地
      Specified by:
      schoolCodeToLocation in interface io.github.seenings.school.http.HttpSchoolService
      Parameters:
      schoolCodes - 学校标识符
      Returns:
      学校标识符对应所在地
    • toSchool

      public List<io.github.seenings.school.model.School> toSchool()
      获取所有学校的信息
      Specified by:
      toSchool in interface io.github.seenings.school.http.HttpSchoolService
      Returns:
      所有学校的信息
    • uploadExcelAll

      public List<io.github.seenings.school.model.School> uploadExcelAll(@RequestParam org.springframework.web.multipart.MultipartFile file)
      Specified by:
      uploadExcelAll in interface io.github.seenings.school.http.HttpSchoolService