...
新增api 用来对接平台密码策略
RemoteDesignResource
@Controller @RequestMapping(value = "/remote/design") @FunctionSupport(function = VT4FR.RemoteDesign) public class RemoteDesignResource { @RequestMapping(value = "/verify", method = RequestMethod.POST) @ResponseBody public Response saferGetRemoteToken(HttpServletRequest req, HttpServletResponse res) throws Exception { try { return Response.ok(RemoteDesignService.getInstance().saferGetRemoteToken(req)); } catch (IntelligenceException | IntelligenceRuntimeException e) { return Response.error(e.errorCode(), e.getMessage()); } } } |
...
3、功能设计方案
细分功能一:
所有异常跟随平台定义的异常
...
a. 保留原来获取token的接口 (/remote/design/toekn),保证了老服务器 token),保证了老服务器 + 新设计器的远程设计兼容可用
b.在新服务器版本中添加一个新的接口,通过判断该接口是否可用构建相应请求的路径,保证新服务器 + 老设计器的远程设计兼容可用
...