From 10e1443e78c8e6aa74fca428be329d66d4379ee3 Mon Sep 17 00:00:00 2001 From: yangchunlong <292345300@qq.com> Date: Thu, 22 May 2025 13:44:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=9A=80=20=E5=9F=BA=E7=A1=80API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/foundation/data/en_data/index.ts | 88 +++++++++---------- src/views/foundation/data/zh_data/index.ts | 99 ++++++++-------------- src/views/foundation/index.vue | 34 +++++++- src/views/news/data/en_data/index.ts | 26 +++--- src/views/news/data/zh_data/index.ts | 27 ++---- src/views/product/data/en_data/index.ts | 20 ++--- src/views/product/data/zh_data/index.ts | 8 +- 7 files changed, 137 insertions(+), 165 deletions(-) diff --git a/src/views/foundation/data/en_data/index.ts b/src/views/foundation/data/en_data/index.ts index 7203932..ff07f06 100644 --- a/src/views/foundation/data/en_data/index.ts +++ b/src/views/foundation/data/en_data/index.ts @@ -1,5 +1,5 @@ import { - // HTTPS_ERROR_PARAMS_EN_COLUMNS, + HTTPS_ERROR_PARAMS_EN_COLUMNS, // HTTPS_PARAMS_EN_COLUMNS, HTTPS_URL_EN_COLUMNS, HTTPS_PUBLIC_PARAMS_EN_COLUMNS @@ -13,11 +13,11 @@ export const EN_DATA = [ data: [ { environment: "Test environment", - https: "https://demo.orico.com.cn" + https: "http://dev.ow.f2b211.com/admapi" }, { environment: "Formal environment", - https: "https://.orico.com.cn" + https: "http://ow.f2b211.com/admapi" } ] }, @@ -26,55 +26,45 @@ export const EN_DATA = [ columns: HTTPS_PUBLIC_PARAMS_EN_COLUMNS, //列表配置项 data: [ { - environment: "测试环境", - https: "https://demo.orico.com.cn" + parameterName: "client_id", + parameterType: "string", + isItMandatory: "yes", + parameterDescription: "" }, { - environment: "正式环境", - https: "https://.orico.com.cn" + parameterName: "client_secret", + parameterType: "string", + isItMandatory: "yes", + parameterDescription: "" + }, + { + parameterName: "grant_type", + parameterType: "string", + isItMandatory: "yes", + parameterDescription: "Client-side credentials: Get tokens; Refresh_token: Refresh token" + }, + { + parameterName: "refresh_token", + parameterType: "string", + isItMandatory: "no", + parameterDescription: "When refreshing the token, it is necessary" } ] + }, + { + title: "Error declaration", + columns: HTTPS_ERROR_PARAMS_EN_COLUMNS, //列表配置项 + data: [ + { + errorCode: "", + errorMessage: " ", + TroMethods: "" + } + // { + // errorCode: "200", + // errorMessage: "请求成功 ", + // TroMethods: "{"code": 0, "msg": "success", "data": ......}" + // } + ] } - // { - // title: "Request parameter description", - // columns: HTTPS_PARAMS_EN_COLUMNS, //列表配置项 - // data: [ - // { - // environment: "测试环境", - // https: "https://demo.orico.com.cn" - // }, - // { - // environment: "正式环境", - // https: "https://.orico.com.cn" - // } - // ] - // }, - // { - // title: "Return parameter description", - // columns: HTTPS_RETURN_PARAMS_EN_COLUMNS, //列表配置项 - // data: [ - // { - // environment: "测试环境", - // https: "https://demo.orico.com.cn" - // }, - // { - // environment: "正式环境", - // https: "https://.orico.com.cn" - // } - // ] - // }, - // { - // title: "Error declaration", - // columns: HTTPS_ERROR_PARAMS_EN_COLUMNS, //列表配置项 - // data: [ - // { - // environment: "测试环境", - // https: "https://demo.orico.com.cn" - // }, - // { - // environment: "正式环境", - // https: "https://.orico.com.cn" - // } - // ] - // } ]; diff --git a/src/views/foundation/data/zh_data/index.ts b/src/views/foundation/data/zh_data/index.ts index 55ee754..873cc00 100644 --- a/src/views/foundation/data/zh_data/index.ts +++ b/src/views/foundation/data/zh_data/index.ts @@ -1,5 +1,5 @@ import { - // HTTPS_ERROR_PARAMS_COLUMNS, + HTTPS_ERROR_PARAMS_COLUMNS, // HTTPS_PARAMS_COLUMNS, HTTPS_URL_COLUMNS, HTTPS_PUBLIC_PARAMS_COLUMNS @@ -13,11 +13,11 @@ export const ZH_DATA = [ data: [ { environment: "测试环境", - https: "https://demo.orico.com.cn" + https: "http://dev.ow.f2b211.com/admapi" }, { environment: "正式环境", - https: "https://.orico.com.cn" + https: "http://ow.f2b211.com/admapi" } ] }, @@ -26,71 +26,40 @@ export const ZH_DATA = [ columns: HTTPS_PUBLIC_PARAMS_COLUMNS, //列表配置项 data: [ { - parameterName: "111", - parameterType: "233", - isItMandatory: "123232", - parameterDescription: "3232323" + parameterName: "client_id", + parameterType: "string", + isItMandatory: "必需", + parameterDescription: "" }, { - parameterName: "111", - parameterType: "233", - isItMandatory: "123232", - parameterDescription: "3232323" + parameterName: "client_secret", + parameterType: "string", + isItMandatory: "必需", + parameterDescription: "" + }, + { + parameterName: "grant_type", + parameterType: "string", + isItMandatory: "必需", + parameterDescription: "client_credentials:获取token;refresh_token:刷新token" + }, + { + parameterName: "refresh_token", + parameterType: "string", + isItMandatory: "非必需", + parameterDescription: "刷新token时必须" + } + ] + }, + { + title: "错误说明", + columns: HTTPS_ERROR_PARAMS_COLUMNS, //列表配置项 + data: [ + { + errorCode: "", + errorInfo: "", + TroMethods: "" } ] } - // { - // title: "请求参数说明", - // columns: HTTPS_PARAMS_COLUMNS, //列表配置项 - // data: [ - // { - // parameterName: "测试环境", - // parameterType: "https://demo.orico.com.cn", - // isItMandatory: "否", - // exampleValue: "多少", - // parameterDescription: "demo" - // }, - // { - // parameterName: "测试环境", - // parameterType: "https://demo.orico.com.cn", - // isItMandatory: "是", - // exampleValue: "大萨达", - // parameterDescription: "demo1" - // } - // ] - // }, - // { - // title: "返回参数说明", - // columns: HTTPS_RETURN_PARAMS_COLUMNS, //列表配置项 - // data: [ - // { - // parameterInterface: "1", - // parameterType: "2", - // exampleValue: "3", - // describe: "4" - // }, - // { - // parameterInterface: "1", - // parameterType: "2", - // exampleValue: "3", - // describe: "4" - // } - // ] - // }, - // { - // title: "错误说明", - // columns: HTTPS_ERROR_PARAMS_COLUMNS, //列表配置项 - // data: [ - // { - // errorCode: "111", - // errorInfo: "233", - // TroMethods: "123232" - // }, - // { - // errorCode: "111", - // errorInfo: "233", - // TroMethods: "123232" - // } - // ] - // } ]; diff --git a/src/views/foundation/index.vue b/src/views/foundation/index.vue index 98d1e1d..889713c 100644 --- a/src/views/foundation/index.vue +++ b/src/views/foundation/index.vue @@ -1,7 +1,7 @@