~/Config/Mapper/{ownerId}/mapper_{mkey}_sql.json
{
"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/{ownerId}-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": {},
"method": "get",
//url地址
"url": "http://wthrcdn.etouch.cn/weather_mini?citykey=101010100"
},
{
"field": "json",
"dataFromType": "Json",
//远程api
"multi": true,
//数据信息
"data": [
{
"name": "json"
}
]
}
]
}
}
}
文档更新时间: 2021-08-22 08:00 作者:admin