Name Last Update
.idea Loading commit data...
API Loading commit data...
Bin Loading commit data...
Config Loading commit data...
DB Loading commit data...
Lib Loading commit data...
Policy Loading commit data...
.gitignore Loading commit data...
README.md Loading commit data...
Version.md Loading commit data...
main.go Loading commit data...

README.md

cfcccc9984be6d121a517c2f802bba7b0e416a66#">乐游图后端接口文档

Specification Value
API Version 1.0.0
BasePath 正式 leyoutu.st-i.com.cn; 测试 leyoutu.sti-uat.com

API List

  1. 查询所有商品
  2. 投诉 - 查询所有投诉
  3. 设备管理 - 获得所有设备的等待时间
  4. 设备管理 - 查询所有游玩项目
  5. 查询所有线路
  6. 操作员管理 - 所有操作员
  7. 查询所有用户行为
  8. 所有景区基础信息
  9. 标签 - 所有标签
  10. 标签 - 按照标签分组查看所有标签
  11. 查询所有用户行为
  12. 数据统计
  13. 用户管理 - 检查Token是否过期
  14. 查询商品信息
  15. 投诉 - 增加投诉
  16. 查询用户的定时提醒
  17. 创建提醒
  18. 删除提醒
  19. 处理投诉
  20. 图标管理 - 返回图标基础信息
  21. 图标管理 - 增加或修改图标信息
  22. 图标管理 - 所有图标
  23. 问券调查 - 增加调查
  24. 问券调查 - 查询所有问券调查
  25. 设备管理 - 查询设备信息
  26. 查询线路信息
  27. 操作员管理 - 操作员登录
  28. 用户管理 - 用户登录&注册
  29. 查询公告-单条
  30. 查询公告-列表
  31. 创建公告
  32. 删除公告
  33. 修改公告
  34. 用户管理 - 注册客户端
  35. 用户管理 - 删除用户(注销)
  36. 返回景区基础信息
  37. 发送短信验证码
  38. 查询系统广告-单条
  39. 查询系统广告-列表
  40. 修改平台广告
  41. 查询系统信息接口
  42. 标签 - 增加标签
  43. 标签 - 删除标签
  44. 菜单管理 - 查询所有菜单
  45. 菜单管理 - 更新菜单
  46. 删除菜单
  47. 保存用户移动轨迹(5分钟提交一次)
  48. 更新商品
  49. 设备管理 - 更新设施
  50. 设备管理 - 更新等待时间
  51. 更新线路
  52. 操作员管理 - 修改用户信息
  53. 更新景区基础信息
  54. 更新景区基础信息-高级
  55. 用户管理 - 修改用户信息
  56. 上传
  57. 上传文件BASE64
  58. 用户管理 - 获取用户信息
  59. 增加用户行为日志

/AllCommodity (GET)

查询所有商品

Param Name Example Data Type Description Required?
ScenicId 5dfb03070a9ac17ac7a82054 string 景区id Yes
Code Type Model Message
200 object ResponseSeccess Price=价格;ShopName=店铺名称;KvPhoto用于列表页的图片;TopPhoto详情页最上面的轮播图;Images详情页下面的产品详细图; Display是否在前台显示
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/AllComplaint (GET)

投诉 - 查询所有投诉

Param Name Example Data Type Description Required?
ScenicId 5e1ed07524e03431008b4572 string 景区id Yes
Page 1 int 当前第几页 Yes
Code Type Model Message
200 object ResponseSeccess
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/AllItemTime (GET)

设备管理 - 获得所有设备的等待时间

Param Name Example Data Type Description Required?
ScenicId 5dfb03070a9ac17ac7a82054 string 景区id Yes
Code Type Model Message
200 object ResponseSeccess {5df864740a9ac17ac7a7feb8: '20',.....}
500 object ResponseError {}

/AllItems (GET)

设备管理 - 查询所有游玩项目

Param Name Example Data Type Description Required?
ScenicId 5dfb03070a9ac17ac7a82054 string 景区id Yes
Code Type Model Message
200 object ResponseSeccess Tags所属标签,标签有分类;LimitHeight限高;PlayDuration游玩时长;SceneTime场次时间;Picture照片;Voice音频;AverageConsumption平均消费;Menu菜单, OpenHours开放时间: LocationDescription位置描述; Reminder温馨提示; State运行状态0=正常1=停运;Display是否在前台显示;ReminderInterval排队提醒间隔时间(用逗号分割如60,90,120)
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/AllLine (GET)

