Browse Source

Merge branch 'develop' of http://52.130.252.100:10000/TEAMMODEL/TEAMModelOS into develop

CrazyIter_Bin 2 năm trước cách đây
mục cha
commit
b96c1ea5fa
1 tập tin đã thay đổi với 13 bổ sung0 xóa
  1. 13 0
      TEAMModelOS/Controllers/OpenApi/Init/BizUsersController.cs

+ 13 - 0
TEAMModelOS/Controllers/OpenApi/Init/BizUsersController.cs

@@ -265,5 +265,18 @@ namespace TEAMModelOS.Controllers
             }
         }
 
+        /// <summary>
+        /// 获取企业开放接口列表
+        /// </summary>
+        /// <param name="jsonElement"></param>
+        /// <returns></returns>
+        [ProducesDefaultResponseType]
+        [HttpPost("get-openapi")]
+        public async Task<IActionResult> GetOpenApi(JsonElement jsonElement)
+        {
+            var table = _azureStorage.GetCloudTableClient().GetTableReference("IESOpenApi");
+            List<OpenApi> apis = await table.FindListByDict<OpenApi>(new Dictionary<string, object>() { { "PartitionKey", "IES5-API-business" } });
+            return Ok(new { state = RespondCode.Ok, apis });
+        }
     }
 }