Commit 58410c9c9756903ef774a8ca77944981dc5f5862

Authored by aarongao
1 parent 078d978c
Exists in v1.2 and in 2 other branches master, v1.1

..

Showing 2 changed files with 23 additions and 23 deletions   Show diff stats
API/Tag.go
... ... @@ -10,13 +10,13 @@ import (
10 10 )
11 11  
12 12 // @Title 标签列表
13   -// @Description 标签 - 所有
  13 +// @Description 标签 - 所有标签
14 14 // @Accept json
15 15 // @Produce json
16 16 // @Param ScenicId 5dfb03070a9ac17ac7a82054 string true "景区id"
17 17 // @Success 200 {object} tools.ResponseSeccess "{"errcode":0,"result":[{"Type":"menu","Name":"服务设施"},{"Type":"normal","Name":"不错"},{"Type":"thrilling","Name":"刺激"},{"Type":"recommend","Name":"必玩"}]}"
18 18 // @Failure 500 {object} tools.ResponseError "{"errcode":1,"errmsg":"错误原因"}"
19   -// @Router /Tags? [get]
  19 +// @Router /AllTag? [get]
20 20 func AllTag(c *gin.Context) {
21 21 c.Header("Access-Control-Allow-Origin", c.Request.Header.Get("Origin"))
22 22 c.Header("Access-Control-Allow-Credentials", "true")
... ...
README.md
... ... @@ -14,6 +14,7 @@
14 14 1. [设备管理 - 查询所有游玩项目](#allitems-get)
15 15 1. [查询所有线路](#allline-get)
16 16 1. [所有景区基础信息](#allscenic-get)
  17 +1. [标签 - 所有标签](#alltag-get)
17 18 1. [标签 - 按照标签分组查看所有标签](#alltaggroup-get)
18 19 1. [用户管理 - 检查Token是否过期](#checktoken-get)
19 20 1. [查询商品信息](#commodityinfo-get)
... ... @@ -33,7 +34,6 @@
33 34 1. [发送短信验证码](#sms-send-post)
34 35 1. [标签 - 增加标签](#tag-create-post)
35 36 1. [标签 - 删除标签](#tag-remove-post)
36   -1. [标签 - 所有](#tags-get)
37 37 1. [保存用户移动轨迹](#trajectory-save-post)
38 38 1. [更新商品](#updatecommodity-post)
39 39 1. [设备管理 - 更新设施](#updateitem-post)
... ... @@ -136,6 +136,25 @@
136 136  
137 137  
138 138  
  139 +<a name="alltag-get"></a>
  140 +
  141 +#### /AllTag (GET)
  142 +
  143 +
  144 +标签 - 所有标签
  145 +
  146 +| Param Name | Example | Data Type | Description | Required? |
  147 +|-----|-----|-----|-----|-----|
  148 +| ScenicId | 5dfb03070a9ac17ac7a82054 | string | 景区id | Yes |
  149 +
  150 +
  151 +| Code | Type | Model | Message |
  152 +|-----|-----|-----|-----|
  153 +| 200 | object | [ResponseSeccess](#github.com.aarongao.tools.ResponseSeccess) | {"errcode":0,"result":[{"Type":"menu","Name":"服务设施"},{"Type":"normal","Name":"不错"},{"Type":"thrilling","Name":"刺激"},{"Type":"recommend","Name":"必玩"}]} |
  154 +| 500 | object | [ResponseError](#github.com.aarongao.tools.ResponseError) | {"errcode":1,"errmsg":"错误原因"} |
  155 +
  156 +
  157 +
139 158 <a name="alltaggroup-get"></a>
140 159  
141 160 #### /AllTagGroup (GET)
... ... @@ -150,7 +169,7 @@
150 169  
151 170 | Code | Type | Model | Message |
152 171 |-----|-----|-----|-----|
153   -| 200 | object | [ResponseSeccess](#github.com.aarongao.tools.ResponseSeccess) | {"errcode":0,"result":[{"Type":"menu","Name":"服务设施"},{"Type":"normal","Name":"不错"},{"Type":"thrilling","Name":"刺激"},{"Type":"recommend","Name":"必玩"}]} |
  172 +| 200 | object | [ResponseSeccess](#github.com.aarongao.tools.ResponseSeccess) | {"errcode":0,"result":[{"Tags":["儿童","成人","青少年"],"Type":"age"}]} |
154 173 | 500 | object | [ResponseError](#github.com.aarongao.tools.ResponseError) | {"errcode":1,"errmsg":"错误原因"} |
155 174  
156 175  
... ... @@ -515,25 +534,6 @@
515 534  
516 535  
517 536  
518   -<a name="tags-get"></a>
519   -
520   -#### /Tags (GET)
521   -
522   -
523   -标签 - 所有
524   -
525   -| Param Name | Example | Data Type | Description | Required? |
526   -|-----|-----|-----|-----|-----|
527   -| ScenicId | 5dfb03070a9ac17ac7a82054 | string | 景区id | Yes |
528   -
529   -
530   -| Code | Type | Model | Message |
531   -|-----|-----|-----|-----|
532   -| 200 | object | [ResponseSeccess](#github.com.aarongao.tools.ResponseSeccess) | {"errcode":0,"result":[{"Type":"menu","Name":"服务设施"},{"Type":"normal","Name":"不错"},{"Type":"thrilling","Name":"刺激"},{"Type":"recommend","Name":"必玩"}]} |
533   -| 500 | object | [ResponseError](#github.com.aarongao.tools.ResponseError) | {"errcode":1,"errmsg":"错误原因"} |
534   -
535   -
536   -
537 537 <a name="trajectory-save-post"></a>
538 538  
539 539 #### /Trajectory/Save (POST)
... ...