查询所有线路

Code Type Model Message
200 object ResponseSeccess Name名称;SubName副标题;PlayDuration游玩时长;Suitable适合人群;Location线路点坐标;Annotations需要点亮的设施id;Distance距离
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/AllOperator (GET)

操作员管理 - 所有操作员

Param Name Example Data Type Description Required?
ScenicId 5dfb03070a9ac17ac7a82054 string 景区id Yes
Token 5dfb03070a9ac17ac7a82054 string 用户token Yes
Code Type Model Message
200 object ResponseSeccess
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/AllOperatorLog (GET)

查询所有用户行为

Param Name Example Data Type Description Required?
ScenicId 5dfb03070a9ac17ac7a82054 string 景区id Yes
Page 1 int 当前第几页 Yes
Code Type Model Message
200 object ResponseSeccess {"errcode":0,"total":1,"currpage":1,"totalpages":1,"prepage":20,"result":}
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/AllScenic (GET)

所有景区基础信息

Param Name Example Data Type Description Required?
Display true string true=显示隐藏数据 Yes
Code Type Model Message
200 object ResponseSeccess
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/AllTag (GET)

标签 - 所有标签

Param Name Example Data Type Description Required?
ScenicId 5dfb03070a9ac17ac7a82054 string 景区id Yes
Code Type Model Message
200 object ResponseSeccess {"errcode":0,"result":[{"Type":"menu","Name":"服务设施"},{"Type":"normal","Name":"不错"},{"Type":"thrilling","Name":"刺激"},{"Type":"recommend","Name":"必玩"}]}
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/AllTagGroup (GET)

标签 - 按照标签分组查看所有标签

Param Name Example Data Type Description Required?
ScenicId 5dfb03070a9ac17ac7a82054 string 景区id Yes
Code Type Model Message
200 object ResponseSeccess {"errcode":0,"result":[{"Tags":["儿童","成人","青少年"],"Type":"age"}]}
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/AllUserLog (GET)

查询所有用户行为

Param Name Example Data Type Description Required?
ScenicId 5dfb03070a9ac17ac7a82054 string 景区id Yes
Page 1 int 当前第几页 Yes
Code Type Model Message
200 object ResponseSeccess {"errcode":0,"total":1,"currpage":1,"totalpages":1,"prepage":20,"result":}
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/Analysls/Count (GET)

数据统计

Param Name Example Data Type Description Required?
ScenicId wgergejfwe string 景区id Yes
StartTime 1 int 时间戳
StopTime 1 int 时间戳
Code Type Model Message
200 object ResponseSeccess userTotal=用户总数registerTotal=注册用户总数nonRegisterTotal非注册用户总数
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/CheckToken (POST)

用户管理 - 检查Token是否过期

Param Name Example Data Type Description Required?
Token wgergejfwe string 用户token Yes
Code Type Model Message
200 object ResponseSeccess {"errcode":0,"result":"ok"}
500 object ResponseError {"errcode":401,"errmsg":"token过期"}

/CommodityInfo (GET)

查询商品信息

Param Name Example Data Type Description Required?
id 5dfb03070a9ac17ac7a82054 string id Yes
Code Type Model Message
200 object ResponseSeccess Price=价格;ShopName=店铺名称;KvPhoto用于列表页的图片;TopPhoto详情页最上面的轮播图;Images详情页下面的产品详细图; Display是否在前台显示
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/CreateComplaint (POST)

投诉 - 增加投诉

Param Name Example Data Type Description Required?
Mobile 18616619599 string 联系电话 Yes
Name 高先生 string 姓名 Yes
Code 123456 string 验证码 Yes
Sex string 性别 Yes
ScenicId 5e1ed07524e03431008b4572 string 景区id Yes
Type 1 string 类型 Yes
Content 卫生不干净 string 投诉内容 Yes
Image ["http://www.xx.com/123.jpg","http://www.xx.com/123.jpg"] string 照片数组 Yes
Code Type Model Message
200 object ResponseSeccess {"errcode":0,"result":"ok"}
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/DealyMessage/Info (GET)

查询用户的定时提醒

