From 58410c9c9756903ef774a8ca77944981dc5f5862 Mon Sep 17 00:00:00 2001 From: aarongao Date: Tue, 18 Feb 2020 16:09:42 +0800 Subject: [PATCH] .. --- API/Tag.go | 4 ++-- README.md | 42 +++++++++++++++++++++--------------------- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/API/Tag.go b/API/Tag.go index f8dc186..9808583 100644 --- a/API/Tag.go +++ b/API/Tag.go @@ -10,13 +10,13 @@ import ( ) // @Title 标签列表 -// @Description 标签 - 所有 +// @Description 标签 - 所有标签 // @Accept json // @Produce json // @Param ScenicId 5dfb03070a9ac17ac7a82054 string true "景区id" // @Success 200 {object} tools.ResponseSeccess "{"errcode":0,"result":[{"Type":"menu","Name":"服务设施"},{"Type":"normal","Name":"不错"},{"Type":"thrilling","Name":"刺激"},{"Type":"recommend","Name":"必玩"}]}" // @Failure 500 {object} tools.ResponseError "{"errcode":1,"errmsg":"错误原因"}" -// @Router /Tags? [get] +// @Router /AllTag? [get] func AllTag(c *gin.Context) { c.Header("Access-Control-Allow-Origin", c.Request.Header.Get("Origin")) c.Header("Access-Control-Allow-Credentials", "true") diff --git a/README.md b/README.md index ecc624a..ed61077 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ 1. [设备管理 - 查询所有游玩项目](#allitems-get) 1. [查询所有线路](#allline-get) 1. [所有景区基础信息](#allscenic-get) +1. [标签 - 所有标签](#alltag-get) 1. [标签 - 按照标签分组查看所有标签](#alltaggroup-get) 1. [用户管理 - 检查Token是否过期](#checktoken-get) 1. [查询商品信息](#commodityinfo-get) @@ -33,7 +34,6 @@ 1. [发送短信验证码](#sms-send-post) 1. [标签 - 增加标签](#tag-create-post) 1. [标签 - 删除标签](#tag-remove-post) -1. [标签 - 所有](#tags-get) 1. [保存用户移动轨迹](#trajectory-save-post) 1. [更新商品](#updatecommodity-post) 1. [设备管理 - 更新设施](#updateitem-post) @@ -136,6 +136,25 @@ + + +#### /AllTag (GET) + + +标签 - 所有标签 + +| Param Name | Example | Data Type | Description | Required? | +|-----|-----|-----|-----|-----| +| ScenicId | 5dfb03070a9ac17ac7a82054 | string | 景区id | Yes | + + +| Code | Type | Model | Message | +|-----|-----|-----|-----| +| 200 | object | [ResponseSeccess](#github.com.aarongao.tools.ResponseSeccess) | {"errcode":0,"result":[{"Type":"menu","Name":"服务设施"},{"Type":"normal","Name":"不错"},{"Type":"thrilling","Name":"刺激"},{"Type":"recommend","Name":"必玩"}]} | +| 500 | object | [ResponseError](#github.com.aarongao.tools.ResponseError) | {"errcode":1,"errmsg":"错误原因"} | + + + #### /AllTagGroup (GET) @@ -150,7 +169,7 @@ | Code | Type | Model | Message | |-----|-----|-----|-----| -| 200 | object | [ResponseSeccess](#github.com.aarongao.tools.ResponseSeccess) | {"errcode":0,"result":[{"Type":"menu","Name":"服务设施"},{"Type":"normal","Name":"不错"},{"Type":"thrilling","Name":"刺激"},{"Type":"recommend","Name":"必玩"}]} | +| 200 | object | [ResponseSeccess](#github.com.aarongao.tools.ResponseSeccess) | {"errcode":0,"result":[{"Tags":["儿童","成人","青少年"],"Type":"age"}]} | | 500 | object | [ResponseError](#github.com.aarongao.tools.ResponseError) | {"errcode":1,"errmsg":"错误原因"} | @@ -515,25 +534,6 @@ - - -#### /Tags (GET) - - -标签 - 所有 - -| Param Name | Example | Data Type | Description | Required? | -|-----|-----|-----|-----|-----| -| ScenicId | 5dfb03070a9ac17ac7a82054 | string | 景区id | Yes | - - -| Code | Type | Model | Message | -|-----|-----|-----|-----| -| 200 | object | [ResponseSeccess](#github.com.aarongao.tools.ResponseSeccess) | {"errcode":0,"result":[{"Type":"menu","Name":"服务设施"},{"Type":"normal","Name":"不错"},{"Type":"thrilling","Name":"刺激"},{"Type":"recommend","Name":"必玩"}]} | -| 500 | object | [ResponseError](#github.com.aarongao.tools.ResponseError) | {"errcode":1,"errmsg":"错误原因"} | - - - #### /Trajectory/Save (POST) -- libgit2 0.21.0