|
@@ -18,22 +18,22 @@ import org.springframework.web.bind.annotation.*;
|
|
|
*/
|
|
|
@RestController
|
|
|
@Api(tags = "合作单位服务")
|
|
|
-@RequestMapping(value = "agency")
|
|
|
-public class AgencyController extends BaseController {
|
|
|
+@RequestMapping(value = "organization")
|
|
|
+public class OrganizationController extends BaseController {
|
|
|
|
|
|
@Autowired
|
|
|
private OrganizationService organizationService;
|
|
|
|
|
|
@ApiOperation(value = "合作单位列表")
|
|
|
@GetMapping(value = "list")
|
|
|
- @PreAuthorize("@pcs.hasPermissions('agency/list')")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('organization/list')")
|
|
|
public HttpResponseResult<PageInfo<Organization>> configList(AgencyQueryInfo queryInfo) {
|
|
|
return succeed(organizationService.queryPage(queryInfo));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "修改合作单位")
|
|
|
@PostMapping(value = "update")
|
|
|
- @PreAuthorize("@pcs.hasPermissions('agency/update')")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('organization/update')")
|
|
|
public HttpResponseResult updateAgency(@RequestBody Organization organization) {
|
|
|
organizationService.updateOrganization(organization);
|
|
|
return succeed();
|
|
@@ -41,7 +41,7 @@ public class AgencyController extends BaseController {
|
|
|
|
|
|
@ApiOperation(value = "新增合作单位")
|
|
|
@PostMapping(value = "add")
|
|
|
- @PreAuthorize("@pcs.hasPermissions('agency/add')")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('organization/add')")
|
|
|
public HttpResponseResult addConfig(@RequestBody Organization organization) {
|
|
|
organizationService.add(organization);
|
|
|
return succeed();
|
|
@@ -49,14 +49,14 @@ public class AgencyController extends BaseController {
|
|
|
|
|
|
@ApiOperation(value = "查询合作单位")
|
|
|
@GetMapping(value = "get")
|
|
|
- @PreAuthorize("@pcs.hasPermissions('agency/get')")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('organization/get')")
|
|
|
public HttpResponseResult<Organization> getConfig(Integer id) {
|
|
|
return succeed(organizationService.get(id));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "删除合作单位")
|
|
|
@PostMapping(value = "del")
|
|
|
- @PreAuthorize("@pcs.hasPermissions('agency/del')")
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('organization/del')")
|
|
|
public HttpResponseResult del(Integer id) {
|
|
|
organizationService.delete(id);
|
|
|
return succeed();
|