Param Name Example Data Type Description Required?
UserId 5dfb03070a9ac17ac7a82054 string 用户id Yes
Token wgergejfwe string 用户token Yes
Code Type Model Message
200 object ResponseSeccess DelayTime=执行时间;Type=类型(0请求url地址1发送app通知);Fail失败次数;Title=通知标题;Content=通知内容;DeviceToken=设备id
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/DealyMessage/Create (POST)

创建提醒

Param Name Example Data Type Description Required?
UserId 5dfb03070a9ac17ac7a82054 string 用户id Yes
Token wgergejfwe string 用户token Yes
DeviceToken 5dfb03070a9ac17ac7a82054 string 设备id Yes
Title 表演时间提醒 string 标题 Yes
Content 5分钟后有表演 string 内容 Yes
DelayTime 1579066863 string 到达这个时间戳就执行 Yes
Code Type Model Message
200 object ResponseSeccess {"errcode":0,"result":"ok"}
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/DealyMessage/Remove (POST)

删除提醒

Param Name Example Data Type Description Required?
id 5dfb03070a9ac17ac7a82054 string 提醒id Yes
UserId 5dfb03070a9ac17ac7a82054 string 用户id Yes
Token wgergejfwe string 用户token Yes
Code Type Model Message
200 object ResponseSeccess {"errcode":0,"result":"ok"}
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/HandleComplaint (POST)

处理投诉

Param Name Example Data Type Description Required?
id 5dfb03070a9ac17ac7a82054 string 投诉id Yes
ScenicId wgergejfwe string 景区id Yes
Token wgergejfwe string 用户token Yes
Code Type Model Message
200 object ResponseSeccess {"errcode":0,"result":"ok"}
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/Icon/Info (GET)

图标管理 - 返回图标基础信息

Param Name Example Data Type Description Required?
id 5dfb03070a9ac17ac7a82054 string 图标id Yes
Code Type Model Message
200 object ResponseSeccess Name名称:Picture图片地址:id图标id
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/Icon/Update (POST)

图标管理 - 增加或修改图标信息

Param Name Example Data Type Description Required?
id 5dfb03070a9ac17ac7a82054 string 图标id Yes
ScenicId 5e0d504e24e03431008b4567 string 景区id Yes
Token wgergejfwe string 用户token Yes
Code Type Model Message
200 object ResponseSeccess Name名称:Picture图片地址:id图标id:ScenicId景区id
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/Icon/All (GET)

图标管理 - 所有图标

Param Name Example Data Type Description Required?
ScenicId 5dfb03070a9ac17ac7a82054 string 景区id Yes
Code Type Model Message
200 object ResponseSeccess Name名称:Picture图片地址:id图标id:ScenicId景区id
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/Investigation/Save (POST)

问券调查 - 增加调查

Param Name Example Data Type Description Required?
UserId 1111111 string UserId Yes
Mobile 18616619599 string 联系电话 Yes
type 1 string 类型 Yes
Code Type Model Message
200 object ResponseSeccess {"errcode":0,"result":"ok"}
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/Investigation/List (GET)

问券调查 - 查询所有问券调查

Param Name Example Data Type Description Required?
Page 1 int 当前第几页 Yes
Code Type Model Message
200 object ResponseSeccess {"errcode":0,"total":1,"currpage":1,"totalpages":1,"prepage":20,"result":}
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/ItemInfo (GET)

设备管理 - 查询设备信息

Param Name Example Data Type Description Required?
id 5dfb03070a9ac17ac7a82054 string 设备id Yes
Code Type Model Message
200 object ResponseSeccess Tags所属标签,标签有分类;LimitHeight限高;PlayDuration游玩时长;SceneTime场次时间;Picture照片;Voice音频;AverageConsumption平均消费;Menu菜单, OpenHours开放时间: LocationDescription位置描述; Reminder温馨提示; State运行状态0=正常1=停运;Display是否在前台显示;ReminderInterval排队提醒间隔时间(用逗号分割如60,90,120)
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/LineInfo (GET)

查询线路信息

Param Name Example Data Type Description Required?
id 5dfb03070a9ac17ac7a82054 string id Yes
Code Type Model Message
200 object ResponseSeccess Name名称;SubName副标题;PlayDuration游玩时长;Suitable适合人群;Location线路点坐标;Annotations需要点亮的设施id;Distance距离
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/LoginOperator (POST)

操作员管理 - 操作员登录

