{field}里面表示可以有外部传递的参数值
{
"base": {
"connName": "ConnBs",
"isRearEnd": true,
"isFrontEnd": true
},
"responseField": {
//我的商户订单
"test": {
////控制第三方权限配置
//"presetSql": [
// //{
// // "connName": "ConnIdc",
// // "value": "",
// // "name": ""
// //}
//],
////请求的结果处理
//"njcResult": {
// "args": [],
// "moduleName": "~/Config/AppNodeJs/{ownerId}-plugins/{mkey}/{resField}",
// "functionName": null
//},
////请求的参数设置
//"njcArgs": {
// "args": [],
// "moduleName": "~/Config/AppNodeJs/idc-plugins/{mkey}/{resField}-query",
// "functionName": null
//},
"guidMethod": "None",
//来源组合接口
"dataFromType": "Merge",
"original": "",
"auth": true,
//开启只执行responseField里面配置
"onlySqlList": true,
"source": [
{
"field": "user",
"connName": "ConnBo",
"dataFromType": "Database",
//多条数据
"multi": true,
"sql": [
{
"value": "select * from bo_system",
"sortId": 1
}
]
},
{
"field": "config",
"dataFromType": "ConfigFile",
//多条数据
"multi": true,
//静态文件路径
"path": "~/App_Data/Mock/basis/mock_menu-nav_page_res_content.json"
},
{
"serverCertificateCustomValidationCallback": false,
//HttpClient客户端设置
"clientHandler": {
//解压类型 None ALL Brotli Deflate GZip
"automaticDecompression": "GZip",
//最大请求参数
"maxRequestContentBufferSize": 10500
//public long MaxRequestContentBufferSize { get; set; }
//public string Proxy { get; set; }
//public bool UseProxy { get; set; }
},
//请求参数格式
"contentType": "application/json",
//请求编码
"encoding": "utf8",
"field": "api",
"dataFromType": "Api",
//注册编码 UTF-8 GB2312 ISO-8859-1
//"registerEncoding": true,
"responseEncoding": "UTF-8",
//远程api
"multi": true,
"header": {},
"query": {},
"body": {
"multi": true,
"params2": "{params2}"
},
"method": "get",
//url地址
"url": "http://wthrcdn.etouch.cn/weather_mini?citykey=101010100¶ms2={params2}"
},
{
"field": "json",
"dataFromType": "Json",
//远程api
"multi": true,
//数据信息
"data": [
{
"name": "json"
}
]
}
]
}
}
}
列配置案例
"is_enabled": {
"title": "启用",
"alias": "is_enabled",
"filter": {
"method": "eq"
},
"editPropertie": {
"showMethodOut": "kv",
"showMethod": "text",
"type": null,
"format": null,
"defaultValue": 1
},
"pagePropertie": {
"showMethodOut": "kv",
"showMethod": "text",
"type": null,
"format": null,
"defaultValue": null
},
"dimJoin": {
"fromDimField": "sysEnum",
"allFilter": "parent_id==7"
}
},
文档更新时间: 2021-08-01 08:00 作者:admin