瀏覽代碼

Merge branch 'dev' of http://git.qmth.com.cn/themis/backend-service into dev
com

wangliang 4 年之前
父節點
當前提交
a5ab3aefdb
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      themis-exam/src/main/java/com/qmth/themis/exam/api/SysController.java

+ 5 - 1
themis-exam/src/main/java/com/qmth/themis/exam/api/SysController.java

@@ -1,5 +1,7 @@
 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.OrgInfoBean;
 import com.qmth.themis.business.bean.exam.VersionBean;
@@ -32,7 +34,9 @@ public class SysController {
     @ApiOperation(value = "获取环境接口")
     @RequestMapping(value = "/env", method = RequestMethod.POST)
     @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();
         if (Objects.nonNull(mapParameter.get("orgId"))) {
             Long orgId = Long.parseLong(String.valueOf(mapParameter.get("orgId")));