# lewo **Repository Path**: westnice/lewo ## Basic Information - **Project Name**: lewo - **Description**: 乐窝 - **Primary Language**: PHP - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-07-05 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### 乐窝分期接口 [乐窝分期接口](#乐窝分期接口) [1.分期](#分期) [添加中介房源分期申请](#添加中介房源分期申请) [添加个人房源分期申请](#添加个人房源分期申请) [确认协议](#确认协议) [个人房源上传合同](#个人房源上传合同) [发送短信验证码](#发送短信验证码) [获取热门城市](#获取热门城市) [获取城市信息](#获取城市信息) [获取省市信息](#获取省市信息) [查询学校](#查询学校) [获取中介公司信息](#获取中介公司信息) [获取工作人员信息](#获取工作人员信息) [获取合同列表](#获取合同列表) [获取合同详情列表](#获取合同详情列表) [获取合同详情表的详细信息](#获取合同详情表的详细信息) [获取还款信息](#获取还款信息) [合同续签](#合同续签) [2.用户](#用户) [微信登录](#微信登陆) [微信登录授权](#微信登录授权) [完善教育工作信息](#完善教育工作信息) [用户发送验证码](#用户发送验证码) [获取用户详细信息](#获取用户详细信息) [完善用户身份证信息](#完善用户身份证信息) [用户人像采集](#用户人像采集) [完善用户联系人信息](#完善用户联系人信息) [获取芝麻分](#获取芝麻分) [获取芝麻协议](#获取芝麻协议) [验证修改手机号码](#验证修改手机号码) [验证用户是否能修改手机号](#验证用户是否能修改手机号) [修改用户手机号码](#修改用户手机号码) [用户登陆app](#用户登录app) [获取用户信息完善情况](#获取用户信息完善情况) [3.其他](#其他) [获取常见问题列表](#获取常见问题列表) [添加反馈信息](#添加反馈信息) [获取消息列表](#获取消息列表) [获取消息详情](#获取消息详情) [更改消息已读](#更改消息已读) [删除消息](#删除消息) [获取新信息数量](#获取新信息数量) [获取微信signature](#获取微信signature) [获取借款合同](#获取借款合同) [中介端](#中介端) [1.房源](#房源) [获取房源列表](#获取房源列表) [获取房源详细信息](#获取房源详细信息) [添加中介房源审核信息](#添加中介房源审核信息) [添加租房合同信息](#添加租房合同信息) [添加合同快递信息](#添加合同快递信息) [2.用户](#用户) [获取租房用户列表](#获取租房用户列表) [获取租房用户详情](#获取租房用户详情) [获取中介的详细信息](#获取中介的详细信息) [获取用户的中介费情况](#获取用户的中介费情况) [中介注册](#中介注册) [验证码登陆](#验证码登陆) [账号密码登陆](#账号密码登陆) [修改密码](#修改密码) [获取中介的归属信息](#获取中介的归属信息) ### 分期 ### 添加中介房源分期申请 简要描述: - 添加申请 请求url: ``` /api/loan/add ``` 请求方式: post 参数 uid 用户id 必填 int token 用户令牌 必填 string real_name 姓名 必填 string card_no 身份证号码 必填 string mobile 手机号 必填 string code 手机验证码 必填 int salary 月租金 必填 decimal province 省 必填 string city 市 必填 string area 区 必填 string address 详细地址 必填 string rent_date 交租日期 必填 date rent_type 交租方式 必填 int (0 押一付三 1 押一付六) company_id 中介公司id 必填 int personnel_id 工作人员id 必填 int 成功实例 ``` { "code": 200, "desc": 1//用户id } ``` 失败 ``` { "code":500, "desc":'添加失败' } ``` ### 添加个人房源分期申请 简要描述: - 添加申请 请求url: ``` /api/loan/add_per ``` 请求方式: post 参数 uid 用户id 必填 int token 用户令牌 必填 string real_name 姓名 必填 string card_no 身份证号码 必填 string mobile 手机号 必填 string code 手机验证码 必填 int salary 月租金 必填 decimal province 省 必填 string city 市 必填 string area 区 必填 string address 详细地址 必填 string rent_date 交租日期 必填 date rent_type 交租方式 必填 int (0 押一付三 1 押一付六) fd_name 房东身份证号码 必填 string fd_no 房东身份证号码 必填 string fd_sign 房东身份证签发机关 必填 string fd_start 房东身份证签发机关 必填 string fd_end 房东身份证签发机关 必填 string fd_mobile 房东电话 必填 string fd_pic1 身份证正面 base64 fd_pic2 身份证背面 base64 fd_house 房产证 base64 成功实例 ``` { "code": 200, "desc": 1//用户id } ``` 失败 ``` { "code":500, "desc":'添加失败' } ``` ### 确认协议 请求url: ``` /api/loan/confirmation_protocol ``` 请求方式: post 参数 rent_type 租房类型 salary 租金 date 还款日 true_name 真实姓名 card_no 身份证 mobile 手机号 成功实例 ``` { "code":200, "desc":{ "three":"0.02", "six":"0.018", "no":"210245154545", "data":"合同" } } ``` ### 个人房源上传合同 简要描述: - 添加申请 请求url: ``` /api/loan/add_housecontract ``` 请求方式: post 参数 uid 用户id 必填 int token 用户令牌 必填 string cid 合同id 必填 int pic1 合同附件 base64 pic2 签合同合照 base64 成功实例 ``` { "code": 200, "desc": 1//用户id } ``` 失败 ``` { "code":500, "desc":'添加失败' } ``` ### 发送短信验证码 简要描述:发送验证码 请求ulr ``` /api/loan/send_code ``` 请求方式:post 参数: uid 用户id 必填 int token 用户令牌 必填 string mobile 手机号 必填 string 实例: ``` { "code":200, "desc":"ok" } ``` ### 获取城市信息 请求url ``` /api/loan/get_city ``` 请求方式:post/get 实例: ``` { "code":200, "desc":{ "A":[ { "id":"513200", "name":"阿坝藏族羌族自治州", "fid":"510000", "shortname":"阿坝", "leveltype":"2", "zipcode":"0837", "citycode":"624000", "mergername":"中国,四川省,阿坝藏族羌族自治州", "lng":"102.221374", "lat":"31.899792", "pinyin":"Aba", "ishot":"0" }, { "id":"652900", "name":"阿克苏地区", "fid":"650000", "shortname":"阿克苏", "leveltype":"2", "zipcode":"0997", "citycode":"843000", "mergername":"中国,新疆维吾尔自治区,阿克苏地区", "lng":"80.265068", "lat":"41.170712", "pinyin":"Aksu", "ishot":"0" } ] } } ``` ### 获取省市信息 请求url ``` /api/loan/get_area ``` 请求方式:get 参数: fid 上级id int 不填则表示获取所有省 实例: ``` { "code":200, "desc":[ { "id":"110000", "name":"北京", "fid":"100000", "shortname":"北京", "leveltype":"1", "zipcode":null, "citycode":null, "mergername":"中国,北京", "lng":"116.405285", "lat":"39.904989", "pinyin":"Beijing", "ishot":"0" }, { "id":"120000", "name":"天津", "fid":"100000", "shortname":"天津", "leveltype":"1", "zipcode":null, "citycode":null, "mergername":"中国,天津", "lng":"117.190182", "lat":"39.125596", "pinyin":"Tianjin", "ishot":"0" } ] } ``` ### 获取热门城市 请求url ``` /api/loan/get_hot ``` 请求方式:post/get 实例: ``` { "code":200, "desc":[ { "id":"110100", "name":"北京市", "fid":"110000", "shortname":"北京", "leveltype":"2", "zipcode":"010", "citycode":"100000", "mergername":"中国,北京,北京市", "lng":"116.405285", "lat":"39.904989", "pinyin":"Beijing", "ishot":"1" }, { "id":"120100", "name":"天津市", "fid":"120000", "shortname":"天津", "leveltype":"2", "zipcode":"022", "citycode":"300000", "mergername":"中国,天津,天津市", "lng":"117.190182", "lat":"39.125596", "pinyin":"Tianjin", "ishot":"1" }, { "id":"130100", "name":"石家庄市", "fid":"130000", "shortname":"石家庄", "leveltype":"2", "zipcode":"0311", "citycode":"050011", "mergername":"中国,河北省,石家庄市", "lng":"114.502461", "lat":"38.045474", "pinyin":"Shijiazhuang", "ishot":"1" } ] } ``` ### 查询学校 请求url ``` /api/loan/get_school ``` 请求方式:post 参数: keyword 关键字 string 必填 实例: ``` { "code":200, "desc":[ { "school_id":"920", "school_name":"浙江大学", "school_pro_id":"11", "school_schooltype_id":"1" }, { "school_id":"923", "school_name":"浙江工业大学", "school_pro_id":"11", "school_schooltype_id":"1" } ] } ``` ### 获取中介公司信息 请求url ``` /api/loan/get_store ``` 请求方式:post 参数: long 经度 必填 string lat 纬度 必填 string 请求实例 ``` { "code":200, "desc":[ { "id":"1", "name":"我爱我家 曹晖路店", "address":"西湖区文一路236", "long":null, "lat":null } ] } ``` ### 获取工作人员信息 请求url ``` /api/loan/get_personnel ``` 请求方式:post 参数: store_id 门店id 必填 int 请求实例 ``` { "code":200, "desc":[ { "id":"1", "company_id":"1", "name":"水水", "code":"WAWJ" } ] } ``` ### 获取合同列表 请求url ``` /api/loan/get_contract ``` 请求方式:post 参数: uid 用户id 必填 int token 用户令牌 必填 string page 页码 int 默认1 pagesize 每页显示的数量 int 默认10 实例 ``` { "code":200, "desc":[ { "id":"1", "name":null, "total":null, "date":"1484352000", "stage":null, "addtime":null, "true_name":"李狗蛋", "mobile":"13545784578", "province":"北京", "city":"北京", "area":"东城", "address":"在那个地方", "rent_type":"0", "company_id":"1", "personnel_id":"1", "state":"0", "user_id":"1", "salary":"2000.00", "company":"我爱我家 曹晖路店", "personnel":"水水" } ] } ``` ### 获取合同详情列表 请求url ``` /api/loan/get_contract_info ``` 请求方式:post 参数: uid 用户id 必填 int token 用户令牌 必填 string cid 合同id 必填 int 实例 ``` { "code":200, "desc":[ { "id":"1", "contract_id":"1", "total":"2023.00", "price":"2000.00", "interest":"73.00", "over_day":"0", "over_price":"0.00", "rent_time":"0", "state":"0", "stage":"0", "agency_fee":"0.00" } ] } ``` ### 获取合同详情表的详细信息 请求url ``` /api/loan/get_contract_info_in ``` 请求方式:post 参数: uid 用户id 必填 int token 用户令牌 必填 string cfid 合同详情表id 必填 int 实例 ``` { "code":200, "desc":[ { "id":"1", "contract_id":"1", "total":"2023.00", "price":"2000.00", "interest":"73.00", "over_day":"0", "over_price":"0.00", "rent_time":"0", "state":"0", "stage":"0", "agency_fee":"0.00", "reback":"0.00", "noback":"2300.00" } ] } ``` ### 获取还款信息 请求url ``` /api/loan/get_reback ``` 请求方式:post 参数: uid 用户id 必填 int token 用户令牌 必填 string 实例 ``` { "code":200, "desc":{ "id":"1", "name":null, "total":null, "date":"1500001849", "stage":null, "addtime":null, "true_name":"李狗蛋", "mobile":"13545784578", "province":"1", "city":"34", "area":"1", "address":"在那个地方", "rent_type":"0", "store_id":"1", "personnel_id":"1", "state":"1", "user_id":"1", "salary":"2000.00", "starttime":"0", "endtime":null, "type":"0", "fd_name":null, "fd_no":null, "fd_sign":null, "fd_start":null, "fd_end":null, "fd_pic1":null, "fd_pic2":null, "fd_house":null, "fd_mobile":null, "agency_fee":null, "card_no":null, "info":{ "id":"1", "contract_id":"1", "total":"2023.00", "price":"2000.00", "interest":"73.00", "over_day":"0", "over_price":"0.00", "rent_time":"1500001849", "state":"0", "stage":"0" }, "reback":"0.00", "noback":"2360.23" } } ``` ### 合同续签 请求url ``` /api/loan/cont_renew ``` 请求方式:post 参数: uid 用户id 必填 int token 用户令牌 必填 string cid 合同id 必填 string 实例 ``` { "code":200, "desc":"ok" } ``` ### 用户 ### 微信登录 说明:web 请求url ``` /api/user/login ``` 请求方式 :post/get 实例: ``` { "code":200, "desc":"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx6b9ff0034657a99d&redirect_uri=http%3A%2F%2Flewo.youledi.cn%2Fapi%2Fuser%2Flogin_code&response_type=code&scope=snsapi_userinfo&state=state#wechat_redirect" } ``` ### 微信登录授权 请求url ``` /api/user/login_code ``` 请求方式:get 参数: code 微信授权返回的code 必填 string 实例 ``` { "code":"401", "desc":"fail" } ``` ### 用户发送验证码 简要描述:发送验证码 请求ulr ``` /api/user/send_code ``` 请求方式:post 参数: mobile 手机号 必填 string 实例: ``` { "code":200, "desc":"ok" } ``` ### 完善教育工作信息 请求url ``` /api/user/edit_identity ``` 请求方式:post 参数: uid 用户id 必填 int token 用户标识 必填 string marital_status 婚姻状况 必填 int (0未婚1已婚) household_type 户口类型 必填 int (0城镇1农村) education_level 教育程度 必填 int (0高中1大专2本科3硕士) school_name 学校名称 必填 string company_name 公司名称 必填 string company_mobile 公司电话 必填 string position 职位 必填 string 实例: ``` { "code":"200", "desc":"ok" } ``` ### 获取用户详细信息 请求url ``` /api/user/get_user_info ``` 请求方式 post 参数: uid 用户id 必填 int token 用户标识 必填 string 实例: ``` { "code":200, "desc":[ { "id":"1", "truename":"", "mobile":"", "province":"", "city":"", "area":"", "address":"", "marital_status":"0", "household_type":"0", "education_level":"2", "school_name":null, "company_name":"", "position":null, "card_no":null, "card_no_pic1":null, "card_no_pic2":null, "card_no_sign":null, "card_no_date":null, "contacts1":null, "contacts_name1":null, "contacts_mobile1":null, "contacts2":null, "contacts_name2":null, "contacts_mobile2":null, "sex":"0", "realname":null, "state":"0", "nickname":null, "pic":null, "unionid":null, "token":"1" } ] } ``` ### 完善用户身份证信息 请求URL ``` /api/user/edit_ident ``` 请求方式:post 参数: uid 用户id 必填 int token 用户令牌 必填 string realname 姓名 必填 string card_no 身份证 必填 string card_no_sign 签发机关 必填 string card_no_start 有效期 必填 int card_no_end 有效期 必填 int 身份证正面 pic1 base64 身份证背面 pic2 base64 手持身份证 pic3 base64 可不传 身份证正面 is_pic1 string 图片路径 身份证背面 is_pic2 string 图片路径 手持身份证 is_pic3 string 图片路径 (如果base64图和图片路径都上传默认接收图片路径) 实例: ``` { "code":"200", "desc":"ok" } ``` ### 用户人像采集 请求URL ``` /api/user/edit_tx ``` 请求方式:post 参数: uid 用户id 必填 int token 用户令牌 必填 string img 用户人像 必填 string 实例: ``` { "code":"200", "desc":"ok" } ``` ### 完善用户联系人信息 请求URL ``` /api/user/edit_contacts ``` 请求方式: post 参数: uid 用户id 必填 int token 用户token 必填 string contacts1 第一位联系人关系 必填 string contacts_name1 第一位联系人姓名 必填 string contacts_mobile1 第一位联系人电话 必填 string contacts2 第二位联系人关系 必填 string contacts_name2 第二位联系人姓名 必填 string contacts_mobile2 第二位联系人电话 必填 string 实例: ``` { "code":"200", "desc":"ok" } ``` ### 获取芝麻分 请求URL ``` /api/user/check_zhima ``` 请求方式: post 参数: uid 用户id 必填 int token 用户token 必填 string mobile 手机号码 必填 string code 验证码 必填 string 实例: ``` { "code":"200", "desc":"ok" } ``` ### 获取芝麻协议 请求URL ``` /api/user/agreement ``` 请求方式: post 参数: 实例: ``` { "code":"200", "desc":"协议内容" } ``` ### 验证修改手机号码 说明: 原手机的验证码 请求url ``` /api/user/check_code ``` 请求方式 : post 参数: uid 用户id 必填 int token 用户token 必填 string code 验证码 必填 string 实例: ``` { "code":"200", "desc":"ok" } ``` ### 验证用户是否能修改手机号 说明: 请求url ``` /api/user/check_mobile ``` 请求方式 : post 参数: uid 用户id 必填 int token 用户token 必填 string 实例: ``` { "code":"200", "desc":"ok" } ``` ### 修改用户手机号码 请求URL: ``` /api/user/edit_mobile ``` 请求方式:post 参数: uid 用户id 必填 int token 用户token 必填 string mobile 手机号 必填 string code 验证码 必填 string ocode 原手机的验证码 必填 string 实例: ``` { "code":"200", "desc":"ok" } ``` ### 用户登陆app 请求URL: ``` /api/user/app_login ``` 请求方式:post 参数: mobile 手机号 必填 string code 验证码 必填 string 实例: ``` { "code":200, "desc":{ "uid":1, "token":1 } } ``` ### 获取用户信息完善情况 请求URL: ``` /api/user/data_integrity ``` 请求方式:post 参数: uid 用户id 必填int token 必填 string 实例: ``` { "code":200, "desc":2//用户已经完成的模块数量 } ``` ### 其他 ### 获取常见问题列表 请求URL: ``` /api/faq/get_faq ``` 请求方式:post 参数: uid 用户id 必填 int token 用户标识 必填 string type 问题分类 默认0(0用户端1中介端) 实例: ``` { "code":"200", "desc":[ { "id":"1", "title":"大幅度", "content":"对方答复", "type":"0" } ] } ``` ### 添加反馈信息 请求URL: ``` /api/faq/add_feedback ``` 请求方式:post 参数: uid 用户id 必填 int token 用户标识 必填 string feedback反馈内容 必填 string 实例: ``` { "code":"200", "desc":"ok" } ``` ### 获取消息列表 请求URL: ``` /api/msg/get_msg ``` 请求方式:post 参数: uid 用户id 必填 int token 用户标识 必填 string type 分类 默认0(0用户端1中介端) page 页码 默认1 int pagesize 每页数量 默认10 int 实例: ``` { "code":200, "desc":[ { "id":"2", "title":"对方的萨芬", "add_time":"0", "is_read":"0", "is_del":"0", "user_id":"1" }, { "id":"1", "title":"dfsa", "add_time":"0", "is_read":"0", "is_del":"0", "user_id":"1" } ] } ``` ### 获取消息详情 请求URL: ``` /api/msg/get_msg_info ``` 请求方式:post 参数: uid 用户id 必填 int token 用户标识 必填 string msg_id 消息id 必填 int 实例: ``` { "code":200, "desc":{ "id":"1", "title":"dfsa", "content":" 发", "add_time":"0", "is_read":"0", "is_del":"0", "user_id":"1", "type":"0" } } ``` ### 更改消息已读 请求URL: ``` /api/msg/edit_read ``` 请求方式:post 参数: uid 用户id 必填 int token 用户标识 必填 string msg_id 消息id 必填 int 实例: ``` { "code":"200", "desc":"ok" } ``` ### 删除消息 请求URL: ``` /api/msg/del_msg ``` 请求方式:post 参数: uid 用户id 必填 int token 用户标识 必填 string msg_id 消息id 必填 int 实例: ``` { "code":"200", "desc":"ok" } ``` ### 获取新信息数量 请求URL: ``` /api/msg/get_msg_nums ``` 请求方式:post 参数: uid 用户id 必填 int token 用户标识 必填 string 实例: ``` { "code":"200", "desc":"9" } ``` ### 获取微信signature 请求URL: ``` /api/faq/get_wxtok ``` 请求方式:post 参数: url 当前页面url string 必填 noncestr 随机数字符串 string 必填 timestamp 时间戳 int 必填 实例: ``` { "code":200, "msg":"51303b49c712e3f65f9151e5a5c6e3c54e2e2e83" } ``` ### 获取借款合同 请求URL: ``` /api/faq/get_contract ``` 请求方式:post 参数: uid 用户id 必填 int token 用户标识 必填 string id 合同id int 必填 实例: ``` { "code":200, "desc":"合同" } ``` ### 中介端 ### 1.房源 ### 获取房源列表 请求URL: ``` /imd/api/housing/get_housing ``` 请求方式:post 参数: pid 用户id 必填 int token 用户标识 必填 string page perpage 实例: ``` { "code":200, "msg":[ { "id":"1", "name":null, "total":null, "date":"1500001849", "stage":null, "addtime":null, "true_name":"李狗蛋", "mobile":"13545784578", "province":"1", "city":"34", "area":"1", "address":"在那个地方", "rent_type":"0", "store_id":"1", "personnel_id":"1", "state":"0", "user_id":"1", "salary":"2000.00", "starttime":"0", "endtime":null, "type":"0", "fd_name":null, "fd_no":null, "fd_sign":null, "fd_start":null, "fd_end":null, "fd_pic1":null, "fd_pic2":null, "fd_house":null, "fd_mobile":null, "agency_fee":null } ] } ``` ### 获取房源详细信息 请求URL: ``` /imd/api/housing/get_housing_info ``` 请求方式:post 参数: pid 用户id 必填 int token 用户标识 必填 string cid 合同id 必填 int 实例: ``` { "code":200, "msg":{ "id":"1", "name":null, "total":null, "date":"1500001849", "stage":null, "addtime":null, "true_name":"李狗蛋", "mobile":"13545784578", "province":"1", "city":"34", "area":"1", "address":"在那个地方", "rent_type":"0", "store_id":"1", "personnel_id":"1", "state":"0", "user_id":"1", "salary":"2000.00", "starttime":"0", "endtime":null, "type":"0", "fd_name":null, "fd_no":null, "fd_sign":null, "fd_start":null, "fd_end":null, "fd_pic1":null, "fd_pic2":null, "fd_house":null, "fd_mobile":null, "agency_fee":null, "hid":"1", "hfile":null,//合同扫描件 "hpic":null, "seal":null } } ``` ### 添加中介房源审核信息 请求URL: ``` /imd/api/housing/add_housing ``` 请求方式:post 参数: pid 用户id 必填 int token 用户标识 必填 string cid 合同id 必填 int fd_name 房东姓名 fd_mobile 房东电话 fd_no 房东身份证 fd_sign 签发机关 fd_start 有效期 fd_end 有效期 实例: ``` { "code":200, "msg":"ok" } ``` ### 添加租房合同信息 请求URL: ``` /imd/api/housing/add_contract ``` 请求方式:post 参数: pid 用户id 必填 int token 用户标识 必填 string cid 合同id 必填 int 文件: file 合同扫描件 pic 签合同照片 seal 借款合同照 实例: ``` { "code":200, "msg":"ok" } ``` ### 添加合同快递信息 请求URL: ``` /imd/api/housing/add_express ``` 请求方式:post 参数: pid 用户id 必填 int token 用户标识 必填 string cid 合同id 必填 int order 快递公司 numbers 快递单号 实例: ``` { "code":200, "msg":"ok" } ``` ### 获取租房用户列表 请求URL: ``` /imd/api/housing/get_person ``` 请求方式:post 参数: pid 用户id 必填 int token 用户标识 必填 string page perpage 实例: ``` { "code":200, "msg":[ { "id":"1", "name":null, "total":null, "date":"1500001849", "stage":null, "addtime":"0", "true_name":"李狗蛋", "mobile":"123", "province":"", "city":"", "area":"", "address":"", "rent_type":"0", "store_id":"1", "personnel_id":"1", "state":"1", "user_id":"1", "salary":"2000.00", "starttime":"0", "endtime":null, "type":"0", "fd_name":null, "fd_no":null, "fd_sign":null, "fd_start":null, "fd_end":null, "fd_pic1":null, "fd_pic2":null, "fd_house":null, "fd_mobile":null, "agency_fee":null, "truename":"", "marital_status":"0", "household_type":"0", "education_level":"2", "school_name":null, "company_name":"", "position":null, "card_no":"511621188956562141", "card_no_pic1":null, "card_no_pic2":null, "card_no_sign":null, "card_no_start":null, "contacts1":null, "contacts_name1":null, "contacts_mobile1":null, "contacts2":null, "contacts_name2":"fdg", "contacts_mobile2":null, "sex":"0", "realname":"狗子", "nickname":null, "pic":null, "openid":null, "token":"1", "card_no_end":null, "statetime":"1499931572", "statepeo":null, "sttime":null, "content":"", "is_overdue":"0", "zhima_time":null, "company_mobile":null } ] } ``` ### 获取租房用户详情 请求URL: ``` /imd/api/housing/get_person_info ``` 请求方式:post 参数: pid 用户id 必填 int token 用户标识 必填 string cid 合同id 必填 int 实例: ``` { "code":200, "msg":{ "id":"1", "name":null, "total":null, "date":"1500001849", "stage":null, "addtime":"0", "true_name":"李狗蛋", "mobile":"123", "province":"", "city":"", "area":"", "address":"", "rent_type":"0", "store_id":"1", "personnel_id":"1", "state":"1", "user_id":"1", "salary":"2000.00", "starttime":"0", "endtime":null, "type":"0", "fd_name":null, "fd_no":null, "fd_sign":null, "fd_start":null, "fd_end":null, "fd_pic1":null, "fd_pic2":null, "fd_house":null, "fd_mobile":null, "agency_fee":null, "truename":"", "marital_status":"0", "household_type":"0", "education_level":"2", "school_name":null, "company_name":"", "position":null, "card_no":"511621188956562141", "card_no_pic1":null, "card_no_pic2":null, "card_no_sign":null, "card_no_start":null, "contacts1":null, "contacts_name1":null, "contacts_mobile1":null, "contacts2":null, "contacts_name2":"fdg", "contacts_mobile2":null, "sex":"0", "realname":"狗子", "nickname":null, "pic":null, "openid":null, "token":"1", "card_no_end":null, "statetime":"1499931572", "statepeo":null, "sttime":null, "content":"", "is_overdue":"0", "zhima_time":null, "company_mobile":null } } ``` ### 获取中介的详细信息 请求URL: ``` /imd/api/housing/get_personnel ``` 请求方式:post 参数: pid 用户id 必填 int token 用户标识 必填 string 实例: ``` { "code":200, "msg":{ "id":"1", "store_id":"1", "name":"水水", "code":"WAWJ", "mobile":null, "yqm":null, "password":null, "token":"1", "total":"0.00" } } ``` ### 获取中介的详细信息 请求URL: ``` /imd/api/housing/get_person_price ``` 请求方式:post 参数: pid 用户id 必填 int token 用户标识 必填 string 实例: ``` { "code":200, "msg":{ "user":{ "id":"1", "store_id":"1", "name":"水水", "code":"WAWJ", "mobile":null, "yqm":null, "password":null, "token":"1", "total":"0.00", "one":0, "two":0, "all":0 }, "contract":[ ] } } ``` ### 中介注册 请求URL: ``` /imd/api/housing/reg ``` 请求方式:post 参数: mobile 手机号 code 验证码 password 密码 yqm 邀请码 实例: ``` { "code":200, "msg":{ "id":"1", "store_id":"1", "name":"水水", "code":"WAWJ", "mobile":null, "yqm":null, "password":null, "token":"1", "total":"0.00" } } ``` ### 验证码登陆 请求URL: ``` /imd/api/housing/one_login ``` 请求方式:post 参数: mobile 手机号 code 验证码 实例: ``` { "code":200, "msg":{ "id":"1", "store_id":"1", "name":"水水", "code":"WAWJ", "mobile":null, "yqm":null, "password":null, "token":"1", "total":"0.00" } } ``` ### 账号密码登陆 请求URL: ``` /imd/api/housing/password_login ``` 请求方式:post 参数: mobile 手机号 password 密码 实例: ``` { "code":200, "msg":{ "id":"1", "store_id":"1", "name":"水水", "code":"WAWJ", "mobile":null, "yqm":null, "password":null, "token":"1", "total":"0.00" } } ``` ### 修改密码 请求URL: ``` /imd/api/housing/edit_password ``` 请求方式:post 参数: mobile 手机号 password 密码 code 验证码 实例: ``` { "code":200, "msg":{ "id":"1", "store_id":"1", "name":"水水", "code":"WAWJ", "mobile":null, "yqm":null, "password":null, "token":"1", "total":"0.00" } } ``` ### 获取中介的归属信息 请求URL: ``` /imd/api/setting/get_person ``` 请求方式:post 参数: pid token 实例: ``` { "code":200, "msg":{ "id":"1", "name":"我爱我家 曹晖路店", "address":"西湖区文一路236", "lng":"120.131479", "lat":"30.279312", "type":"0", "code":null, "charge":null, "charge_mobile":null, "state":"0", "company_id":"0", "company":[ ] } } ```