Skip to content

Commit

Permalink
Update examples.go (#832)
Browse files Browse the repository at this point in the history
Co-authored-by: Eason Lin <[email protected]>
  • Loading branch information
agzuniverse and easonlin404 authored Dec 8, 2020
1 parent a4053fb commit 98b8c70
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions example/celler/controller/examples.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,15 @@ func (c *Controller) AttributeExample(ctx *gin.Context) {
ctx.Query("default"),
))
}

// PostExample godoc
// @Summary post request example
// @Description post request example
// @Accept json
// @Produce plain
// @Param message body model.Account true "Account Info"
// @Success 200 {string} string "success"
// @Failure 500 {string} string "fail"
// @Router /examples/post [post]
func (c *Controller) PostExample(ctx *gin.Context) {
}

0 comments on commit 98b8c70

Please sign in to comment.