mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-22 11:54:46 +00:00
fix and lint swagger file (#3007)
Co-authored-by: qwerty287 <ndev@web.de>
This commit is contained in:
@@ -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{}
|
||||
|
Reference in New Issue
Block a user