Param Name Example Data Type Description Required?
Username aaron string 用户名 Yes
Password 123 string 密码 Yes
Code Type Model Message
200 object ResponseSeccess {"errcode":0,"result":{"Id":"5e09c64c1c09c6f0f7ca2fa9","Token":"640bf934e425aba5d3c90998b2641f2f0ca07261d334d9615d1cd4790b5f34e7"}} 调用其它需要登陆的接口时携带token,有过期时间
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/LoginUser (POST)

用户管理 - 用户登录&注册

Param Name Example Data Type Description Required?
Mobile aaron string 手机号 Yes
Code 1 string 验证码(使用验证码的新手机号自动注册) Yes
DeviceId abc123 string 手机唯一识别码,不重复(存放于http.header中)
Mac abc123 string 网卡Mac地址(存放于http.header中)
SystemType ios string ios,android(存放于http.header中)
SystemVersion 13.01 string 手机版本(存放于http.header中)
SystemModel iphone8 string 手机型号(存放于http.header中)
AppVersion 1.0 string app版本号(存放于http.header中)
DeviceToken abc string 推送token(存放于http.header中)
Code Type Model Message
200 object ResponseSeccess {"errcode":0,"result":{"Id":"5e09c64c1c09c6f0f7ca2fa9","Token":"640bf934e425aba5d3c90998b2641f2f0ca07261d334d9615d1cd4790b5f34e7"}} 调用其它需要登陆的接口时携带token,有过期时间
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/Notice/Info (GET)

查询公告-单条

Param Name Example Data Type Description Required?
id 5dfb03070a9ac17ac7a82054 string id Yes
Code Type Model Message
200 object ResponseSeccess {"errcode":0,"result":{"Id":"5e82d2539561231535f72958","Title":"公告2","Url":"http://www.google.cn","CreateTime":1585631827,"UpdateTime":0,"Expiry":1585670400,"ExpiryString":"今天"}}
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/Notice/List (GET)

查询公告-列表

Param Name Example Data Type Description Required?
ScenicId wgergejfwe string 景区id Yes
ExpiryState all string 是否有效,默认只显示有效数据,==all所有数据
Code Type Model Message
200 object ResponseSeccess {"errcode":0,"result":[{"Id":"5e82c27f41914b0fdcac489f","Title":"公告","Url":"http://www.google.cn","CreateTime":1585627775,"UpdateTime":0,"Expiry":1585670400,"ExpiryString":"今天"}...]}
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/Notice/Create (POST)

创建公告

Param Name Example Data Type Description Required?
ScenicId wgergejfwe string 景区id Yes
Title 营业时间公告 string 公告名称 Yes
Url http://abc.com string 公告链接 Yes
ExpiryString http://abc.com string 有效期(15分钟 1小时
Token wgergejfwe string 用户token Yes
Code Type Model Message
200 object ResponseSeccess {"errcode":0,"result":"ok"}
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/Notice/Remove (POST)

删除公告

Param Name Example Data Type Description Required?
id 5dfb03070a9ac17ac7a82054 string 公告id Yes
ScenicId 5dfb03070a9ac17ac7a82054 string 景区id Yes
Token wgergejfwe string 用户token Yes
Code Type Model Message
200 object ResponseSeccess {"errcode":0,"result":"ok"}
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/Notice/Modify (POST)

修改公告

Param Name Example Data Type Description Required?
id 5dfb03070a9ac17ac7a82054 string 公告id Yes
ScenicId wgergejfwe string 景区id Yes
Title 营业时间公告 string 公告名称 Yes
Url http://abc.com string 公告链接 Yes
ExpiryString http://abc.com string 有效期(15分钟 1小时
Token wgergejfwe string 用户token Yes
Code Type Model Message
200 object ResponseSeccess {"errcode":0,"result":"ok"}
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/RegisterDevice (POST)

用户管理 - 注册客户端

Param Name Example Data Type Description Required?
DeviceId abc123 string 手机唯一识别码,不重复(存放于http.header中)
Mac abc123 string 网卡Mac地址(存放于http.header中)
SystemType ios string ios,android(存放于http.header中)
SystemVersion 13.01 string 手机版本(存放于http.header中)
SystemModel iphone8 string 手机型号(存放于http.header中)
AppVersion 1.0 string app版本号(存放于http.header中)
DeviceToken abc string 推送token(存放于http.header中)
Code Type Model Message
200 object ResponseSeccess {"errcode":0,"result":"ok"}
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/RemoveUser (POST)

