|
@@ -1,5 +1,7 @@
|
|
package com.qmth.themis.exam.api;
|
|
package com.qmth.themis.exam.api;
|
|
|
|
|
|
|
|
+import com.qmth.themis.business.annotation.ApiJsonObject;
|
|
|
|
+import com.qmth.themis.business.annotation.ApiJsonProperty;
|
|
import com.qmth.themis.business.bean.exam.EnvBean;
|
|
import com.qmth.themis.business.bean.exam.EnvBean;
|
|
import com.qmth.themis.business.bean.exam.OrgInfoBean;
|
|
import com.qmth.themis.business.bean.exam.OrgInfoBean;
|
|
import com.qmth.themis.business.bean.exam.VersionBean;
|
|
import com.qmth.themis.business.bean.exam.VersionBean;
|
|
@@ -32,7 +34,9 @@ public class SysController {
|
|
@ApiOperation(value = "获取环境接口")
|
|
@ApiOperation(value = "获取环境接口")
|
|
@RequestMapping(value = "/env", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/env", method = RequestMethod.POST)
|
|
@ApiResponses({@ApiResponse(code = 200, message = "环境信息", response = Result.class)})
|
|
@ApiResponses({@ApiResponse(code = 200, message = "环境信息", response = Result.class)})
|
|
- public Result env(@ApiParam(value = "机构id", required = false) @RequestBody Map<String, Object> mapParameter) {
|
|
|
|
|
|
+ public Result env(@ApiJsonObject(name = "oeEnv", value = {
|
|
|
|
+ @ApiJsonProperty(key = "orgId", type = "long", example = "1", description = "机构id"),
|
|
|
|
+ }) @ApiParam(value = "机构id", required = false) @RequestBody Map<String, Object> mapParameter) {
|
|
EnvBean env = new EnvBean();
|
|
EnvBean env = new EnvBean();
|
|
if (Objects.nonNull(mapParameter.get("orgId"))) {
|
|
if (Objects.nonNull(mapParameter.get("orgId"))) {
|
|
Long orgId = Long.parseLong(String.valueOf(mapParameter.get("orgId")));
|
|
Long orgId = Long.parseLong(String.valueOf(mapParameter.get("orgId")));
|