简要描述:

  • 应用配置凭证

接口版本:

版本号 制定人 制定日期 修订日期
v3 陈碧贵 2023-05-22 xxxx-xx-xx

请求URL:

http://localhost:5900/bo/api/v3/bo-app-config-setting-keys/list/res/view?_nodejs=common-data&ignore=true&_mapperType=glogal&appId=4164538169947066368&_rmtKvT=origial


&_rmtKv=settingType
  • {mkey} 对应mapper文件
  • {resField} 对应 {mkey}里面 responseField键

请求方式:

  • GET
  • POST

请求头:

参数名 是否必须 类型 说明
XownerId string 项目唯一ID,对应bo_project {ownerId}
XsysId string 所属系统 对应 bo_system 表
XuserFromFirstShareId string 一级分享用户ID, bo_user user_id
XuserFromSecondShareId string 二级分享用户ID, bo_user user_id
XverifyApi string 加密规则encryptByDES(`${newGuid()}
XfilterAreaCode string 行政区编码, 对应 bo_sys_area area_code
Content-Type: string application/json; charset=utf-8 请求类型

请求参数:

  • 当事件发生时,调用http/https接口,传递参数信息,响应请求结果。
  • _rmtKvT和_rmtKv选择其中之一
参数名 是否必须 类型 说明
appId string 应用ID
pageSize string 应用ID
_rmtKv string kv转原始值的列 settingType
_rmtKvT string kv转原始值的列 _rmtKvT=origial 关联配置文件rmtKvMappers
_rmtSecond string 二级转换类型 L2O
_nodejs string common-data 对应/Config/AppNodeJs/Plugins/fn- common-data.js, 通过nodejs插件,对响应结果进行二次处理 common-data 普通数据(小写驼峰)common-data-under 普通数据下划线

返回示例:

正确时返回(无_rmtKv):

{
    "data": [
        {
            "meta": {},
            "appId": "4164538169947066368",
            "appName": "禅客",
            "appSecret": "iii",
            "appToken": "5",
            "settingId": "SK4164538169947066368TEmail",
            "diffTableNo": 0,
            "settingType": {
                "name": "微信扫码(公众号)",
                "value": "WeChat"
            }
        },
        {
            "meta": {},
            "appId": "4164538169947066368",
            "appName": "禅客",
            "appSecret": "5",
            "appToken": "3",
            "settingId": "SK4164538169947066368TMail163",
            "diffTableNo": 0,
            "settingType": {
                "name": "163邮箱",
                "value": "Mail163"
            }
        },
        {
            "meta": {},
            "appId": "4164538169947066368",
            "appName": "禅客",
            "appSecret": "iii",
            "appToken": "5",
            "settingId": "SK4164538169947066368TTelephone",
            "diffTableNo": 0,
            "settingType": {
                "name": "手机号",
                "value": "Telephone"
            }
        }
    ],
    "currentDay": "2023-05-22",
    "cacheDateTimestamp": 0,
    "code": "0",
    "retCode": "0",
    "success": true
}

正确时返回(对应_rmtKv):

{
    "data": [
        {
            "meta": {},
            "appId": "4164538169947066368",
            "appName": "禅客",
            "appSecret": "iii",
            "appToken": "5",
            "settingId": "SK4164538169947066368TEmail",
            "diffTableNo": 0,
            "settingType": "WeChat"
        },
        {
            "meta": {},
            "appId": "4164538169947066368",
            "appName": "禅客",
            "appSecret": "5",
            "appToken": "3",
            "settingId": "SK4164538169947066368TMail163",
            "diffTableNo": 0,
            "settingType": "Mail163"
        },
        {
            "meta": {},
            "appId": "4164538169947066368",
            "appName": "禅客",
            "appSecret": "iii",
            "appToken": "5",
            "settingId": "SK4164538169947066368TTelephone",
            "diffTableNo": 0,
            "settingType": "Telephone"
        }
    ],
    "currentDay": "2023-05-22",
    "cacheDateTimestamp": 0,
    "code": "0",
    "retCode": "0",
    "success": true
}

错误时返回:

{
    "code": 0,
    "message": ""
    "error":{
      errorCode:null,
      errorText:null
    }
    "success": false,
}

返回参数说明:

参数名 类型 说明
success bool true 表示数据请求成功(跟code=0一致),调用者优先使用
code int true 表示数据请求成功(跟code=0一致),调用者优先使用
data object 响应的结果数据 name:显示的名称 value:交互的数据库中值 id:通常和value一致,树形结构需要 parentId: 父节点,树形结构需要level:等级,树形结构需要
cacheType string redis/sqlite/local 数据来源缓存 的类型(便于开发调试和性能优化)
cacheDate date 最后数据获取时间

SettingType枚举

{
      "value": "UserName",
      "name": "账号密码",
      "type": "authtype"
    },
    {
      "value": "Telephone",
      "name": "手机号",
      "type": "authtype"
    },
    {
      "value": "MailQq",
      "name": "QQ邮箱",
      "type": "authtype"
    },
    {
      "value": "Mail163",
      "name": "163邮箱",
      "type": "authtype"
    },
    {
      "value": "Email",
      "name": "其它Email",
      "type": "authtype"
    },
    {
      "value": "WeChat",
      "name": "微信扫码(公众号)",
      "type": "authtype"
    },
    {
      "value": "WeChatEnt",
      "name": "企业微信",
      "type": "authtype"
    },
    {
      "value": "WeChatMerc",
      "name": "微信商户",
      "type": "authtype"
    },
    {
      "value": "WeChatMini",
      "name": "微信小程序",
      "type": "authtype"
    },
    {
      "value": "WeChatUnion ",
      "name": "微信开放平台",
      "type": "authtype"
    },
    {
      "value": "Qq",
      "name": "Qq账号",
      "type": "authtype"
    },
    {
      "value": "Alipay",
      "name": "支付宝扫码",
      "type": "authtype"
    },
    {
      "value": "DingTalk",
      "name": "钉钉",
      "type": "authtype"
    },
    {
      "value": "Gitee",
      "name": "Gitee",
      "type": "authtype"
    },
    {
      "value": "GitHub",
      "name": "GitHub",
      "type": "authtype"
    },
    {
      "value": "Douyin",
      "name": "Douyin",
      "type": "authtype"
    },
    {
      "value": "Auth",
      "name": "其它第三方",
      "type": "authtype"
    }
文档更新时间: 2023-05-22 20:19   作者:admin