文 档 中 心 / Document Center
搜索 管理中心
壹川接口文档V3
添加新网点
更新时间:2018-04-13 11:32:44   更新人员:叶洋   文档状态:完成 #88    测试接口
摘要
添加新的网点数据
  1. 接口基本信息
    接口名称:新增一个网点
    请求方法:POST
    接口地址:netpoint
    登录验证:是
  2. 请求参数
    参数名 参数 数据类型 是否必须 示例值 说明
    com_id 所属机构id string 16位的字符串对应机构id
    join_type 加入类型 int 1 网点类型 1自营网点 2加盟网点
    unloading 卸货点 int 卸货点 1是 0否。不传时默认为1
    runin_time 运营开始时间 string
    runout_time 运营截止时间 string
    country_id 所在国家id int
    province_id 所在省份id int 所在省份id
    city_id 所在城市id int
    district_id 所在区县id int
    village_id 所在社区id int
    lng 地址位置经度 float
    lat 地址位置纬度 float
    joining_fee 加盟费 float 加盟费 仅加盟类型的机构有效
    name 网点名称 string
    english_name 英文名 string
    address 详细地址 string
    contacts 联系人 string
    mobile 手机 phone
    tel 电话 tel
    fax 传真 tel
    cover 形象图 string
    picture_list 实景照片 string
    img_business_license 营业执照 string
    img_transport_license 运输许可证 string
    img_corporation_idcard 法人身份证 string
    description 公司描述 string
    remark 备注 string
  3. 响应数据参数
    参数名 参数 数据类型 示例值 说明
    net_id 网点id string
    code 网点编码 string
    com_id 所属机构id string
    join_type 加盟类型 string 1是自营 2是加盟
    status 状态 string 1为启用 0为禁用
    unloading 卸货点 string 是否为卸货点,1是,0否
    create_time 创建时间 string
    create_by{} 创建人信息 object
    ├ uid ├ 创建人uid string
    ├ code ├ 创建人编码 string
    ├ username ├ 创建人用户名 string
    ├ nickname ├ 创建人昵称 string
    └ realname └ 创建人真实姓名 string
    update_time 更新时间 string
    update_by{} 更新人信息 object
    ├ uid ├ 更新人uid string
    ├ code ├ 更新人代码 string
    ├ username ├ 更新人用户名 string
    ├ nickname ├ 更新人昵称 string
    └ realname └ 更新人真实姓名 string
    runin_time 加入时间 string
    runout_time 到期时间 string
    country_id 所属国id string
    province_id 所属省id int
    city_id 所属城市id string
    district_id 地区id int
    street_id 街道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
    email 邮箱 string
    cover 封面图 string 该值为图片id
    picture_list 图片列表 string
    img_business_license 营业执照 string
    img_transport_license 运输许可证 string
    img_corporation_idcard 法人身份证 string
    description 描述 string
    remark 备注 string
    cominfo{} 所属机构信息 object
    ├ com_id ├ 所属机构id string
    ├ code ├ 所属机构编码 string
    ├ name ├ 所属机构名称 string
    ├ address ├ 所属机构地址 string
    ├ contacts ├ 所属机构联系人 string
    └ mobile └ 所属机构联系手机 string
  4. 请求示例
    请求例子:
     
    apirq('netpoint', {
        method: "post",
        data: {
            "com_id": "dc332415f1c87f9b",
            "join_type": 1,
            "province_id": 1,
            "city_id": 2,
            "district_id": 3,
            "lng": 30.123,
            "lat": 40.123,
            "name": "测试一个网点",
            "english_name": "testanet",
            "address": "四川一个城",
            "contacts": "刘长明",
            "mobile": "13212345678"
        }
    }) 
    
    返回数据结果:
     
    {
        "code": 0,
        "msg": "数据添加成功!",
        "time": "1523590070",
        "data": {
            "net_id": "1e23852bfc7ec92a",
            "code": "N69046",
            "com_id": "dc332415f1c87f9b",
            "join_type": 1,
            "status": 1,
            "unloading": 1,
            "create_time": "2018-04-13 11:27:50",
            "create_by": {
                "uid": "0000000000000001",
                "code": "U1000000",
                "username": "administrator",
                "nickname": "超级管理员",
                "realname": "超级管理员"
            },
            "update_time": "2018-04-13 11:27:50",
            "update_by": {
                "uid": "0000000000000001",
                "code": "U1000000",
                "username": "administrator",
                "nickname": "超级管理员",
                "realname": "超级管理员"
            },
            "delete_time": null,
            "runin_time": "2018-04-13 11:27:50",
            "runout_time": "2019-04-13 11:27:50",
            "country_id": 1,
            "province_id": 1,
            "city_id": 2,
            "district_id": 3,
            "street_id": 0,
            "lng": "30.123000",
            "lat": "40.123000",
            "joining_fee": "0.00",
            "name": "测试一个网点",
            "initials": "csygwd",
            "english_name": "testanet",
            "address": "四川一个城",
            "contacts": "刘长明",
            "mobile": "13212345678",
            "tel": "",
            "fax": "",
            "email": "",
            "cover": "",
            "picture_list": "",
            "img_business_license": "",
            "img_transport_license": "",
            "img_corporation_idcard": "",
            "description": "",
            "remark": "",
            "cominfo": {
                "com_id": "dc332415f1c87f9b",
                "code": "C38086",
                "name": "杨天天",
                "address": "北京市海淀区学院路37号北京航空航天大学",
                "contacts": "1321456789",
                "mobile": "要小李"
            }
        }
    } 
    
本书创建于 2018-03-30 12:03:13 ?如有疑问,请联系技术人员