doc: swagger add auth tag

This commit is contained in:
zhangwenjian
2020-07-18 14:24:59 +08:00
parent ea3408de84
commit b9d0318b45
16 changed files with 97 additions and 97 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ import (
// @Param status query string false "status"
// @Success 200 {object} app.Response "{"code": 200, "data": [...]}"
// @Router /api/v1/post [get]
// @Security
// @Security Bearer
func GetPostList(c *gin.Context) {
var data models.Post
var err error
@@ -48,7 +48,7 @@ func GetPostList(c *gin.Context) {
// @Param postId path int true "postId"
// @Success 200 {object} app.Response "{"code": 200, "data": [...]}"
// @Router /api/v1/post/{postId} [get]
// @Security
// @Security Bearer
func GetPost(c *gin.Context) {
var Post models.Post
Post.PostId, _ = tools.StringToInt(c.Param("postId"))