package com.cloud.user.controller; import com.cloud.model.sys.SysOrganization; import com.cloud.user.service.SysOrganizationService; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.MediaType; import org.springframework.web.bind.annotation.*; import java.util.Map; @RestController @RequestMapping("data") public class SysOrganizationAnonController { @Autowired private SysOrganizationService orgService; @GetMapping("/users-anon/internal/findById") @ApiOperation(value = "通过id查询组织机构列表", notes = "通过id查询组织机构列表", httpMethod = "GET", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) @ApiImplicitParams({ @ApiImplicitParam(name = "id", value = "总部Id", required = true, dataType = "Long", paramType = "form"), @ApiImplicitParam(name = "orgId", value = "组织机构id", required = false, dataType = "boolean", paramType = "form") }) public SysOrganization findById(Long id , Long orgId){ return orgService.findById(id, orgId); } @GetMapping("/users-anon/internal/findCheckSchool") @ApiOperation(value = "查找学区内的所有学校", notes = "查找学区内的所有学校仅展示id,name,address", httpMethod = "GET", produces = MediaType.APPLICATION_JSON_UTF8_VALUE) @ApiImplicitParams({ @ApiImplicitParam(name = "currentId", value = "学区id", required = true, dataType = "Long", paramType = "query"), @ApiImplicitParam(name = "searchName", value = "学校名字", required = true, dataType = "String", paramType = "query") }) Map findCheckSchool(@RequestParam Map params){ return orgService.findCheckSchool(params); } }