文件名从 assess-admin/src/main/java/com/gkhy/assess/admin/controller/SysAgencyController.java 修改 |
| | |
| | | package com.gkhy.assess.admin.controller; |
| | | package com.gkhy.assess.admin.controller.web.front; |
| | | |
| | | import com.gkhy.assess.common.api.CommonResult; |
| | | import com.gkhy.assess.system.domain.SysAgency; |
| | |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | @Api(tags = "机构前端控制器") |
| | | @Api(tags = "前台首页-机构前端控制器") |
| | | @RestController |
| | | @RequestMapping("/system/agency") |
| | | public class SysAgencyController { |
| | | @RequestMapping("/agency") |
| | | public class AgencyController { |
| | | @Autowired |
| | | private SysAgencyService agencyService; |
| | | |
| | |
| | | }) |
| | | @GetMapping("/agencyList") |
| | | public CommonResult agencyList(SysAgency agency){ |
| | | agency.setPublication(0); |
| | | agency.setDelFlag(0); |
| | | return CommonResult.success(agencyService.agencyList(agency)); |
| | | } |
| | | |
| | |
| | | public CommonResult getAgencyById(@RequestParam(required = true) Long agencyId){ |
| | | return CommonResult.success(agencyService.getAgencyById(agencyId)); |
| | | } |
| | | |
| | | @ApiOperation(value = "校验机构名称") |
| | | @PostMapping("/checkAgencyNameUnique") |
| | | public boolean checkAgencyNameUnique(SysAgency agency) |
| | | { |
| | | return agencyService.checkAgencyNameUnique(agency); |
| | | } |
| | | |
| | | } |