fix and lint swagger file (#3007)

Co-authored-by: qwerty287 <ndev@web.de>
This commit is contained in:
6543
2023-12-24 15:50:01 +01:00
committed by GitHub
parent 7d43c29c20
commit 3f1f563180
18 changed files with 149 additions and 157 deletions

View File

@@ -74,8 +74,8 @@ func GetUser(c *gin.Context) {
// @Accept json
// @Success 200 {object} User
// @Tags Users
// @Param Authorization header string true "Insert your personal access token" default(Bearer <personal access token>)
// @Param login path string true "the user's login name"
// @Param Authorization header string true "Insert your personal access token" default(Bearer <personal access token>)
// @Param login path string true "the user's login name"
// @Param user body User true "the user's data"
func PatchUser(c *gin.Context) {
_store := store.FromContext(c)
@@ -116,7 +116,7 @@ func PatchUser(c *gin.Context) {
// @Produce json
// @Success 200 {object} User
// @Tags Users
// @Param Authorization header string true "Insert your personal access token" default(Bearer <personal access token>)
// @Param Authorization header string true "Insert your personal access token" default(Bearer <personal access token>)
// @Param user body User true "the user's data"
func PostUser(c *gin.Context) {
in := &model.User{}