文 档 中 心 / Document Center
搜索 管理中心
壹川接口文档V3
获取指定机构的详情
更新时间:2018-04-13 10:40:22   更新人员:叶洋   文档状态:完成 #82    测试接口
摘要
获取指定机构的详情
  1. 接口基本信息
    接口名称:获取指定机构信息
    请求方法:GET
    接口地址:company/:com_id
    登录验证:是
  2. 路由参数
    参数名 参数 数据类型 是否必须 示例值 说明
    com_id 机构的ID string 16位字符串的机构ID
  3. 响应数据参数
    参数名 参数 数据类型 示例值 说明
    com_id 机构ID string 8112f1ba162187fe 生成的16位字符串id值
    code 机构编码 string C64022
    merch_credential 加入的依据商户 string 45f9204709bd6edb
    join_type 加入类型 int 1 加入类型1渠道自营 2加盟
    pid 母公司id string 如果所查公司为某公司的子公司,则此项有值,对应公司
    status 状态 int 1 运营状态 1正常 0禁用
    create_time 创建时间 string
    create_by{} 创建者 object
    ├ uid ├ 创建人UID string
    ├ ucode ├ 创建人编码 string
    ├ username ├ 创建人用户名 string
    └ nickname └ 创建人昵称 string
    update_time 修改时间 string
    update_by{} 修改人 object
    ├ uid ├ 修改人uid string
    ├ ucode ├ 修改人编码 string
    ├ username ├ 修改人用户名 string
    └ nickname └ 修改人昵称 string
    runin_time 有效运营开始时间 string
    runout_time 有效运营截止时间 string
    country_id 机构所在地属国 int 国id
    province_id 机构所在地所属行省 int
    city_id 机构所在地所属城市 int
    district_id 机构所在地所属区域 int
    village_id 机构所在地所属社区 int
    lng 位置经度 float
    lat 位置纬度 float
    joining_fee 加盟费 float 如果加入类型是加盟时可设
    name 机构名称 string 壹川供应联盟
    initials 名称的拼音首字母 string
    english_name 英文名 string
    address 详细地址 string
    contacts 联系人姓名 string
    mobile 联系人手机 string
    tel 公司电话 string
    fax 传真号码 string
    cover 形象图片 string
    picture_list 机构展示图片列表 string
    img_business_license 营业执照 string
    img_transport_license 运输许可证 string
    img_corporation_idcard 法人身份证 string
    description 机构描述 string
    remark 备注 string
  4. 请求示例
    请求例子:
     
    apirq('company/:com_id', {
        data: {
            "com_id": "17c948c2d66a9ba5"
        },
        urlparams: [
            "com_id"
        ]
    }) 
    
    返回数据结果:
     
    {
        "code": 0,
        "msg": "ok",
        "time": "1523529140",
        "data": {
            "com_id": "17c948c2d66a9ba5",
            "code": "C46221",
            "merch_credential": "c17ec996d3ffc85f",
            "join_type": 1,
            "pid": "",
            "status": 1,
            "create_time": "2018-04-12 17:19:10",
            "create_by": {
                "uid": "0000000000000001",
                "code": "U1000000",
                "username": "administrator",
                "nickname": "超级管理员",
                "realname": "超级管理员"
            },
            "update_time": "2018-04-12 18:29:02",
            "update_by": {
                "uid": "0000000000000001",
                "code": "U1000000",
                "username": "administrator",
                "nickname": "超级管理员",
                "realname": "超级管理员"
            },
            "delete_time": null,
            "runin_time": "2018-04-12 18:29:02",
            "runout_time": "2019-04-12 18:29:02",
            "country_id": 1,
            "province_id": 0,
            "city_id": 0,
            "district_id": 0,
            "street_id": 0,
            "lng": "0.000000",
            "lat": "0.000000",
            "joining_fee": "0.00",
            "name": "测试一个机33构",
            "initials": "csygj",
            "english_name": "",
            "address": "",
            "contacts": "小3李",
            "mobile": "13212345678",
            "tel": "",
            "fax": "",
            "email": "",
            "cover": "",
            "picture_list": "",
            "img_business_license": "",
            "img_transport_license": "",
            "img_corporation_idcard": "",
            "description": "",
            "remark": ""
        }
    } 
    
本书创建于 2018-03-30 12:03:13 ?如有疑问,请联系技术人员