|
@ -1,7 +1,6 @@ |
|
|
package com.epmet.controller; |
|
|
package com.epmet.controller; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.epmet.commons.extappauth.annotation.ExternalAppRequestAuth; |
|
|
|
|
|
import com.epmet.commons.tools.annotation.LoginUser; |
|
|
import com.epmet.commons.tools.annotation.LoginUser; |
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
import com.epmet.commons.tools.security.dto.TokenDto; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
|
import com.epmet.commons.tools.utils.Result; |
|
@ -38,7 +37,7 @@ public class OpenUpController { |
|
|
* @author zxc |
|
|
* @author zxc |
|
|
* @date 2020/8/13 9:42 上午 |
|
|
* @date 2020/8/13 9:42 上午 |
|
|
*/ |
|
|
*/ |
|
|
@ExternalAppRequestAuth |
|
|
//@ExternalAppRequestAuth
|
|
|
@PostMapping("staffsingrid") |
|
|
@PostMapping("staffsingrid") |
|
|
public Result<List<StaffSinGridResultDTO>> staffSinGrid(@RequestBody StaffSinGridFormDTO formDTO){ |
|
|
public Result<List<StaffSinGridResultDTO>> staffSinGrid(@RequestBody StaffSinGridFormDTO formDTO){ |
|
|
ValidatorUtils.validateEntity(formDTO, StaffSinGridFormDTO.StaffSinGrid.class); |
|
|
ValidatorUtils.validateEntity(formDTO, StaffSinGridFormDTO.StaffSinGrid.class); |
|
@ -51,7 +50,7 @@ public class OpenUpController { |
|
|
* @author zxc |
|
|
* @author zxc |
|
|
* @date 2020/8/13 9:51 上午 |
|
|
* @date 2020/8/13 9:51 上午 |
|
|
*/ |
|
|
*/ |
|
|
@ExternalAppRequestAuth |
|
|
//@ExternalAppRequestAuth
|
|
|
@PostMapping("staffsindept") |
|
|
@PostMapping("staffsindept") |
|
|
public Result<List<StaffSinDeptResultDTO>> staffSinDept(@RequestBody StaffSinDeptFormDTO formDTO){ |
|
|
public Result<List<StaffSinDeptResultDTO>> staffSinDept(@RequestBody StaffSinDeptFormDTO formDTO){ |
|
|
ValidatorUtils.validateEntity(formDTO, StaffSinDeptFormDTO.StaffSinDept.class); |
|
|
ValidatorUtils.validateEntity(formDTO, StaffSinDeptFormDTO.StaffSinDept.class); |
|
@ -64,7 +63,7 @@ public class OpenUpController { |
|
|
* @author zxc |
|
|
* @author zxc |
|
|
* @date 2020/8/17 9:59 上午 |
|
|
* @date 2020/8/17 9:59 上午 |
|
|
*/ |
|
|
*/ |
|
|
@ExternalAppRequestAuth |
|
|
//@ExternalAppRequestAuth
|
|
|
@PostMapping("staffsinagency") |
|
|
@PostMapping("staffsinagency") |
|
|
public Result<List<StaffSinAgencyResultDTO>> staffSinAgency(@RequestBody StaffSinAgencyFormDTO formDTO){ |
|
|
public Result<List<StaffSinAgencyResultDTO>> staffSinAgency(@RequestBody StaffSinAgencyFormDTO formDTO){ |
|
|
ValidatorUtils.validateEntity(formDTO, StaffSinAgencyFormDTO.StaffSinAgency.class); |
|
|
ValidatorUtils.validateEntity(formDTO, StaffSinAgencyFormDTO.StaffSinAgency.class); |
|
@ -78,7 +77,7 @@ public class OpenUpController { |
|
|
* @author wangc |
|
|
* @author wangc |
|
|
* @date 2020.08.17 10:30 |
|
|
* @date 2020.08.17 10:30 |
|
|
**/ |
|
|
**/ |
|
|
@ExternalAppRequestAuth |
|
|
//@ExternalAppRequestAuth
|
|
|
@PostMapping("staffinfo") |
|
|
@PostMapping("staffinfo") |
|
|
public Result<ExtStaffInfoResultDTO> staffInfo(@LoginUser TokenDto token){ |
|
|
public Result<ExtStaffInfoResultDTO> staffInfo(@LoginUser TokenDto token){ |
|
|
CommonStaffIdFormDTO commonStaffIdFormDTO = new CommonStaffIdFormDTO(); |
|
|
CommonStaffIdFormDTO commonStaffIdFormDTO = new CommonStaffIdFormDTO(); |
|
@ -94,7 +93,7 @@ public class OpenUpController { |
|
|
* @author wangc |
|
|
* @author wangc |
|
|
* @date 2020.08.17 17:30 |
|
|
* @date 2020.08.17 17:30 |
|
|
**/ |
|
|
**/ |
|
|
@ExternalAppRequestAuth |
|
|
//@ExternalAppRequestAuth
|
|
|
@PostMapping("permission") |
|
|
@PostMapping("permission") |
|
|
Result<ExtStaffPermissionResultDTO> staffPermissionExt(@RequestBody CommonStaffIdFormDTO commonStaffIdFormDTO){ |
|
|
Result<ExtStaffPermissionResultDTO> staffPermissionExt(@RequestBody CommonStaffIdFormDTO commonStaffIdFormDTO){ |
|
|
ValidatorUtils.validateEntity(commonStaffIdFormDTO, CommonStaffIdFormDTO.StaffIdGroup.class); |
|
|
ValidatorUtils.validateEntity(commonStaffIdFormDTO, CommonStaffIdFormDTO.StaffIdGroup.class); |
|
|