文 档 中 心 / Document Center
搜索 管理中心
壹川接口文档V3
根据条件获取单个配置详情
更新时间:2018-04-11 13:35:02   更新人员:叶洋   文档状态:完成 #33    测试接口
摘要
通过配置名获取配置信息。
  1. 接口基本信息
    接口名称:根据条件取单个配置信息
    请求方法:GET
    接口地址:configs/readby
    登录验证:是
  2. 请求参数
    参数名 参数 数据类型 是否必须 示例值 说明
    name 配置名称 string 获取配置对应的配置名称
  3. 响应数据参数
    参数名 参数 数据类型 示例值 说明
    id 配置id int 系统配置id
    name 配置名 string 系统配置名,英文
    type 配置类型 int 系统配置的类型编号
    title 配置标题 string 配置标题
    group 配置分组 int 配置分组编号
    extra 扩展数据 string
    remark 备注 string 配置说明
    status 状态 string 配置状态0禁用1正常
    value 配置值 string
    sort 排序 int 参数排序
  4. 请求示例
    请求例子:
     
    apirq('configs/readby', {
        data: {
            "name": "WEB_SITE_TITLE"
        }
    }) 
    
    返回数据结果:
     
    {
        "code": 0,
        "msg": "ok",
        "time": "1523424867",
        "data": {
            "id": 101,
            "name": "WEB_SITE_TITLE",
            "type": 1,
            "title": "系统标题",
            "group": 1,
            "extra": "壹川供应链",
            "remark": "平台标题前台显示标题",
            "create_time": "2013-09-11 19:29:36",
            "update_time": "2017-06-27 17:01:51",
            "status": 1,
            "value": "Beta(内测版) v2.0.436",
            "sort": 0,
            "value_array": ""
        }
    } 
    
本书创建于 2018-03-30 12:03:13 ?如有疑问,请联系技术人员