66 lines
1.8 KiB
TypeScript
66 lines
1.8 KiB
TypeScript
import {
|
||
HTTPS_ERROR_PARAMS_COLUMNS,
|
||
// HTTPS_PARAMS_COLUMNS,
|
||
HTTPS_URL_COLUMNS,
|
||
HTTPS_PUBLIC_PARAMS_COLUMNS
|
||
//HTTPS_RETURN_PARAMS_COLUMNS
|
||
} from "../../constant/zh_list/index";
|
||
|
||
export const ZH_DATA = [
|
||
{
|
||
title: "请求地址",
|
||
columns: HTTPS_URL_COLUMNS, //列表配置项
|
||
data: [
|
||
{
|
||
environment: "测试环境",
|
||
https: "http://dev.ow.f2b211.com/admapi"
|
||
},
|
||
{
|
||
environment: "正式环境",
|
||
https: "http://ow.f2b211.com/admapi"
|
||
}
|
||
]
|
||
},
|
||
{
|
||
title: "公共请求参数",
|
||
columns: HTTPS_PUBLIC_PARAMS_COLUMNS, //列表配置项
|
||
data: [
|
||
{
|
||
parameterName: "client_id",
|
||
parameterType: "string",
|
||
isItMandatory: "必需",
|
||
parameterDescription: ""
|
||
},
|
||
{
|
||
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: ""
|
||
}
|
||
]
|
||
}
|
||
];
|