|
|
@ -17,6 +17,8 @@ |
|
|
|
|
|
|
|
package com.epmet.controller; |
|
|
|
|
|
|
|
import com.epmet.commons.tools.annotation.LoginUser; |
|
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
|
import com.epmet.dto.CustomerAgencyDTO; |
|
|
|
import com.epmet.dto.form.*; |
|
|
@ -52,7 +54,7 @@ public class AgencyController { |
|
|
|
* @Description 添加组织 |
|
|
|
*/ |
|
|
|
@PostMapping("addagency") |
|
|
|
public Result<AddAgencyResultDTO> addAgency(@RequestBody AddAgencyFormDTO formDTO) { |
|
|
|
public Result<AddAgencyResultDTO> addAgency(@LoginUser TokenDto tokenDTO, @RequestBody AddAgencyFormDTO formDTO) { |
|
|
|
return agencyService.addAgency(formDTO); |
|
|
|
} |
|
|
|
|
|
|
@ -63,7 +65,7 @@ public class AgencyController { |
|
|
|
* @Description 组织名称编辑 |
|
|
|
*/ |
|
|
|
@PostMapping("editagency") |
|
|
|
public Result editAgency(@RequestBody EditAgencyFormDTO formDTO) { |
|
|
|
public Result editAgency(@LoginUser TokenDto tokenDTO, @RequestBody EditAgencyFormDTO formDTO) { |
|
|
|
return agencyService.editAgency(formDTO); |
|
|
|
} |
|
|
|
|
|
|
@ -74,7 +76,7 @@ public class AgencyController { |
|
|
|
* @Description 删除组织机关 |
|
|
|
*/ |
|
|
|
@PostMapping("removeagency") |
|
|
|
public Result removeAgency(@RequestBody RemoveAgencyFormDTO formDTO) { |
|
|
|
public Result removeAgency(@LoginUser TokenDto tokenDTO, @RequestBody RemoveAgencyFormDTO formDTO) { |
|
|
|
return agencyService.removeAgency(formDTO); |
|
|
|
} |
|
|
|
|
|
|
@ -85,7 +87,7 @@ public class AgencyController { |
|
|
|
* @Description 组织首页-获取组织机构信息 |
|
|
|
*/ |
|
|
|
@PostMapping("agencydetail") |
|
|
|
public Result<AgencysResultDTO> agencyDetail(@RequestBody AgencydetailFormDTO formDTO) { |
|
|
|
public Result<AgencysResultDTO> agencyDetail(@LoginUser TokenDto tokenDTO, @RequestBody AgencydetailFormDTO formDTO) { |
|
|
|
return agencyService.agencyDetail(formDTO); |
|
|
|
} |
|
|
|
|
|
|
@ -96,7 +98,7 @@ public class AgencyController { |
|
|
|
* @Description 组织首页-下级机关列表 |
|
|
|
*/ |
|
|
|
@PostMapping("subagencylist") |
|
|
|
public Result<SubAgencyResultDTO> subAgencyList(@RequestBody SubAgencyFormDTO formDTO) { |
|
|
|
public Result<SubAgencyResultDTO> subAgencyList(@LoginUser TokenDto tokenDTO, @RequestBody SubAgencyFormDTO formDTO) { |
|
|
|
return agencyService.subAgencyList(formDTO); |
|
|
|
} |
|
|
|
|
|
|
@ -107,7 +109,7 @@ public class AgencyController { |
|
|
|
* @Description 获取组织列表 |
|
|
|
*/ |
|
|
|
@PostMapping("agencylist") |
|
|
|
public Result<List<AgencyListResultDTO>> agencyList(@RequestBody AgencyListFormDTO formDTO) { |
|
|
|
public Result<List<AgencyListResultDTO>> agencyList(@LoginUser TokenDto tokenDTO, @RequestBody AgencyListFormDTO formDTO) { |
|
|
|
return agencyService.agencyList(formDTO); |
|
|
|
} |
|
|
|
|
|
|
|