|
|
|
@@ -8,6 +8,7 @@ import com.xueyi.modules.auth.api.domain.vo.IntentionReqDto; |
|
|
|
import com.xueyi.modules.auth.api.feign.RemoteSkillAuthService; |
|
|
|
import com.xueyi.system.api.device.domain.vo.DeviceTenantSourceMergeVo; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestMethod; |
|
|
|
import org.springframework.web.bind.annotation.ResponseBody; |
|
|
|
@@ -33,7 +34,7 @@ public class SkillAuthApiController extends BaseApiController { |
|
|
|
**/ |
|
|
|
@RequestMapping(value = "/skillAuth", method = {RequestMethod.POST}) |
|
|
|
@ResponseBody |
|
|
|
public AjaxResult auth(@Valid IntentionReqDto reqDto, HttpServletResponse response) { |
|
|
|
public AjaxResult auth(@Valid @RequestBody IntentionReqDto reqDto, HttpServletResponse response) { |
|
|
|
DeviceTenantSourceMergeVo vo = super.getDeviceTenantSourceMergeVo(reqDto.getDevId()); |
|
|
|
|
|
|
|
return skillAuthService.skillAuth(reqDto, vo.getTenantId(), vo.getSourceSlave(), SecurityConstants.INNER); |
|
|
|
|