diff --git a/db/update15.5.sql b/db/update15.5.sql index 13f0c51c76..5bdb2fd69c 100644 --- a/db/update15.5.sql +++ b/db/update15.5.sql @@ -1,4 +1,5 @@ ALTER TABLE `zt_doclib` ADD COLUMN `desc` text NULL AFTER `collector`; +ALTER TABLE `zt_doc` ADD COLUMN `baseUrl` varchar(255) NOT NULL DEFAULT '' AFTER `title`; -- DROP TABLE IF EXISTS `zt_api_lib_release`; CREATE TABLE `zt_api_lib_release` diff --git a/module/api/lang/zh-cn.php b/module/api/lang/zh-cn.php index 77793088c8..7dd1d941f6 100644 --- a/module/api/lang/zh-cn.php +++ b/module/api/lang/zh-cn.php @@ -48,6 +48,7 @@ $lang->api->confirmDeleteLib = "您确定删除该接口库吗?"; /* fields of form */ $lang->api->name = '接口库名称'; +$lang->api->baseUrl = '请求基路径'; $lang->api->desc = '描述'; $lang->api->control = '访问控制'; $lang->api->noLib = '暂时没有接口库。'; diff --git a/module/api/view/create.html.php b/module/api/view/create.html.php index 837b128b81..40570089b2 100644 --- a/module/api/view/create.html.php +++ b/module/api/view/create.html.php @@ -96,33 +96,33 @@ api->params; ?>
-
+
api->field; ?>
-
+
api->required; ?> api->requiredOptions, 0, "class='form-control'"); ?>
-
+
api->scope; ?> api->paramsScopeOptions, '', "class='form-control' onchange='loadParamsTypeOptions(this);'"); ?>
-
+
api->paramsType; ?> api->paramsTypeOptions, '', "class='form-control' onchange='changeType(this);'"); ?>
-