|
@ -1,6 +1,7 @@
|
|
package com.yihu.hos.standard.controller;
|
|
package com.yihu.hos.standard.controller;
|
|
|
|
|
|
import com.yihu.hos.standard.service.adapter.AdapterDictClient;
|
|
import com.yihu.hos.standard.service.adapter.AdapterDictClient;
|
|
|
|
import com.yihu.hos.web.framework.model.ActionResult;
|
|
import com.yihu.hos.web.framework.model.DetailModelResult;
|
|
import com.yihu.hos.web.framework.model.DetailModelResult;
|
|
import com.yihu.hos.web.framework.model.Result;
|
|
import com.yihu.hos.web.framework.model.Result;
|
|
import com.yihu.hos.web.framework.util.controller.BaseController;
|
|
import com.yihu.hos.web.framework.util.controller.BaseController;
|
|
@ -47,7 +48,7 @@ public class AdapterDictController extends BaseController {
|
|
|
|
|
|
@RequestMapping(value = "/getForDictId")
|
|
@RequestMapping(value = "/getForDictId")
|
|
@ApiOperation(value = "获取字典", response = Result.class, produces = "application/json", notes = "获取字典")
|
|
@ApiOperation(value = "获取字典", response = Result.class, produces = "application/json", notes = "获取字典")
|
|
public Result get(
|
|
|
|
|
|
public ActionResult get(
|
|
@ApiParam(name = "adapterVersion", value = "标准版本号")
|
|
@ApiParam(name = "adapterVersion", value = "标准版本号")
|
|
@RequestParam(value = "adapterVersion") String adapterVersion,
|
|
@RequestParam(value = "adapterVersion") String adapterVersion,
|
|
@ApiParam(name = "dictId", value = "字典ID")
|
|
@ApiParam(name = "dictId", value = "字典ID")
|
|
@ -67,7 +68,7 @@ public class AdapterDictController extends BaseController {
|
|
|
|
|
|
@RequestMapping(value = "/updateDict")
|
|
@RequestMapping(value = "/updateDict")
|
|
@ApiOperation(value = "修改字典", response = Result.class, produces = "application/json", notes = "修改字典")
|
|
@ApiOperation(value = "修改字典", response = Result.class, produces = "application/json", notes = "修改字典")
|
|
public Result updateDict(
|
|
|
|
|
|
public ActionResult updateDict(
|
|
@ApiParam(name = "adapterVersion", value = "标准版本号")
|
|
@ApiParam(name = "adapterVersion", value = "标准版本号")
|
|
@RequestParam(value = "adapterVersion") String adapterVersion,
|
|
@RequestParam(value = "adapterVersion") String adapterVersion,
|
|
@ApiParam(name = "dict", value = "字典")
|
|
@ApiParam(name = "dict", value = "字典")
|
|
@ -77,7 +78,7 @@ public class AdapterDictController extends BaseController {
|
|
|
|
|
|
@RequestMapping(value = "/addDict")
|
|
@RequestMapping(value = "/addDict")
|
|
@ApiOperation(value = "保存字典", response = Result.class, produces = "application/json", notes = "保存字典")
|
|
@ApiOperation(value = "保存字典", response = Result.class, produces = "application/json", notes = "保存字典")
|
|
public Result addDict(
|
|
|
|
|
|
public ActionResult addDict(
|
|
@ApiParam(name = "adapterVersion", value = "标准版本号")
|
|
@ApiParam(name = "adapterVersion", value = "标准版本号")
|
|
@RequestParam(value = "adapterVersion") String adapterVersion,
|
|
@RequestParam(value = "adapterVersion") String adapterVersion,
|
|
@ApiParam(name = "dict", value = "字典")
|
|
@ApiParam(name = "dict", value = "字典")
|
|
@ -88,7 +89,7 @@ public class AdapterDictController extends BaseController {
|
|
@RequestMapping(value = "/isStrategyDic", method = RequestMethod.POST , produces = "application/json")
|
|
@RequestMapping(value = "/isStrategyDic", method = RequestMethod.POST , produces = "application/json")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@ApiOperation(value = "是否智能匹配", response = Object.class, produces = "application/json", notes = "是否智能匹配")
|
|
@ApiOperation(value = "是否智能匹配", response = Object.class, produces = "application/json", notes = "是否智能匹配")
|
|
public Result isStrategy(
|
|
|
|
|
|
public ActionResult isStrategy(
|
|
@ApiParam(value = "匹配version", required = true) @RequestParam("version") String version
|
|
@ApiParam(value = "匹配version", required = true) @RequestParam("version") String version
|
|
) throws Exception {
|
|
) throws Exception {
|
|
return adapterDictClient.isStrategy(version);
|
|
return adapterDictClient.isStrategy(version);
|
|
@ -104,7 +105,7 @@ public class AdapterDictController extends BaseController {
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@RequestMapping(value = "/strategyDic", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/strategyDic", method = RequestMethod.POST)
|
|
@ApiOperation(value = "智能匹配", response = Object.class, produces = "application/json", notes = "智能匹配")
|
|
@ApiOperation(value = "智能匹配", response = Object.class, produces = "application/json", notes = "智能匹配")
|
|
public Result strategyDic(
|
|
|
|
|
|
public ActionResult strategyDic(
|
|
@ApiParam(value = "匹配version", required = true) @RequestParam("version") String version,
|
|
@ApiParam(value = "匹配version", required = true) @RequestParam("version") String version,
|
|
@ApiParam(value = "平台标准version", required = true) @RequestParam("std_version") String std_version,
|
|
@ApiParam(value = "平台标准version", required = true) @RequestParam("std_version") String std_version,
|
|
@ApiParam(value = "适配方案版本号", required = true) @RequestParam("adapter_std_version") String adapter_std_version
|
|
@ApiParam(value = "适配方案版本号", required = true) @RequestParam("adapter_std_version") String adapter_std_version
|
|
@ -115,7 +116,7 @@ public class AdapterDictController extends BaseController {
|
|
@RequestMapping(value = "/getStrategyDicSize", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/getStrategyDicSize", method = RequestMethod.POST)
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@ApiOperation(value = "智能匹配进行", response = Object.class, produces = "application/json", notes = "智能匹配进行")
|
|
@ApiOperation(value = "智能匹配进行", response = Object.class, produces = "application/json", notes = "智能匹配进行")
|
|
public Result getStrategyDicSize(
|
|
|
|
|
|
public ActionResult getStrategyDicSize(
|
|
@ApiParam(value = "匹配version", required = true) @RequestParam("version") String version
|
|
@ApiParam(value = "匹配version", required = true) @RequestParam("version") String version
|
|
) throws Exception {
|
|
) throws Exception {
|
|
return adapterDictClient.getStrategyDicSize(version);
|
|
return adapterDictClient.getStrategyDicSize(version);
|
|
@ -124,7 +125,7 @@ public class AdapterDictController extends BaseController {
|
|
@RequestMapping(value = "/endStrategyDic", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/endStrategyDic", method = RequestMethod.POST)
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@ApiOperation(value = "智能匹配結束", response = Object.class, produces = "application/json", notes = "智能匹配結束")
|
|
@ApiOperation(value = "智能匹配結束", response = Object.class, produces = "application/json", notes = "智能匹配結束")
|
|
public Result endStrategyDic(
|
|
|
|
|
|
public ActionResult endStrategyDic(
|
|
@ApiParam(value = "匹配version", required = true) @RequestParam("version") String version
|
|
@ApiParam(value = "匹配version", required = true) @RequestParam("version") String version
|
|
) throws Exception {
|
|
) throws Exception {
|
|
return adapterDictClient.endStrategyDic(version);
|
|
return adapterDictClient.endStrategyDic(version);
|