用户管理 - 删除用户(注销)

Param Name Example Data Type Description Required?
id aaron string 用户id Yes
Token wgergejfwe string 用户token Yes
Code Type Model Message
200 object ResponseSeccess {"errcode":0,"result":"ok"}
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/ScenicInfo (GET)

返回景区基础信息

Param Name Example Data Type Description Required?
id 5dfb03070a9ac17ac7a82054 string 景区id Yes
Code Type Model Message
200 object ResponseSeccess Name名称;Describe介绍;OpenHours营业时间;Picture最上面图片;ShopAdPicture商城列表页图片;ItemScenicPicture项目场次照片;ActivityPicture活动照片;VideoList视频(VideoPicture=首桢图片);InvestigationUrl问券调查的url;RangeLocation景区范围(多个坐标点)ZoomForIOS地图的缩放大小(IOS);ZoomForAndroidMin地图的缩放大小(Android最小);ZoomForAndroidMax地图的缩放大小(Android最大);Rotation旋转角度;OpenTiles否开启地图切片;ColorTiles切片底色(#FFFFFF)
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/Sms/Send (POST)

发送短信验证码

Param Name Example Data Type Description Required?
Mobile 18616619599 string 手机号 Yes
Location {"Latitude": 119, "Longitude": 39} string 位置 Yes
Code Type Model Message
200 object ResponseSeccess {"errcode":0,"result":"ok"}验证码1分钟内有效
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/SysAds/Info (GET)

查询系统广告-单条

Param Name Example Data Type Description Required?
id 5dfb03070a9ac17ac7a82054 string id Yes
Code Type Model Message
200 object ResponseSeccess {"errcode":0,"result":{"Id":"5e858c09b1d67b2d117e2e58","Site":"景区选择页","Size":{"Width":100,"Height":100},"Type":"轮播","Picture":[{"Src":"/Upload/1585820891339307000.png","Link":"222"}],"Video":[]}}
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/SysAds/List (GET)

查询系统广告-列表

Code Type Model Message
200 object ResponseSeccess {"errcode":0,"result":[{"Id":"5e858c09b1d67b2d117e2e58","Site":"景区选择页","Size":{"Width":100,"Height":100},"Type":"轮播","Picture":[{"Src":"/Upload/1585820891339307000.png","Link":"222"}],"Video":[]}]}
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/SysAds/Modify (POST)

修改平台广告

Param Name Example Data Type Description Required?
id 5dfb03070a9ac17ac7a82054 string 平台广告id Yes
Site Height string 位置 Yes
Height 100 string 尺寸 Yes
Width 100 string 尺寸 Yes
Type 单视频 string 类型(轮播 单图
Picture [{"Src":"/Upload/1585820891339307000.png","Link":"222"}] string 图片 Yes
Video [{"Src":"../plugins/images/defaultpic.png","Link":"22","Title":"22","VideoPicture":"/Upload/1585821569540095000.png"}] string 视频 Yes
Token wgergejfwe string 用户token Yes
Code Type Model Message
200 object ResponseSeccess {"errcode":0,"result":"ok"}
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/SystemInfo (GET)

查询系统信息接口

Code Type Model Message
200 object ResponseSeccess ApiVersion=最新的api版本号SupportVersion=支持最低的app版本号UpdateLocationInterval上报位置时间间隔(秒)
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/Tag/Create (POST)

标签 - 增加标签

Param Name Example Data Type Description Required?
ScenicId 5dfb03070a9ac17ac7a82054 string 景区id Yes
Token wgergejfwe string 用户token Yes
TagName 广场 string 标签名称 Yes
TagGroup location string 群组名称 Yes
Code Type Model Message
200 object ResponseSeccess {"errcode":0,"result":"ok"}
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/Tag/Remove (POST)

标签 - 删除标签

Param Name Example Data Type Description Required?
ScenicId 5dfb03070a9ac17ac7a82054 string 景区id Yes
Token wgergejfwe string 用户token Yes
TagName 广场 string 标签名称 Yes
TagGroup location string 群组名称 Yes
Code Type Model Message
200 object ResponseSeccess {"errcode":0,"result":"ok"}
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/TopMenus/All (GET)

菜单管理 - 查询所有菜单

Param Name Example Data Type Description Required?
ScenicId 5e0d504e24e03431008b4567 string 景区id Yes
Token wgergejfwe string 用户token Yes
Code Type Model Message
200 object ResponseSeccess {"errcode":0,"result":[{"Id":"/aarongao/leyoutu_server/tree/cfcccc9984be6d121a517c2f802bba7b0e416a66#","ScenicId":"/aarongao/leyoutu_server/tree/cfcccc9984be6d121a517c2f802bba7b0e416a66#","Title":"玩水","Tags":["玩水"]},{"Id":"/aarongao/leyoutu_server/tree/cfcccc9984be6d121a517c2f802bba7b0e416a66#","ScenicId":"/aarongao/leyoutu_server/tree/cfcccc9984be6d121a517c2f802bba7b0e416a66#","Title":"设施","Tags":["服务设施","游玩项目"]}]}
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/TopMenus/Update (POST)

菜单管理 - 更新菜单

Param Name Example Data Type Description Required?
ScenicId 5e0d504e24e03431008b4567 string 景区id Yes
Token wgergejfwe string 用户token Yes
Code Type Model Message
200 object ResponseSeccess {"errcode":0,"result":[{"Id":"/aarongao/leyoutu_server/tree/cfcccc9984be6d121a517c2f802bba7b0e416a66#","ScenicId":"/aarongao/leyoutu_server/tree/cfcccc9984be6d121a517c2f802bba7b0e416a66#","Title":"玩水","Tags":["玩水"]},{"Id":"/aarongao/leyoutu_server/tree/cfcccc9984be6d121a517c2f802bba7b0e416a66#","ScenicId":"/aarongao/leyoutu_server/tree/cfcccc9984be6d121a517c2f802bba7b0e416a66#","Title":"设施","Tags":["服务设施","游玩项目"]}]}
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/TopMenus/Remove (POST)

删除菜单

Param Name Example Data Type Description Required?
id 5dfb03070a9ac17ac7a82054 string 公告id Yes
ScenicId 5dfb03070a9ac17ac7a82054 string 景区id Yes
Token wgergejfwe string 用户token Yes
Code Type Model Message
200 object ResponseSeccess {"errcode":0,"result":"ok"}
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/Trajectory/Save (POST)

保存用户移动轨迹(5分钟提交一次)

Param Name Example Data Type Description Required?
UserId 5dfb03070a9ac17ac7a82054 string 用户id Yes
Location {"Latitude": 119, "Longitude": 39} string 经纬度 Yes
Code Type Model Message
200 object ResponseSeccess {"errcode":0,"result":"ok"}
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/UpdateCommodity (POST)

更新商品

Param Name Example Data Type Description Required?
ScenicId 5dfb03070a9ac17ac7a82054 string 景区id Yes
Token wgergejfwe string 用户token Yes
Code Type Model Message
200 object ResponseSeccess
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/UpdateItem (POST)

设备管理 - 更新设施

Param Name Example Data Type Description Required?
id 5dfb03070a9ac17ac7a82054 string 设备id Yes
ScenicId 5dfb03070a9ac17ac7a82054 string 景区id Yes
Token wgergejfwe string 用户token Yes
Code Type Model Message
200 object ResponseSeccess Tags所属标签,标签有分类;LimitHeight限高;PlayDuration游玩时长;SceneTime场次时间;Picture照片;Voice音频;AverageConsumption平均消费;Menu菜单, OpenHours开放时间: LocationDescription位置描述; Reminder温馨提示; State运行状态0=正常1=停运
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/UpdateItemTime (POST)

设备管理 - 更新等待时间

Param Name Example Data Type Description Required?
ScenicId 5dfb03070a9ac17ac7a82054 string 景区id Yes
Token wgergejfwe string 用户token Yes
item [{"id":"5df864740a9ac17ac7a7feb8","time":"20"},{"id":"5df8660924e03417008b4567","time":"33"}] string 设备列表 Yes
Code Type Model Message
200 object ResponseSeccess {errcode: 0, result: "ok"}
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/UpdateLine (POST)

更新线路

Param Name Example Data Type Description Required?
id 5dfb03070a9ac17ac7a82054 string 线路id Yes
ScenicId 5dfb03070a9ac17ac7a82054 string 景区id Yes
Token wgergejfwe string 用户token Yes
Code Type Model Message
200 object ResponseSeccess
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/UpdateOperator (POST)

操作员管理 - 修改用户信息

Param Name Example Data Type Description Required?
id aaron string 用户id Yes
ScenicId 5e0d504e24e03431008b4567 string 景区id Yes
Token wgergejfwe string 用户token Yes
Username aarongao string 用户名 Yes
Remarks 18616619599 string 备注 Yes
Password 12345 string 密码 Yes
Code Type Model Message
200 object ResponseSeccess {"errcode":0,"result":"ok"}
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/UpdateScenic (POST)

更新景区基础信息

Param Name Example Data Type Description Required?
id 5dfb03070a9ac17ac7a82054 string 景区id Yes
Token wgergejfwe string 用户token Yes
Code Type Model Message
200 object ResponseSeccess Name名称;Describe介绍;OpenHours营业时间;Picture最上面图片;ShopAdPicture商城列表页图片;ItemScenicPicture项目场次照片;ActivityPicture活动照片;VideoList视频(VideoPicture=首桢图片);InvestigationUrl问券调查的url;
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/UpdateScenicSenior (POST)

更新景区基础信息-高级

Param Name Example Data Type Description Required?
id 5dfb03070a9ac17ac7a82054 string 景区id Yes
Token wgergejfwe string 用户token Yes
Code Type Model Message
200 object ResponseSeccess RangeLocation景区范围(多个坐标点)ZoomForIOS地图的缩放大小(IOS);ZoomForAndroidMin地图的缩放大小(Android最小);ZoomForAndroidMax地图的缩放大小(Android最大);Rotation旋转角度;OpenTiles否开启地图切片;ColorTiles切片底色(#FFFFFF)
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/UpdateUser (POST)

用户管理 - 修改用户信息

Param Name Example Data Type Description Required?
id aaron string 用户id Yes
Token wgergejfwe string 用户token Yes
Birthday 2010.10.10 string 生日 Yes
FullName aarongao string 全名 Yes
Code 12345678 string 6位验证码 Yes
Mobile 18616619599 string 手机,同用户名 Yes
Sex string 性别 Yes
Openid 12345 string 微信id Yes
Code Type Model Message
200 object ResponseSeccess {"errcode":0,"result":"ok"}
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/Upload (POST)

上传

Param Name Example Data Type Description Required?
file 1 file 文件 Yes
Code Type Model Message
200 object ResponseSeccess {"errcode":0,"result":"图片地址"}
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/UploadBASE64 (POST)

上传文件BASE64

Param Name Example Data Type Description Required?
file 1 file 文件 Yes
Code Type Model Message
200 object ResponseSeccess {"errcode":0,"result":"图片地址"}
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/UserInfo (GET)

用户管理 - 获取用户信息

Param Name Example Data Type Description Required?
id aaron string 用户id Yes
Token wgergejfwe string 用户token Yes
Code Type Model Message
200 object ResponseSeccess {"errcode":0,"result":{"Id":"5e09c64c1c09c6f0f7ca2fa9","Token":"640bf934e425aba5d3c90998b2641f2f0ca07261d334d9615d1cd4790b5f34e7"}}
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}

/UserLog (POST)

增加用户行为日志

Param Name Example Data Type Description Required?
Type 访问页面 string 安装;卸载;访问页面;使用功能;缩放地图;进入景区 Yes
SubType 景区详情 string 推荐;景区详情;登陆;商城;投诉建议;问券调查....(app中能点的都加上) Yes
ScenicId 5dfb03070a9ac17ac7a82054 string 景区id Yes
UserId 5dfb03070a9ac17ac7a82054 string 用户ID Yes
UserName Aaron string 用户名称 Yes
Location {"Latitude": 119, "Longitude": 39} string 位置 Yes
Remarks 备注 string 备注 Yes
Source 用户分享 string 来源 Yes
DeviceId abc123 string 手机唯一识别码,不重复(存放于http.header中) Yes
Mac abc123 string 网卡Mac地址(存放于http.header中) Yes
SystemType ios string ios,android(存放于http.header中) Yes
SystemVersion 13.01 string 手机版本(存放于http.header中) Yes
SystemModel iphone8 string 手机型号(存放于http.header中) Yes
AppVersion 1.0 string app版本号(存放于http.header中) Yes
DeviceToken abc string 推送token(存放于http.header中) Yes
Code Type Model Message
200 object ResponseSeccess {"errcode":0,"result":"ok"}
500 object ResponseError {"errcode":1,"errmsg":"错误原因"}