Skip to content

Commit

Permalink
chore: update @produce comments (swaggo#1196)
Browse files Browse the repository at this point in the history
  • Loading branch information
qequ authored and jixiufeng committed May 17, 2022
1 parent c8cbd5a commit d18c715
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions example/celler/controller/examples.go
Expand Up @@ -14,7 +14,7 @@ import (
// @Description do ping
// @Tags example
// @Accept json
// @Produce json
// @Produce plain
// @Success 200 {string} string "pong"
// @Failure 400 {string} string "ok"
// @Failure 404 {string} string "ok"
Expand All @@ -29,7 +29,7 @@ func (c *Controller) PingExample(ctx *gin.Context) {
// @Description plus
// @Tags example
// @Accept json
// @Produce json
// @Produce plain
// @Param val1 query int true "used for calc"
// @Param val2 query int true "used for calc"
// @Success 200 {integer} string "answer"
Expand Down Expand Up @@ -57,7 +57,7 @@ func (c *Controller) CalcExample(ctx *gin.Context) {
// @Description path params
// @Tags example
// @Accept json
// @Produce json
// @Produce plain
// @Param group_id path int true "Group ID"
// @Param account_id path int true "Account ID"
// @Success 200 {string} string "answer"
Expand All @@ -84,7 +84,7 @@ func (c *Controller) PathParamsExample(ctx *gin.Context) {
// @Description custome header
// @Tags example
// @Accept json
// @Produce json
// @Produce plain
// @Param Authorization header string true "Authentication header"
// @Success 200 {string} string "answer"
// @Failure 400 {string} string "ok"
Expand Down Expand Up @@ -117,7 +117,7 @@ func (c *Controller) SecuritiesExample(ctx *gin.Context) {
// @Description attribute
// @Tags example
// @Accept json
// @Produce json
// @Produce plain
// @Param enumstring query string false "string enums" Enums(A, B, C)
// @Param enumint query int false "int enums" Enums(1, 2, 3)
// @Param enumnumber query number false "int enums" Enums(1.1, 1.2, 1.3)
Expand Down

0 comments on commit d18c715

Please sign in to comment.