Skip to content

Commit

Permalink
Merge branch 'feat/1.1.2/user' into test
Browse files Browse the repository at this point in the history
  • Loading branch information
LinkinStars committed Aug 14, 2023
2 parents ff61e91 + 1cd4e27 commit d05eada
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 4 deletions.
11 changes: 10 additions & 1 deletion docs/docs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1754,7 +1754,7 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/schema.AddUserReq"
"$ref": "#/definitions/schema.AddUsersReq"
}
}
],
Expand Down Expand Up @@ -6514,6 +6514,15 @@
}
}
},
"schema.AddUsersReq": {
"type": "object",
"properties": {
"users": {
"description": "users info line by line",
"type": "string"
}
}
},
"schema.AdminSetAnswerStatusRequest": {
"type": "object",
"properties": {
Expand Down
8 changes: 7 additions & 1 deletion docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ definitions:
- email
- password
type: object
schema.AddUsersReq:
properties:
users:
description: users info line by line
type: string
type: object
schema.AdminSetAnswerStatusRequest:
properties:
answer_id:
Expand Down Expand Up @@ -3392,7 +3398,7 @@ paths:
name: data
required: true
schema:
$ref: '#/definitions/schema.AddUserReq'
$ref: '#/definitions/schema.AddUsersReq'
produces:
- application/json
responses:
Expand Down
2 changes: 1 addition & 1 deletion internal/controller_admin/user_backyard_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (uc *UserAdminController) AddUser(ctx *gin.Context) {
// @Tags admin
// @Accept json
// @Produce json
// @Param data body schema.AddUserReq true "user"
// @Param data body schema.AddUsersReq true "user"
// @Success 200 {object} handler.RespBody
// @Router /answer/admin/api/users [post]
func (uc *UserAdminController) AddUsers(ctx *gin.Context) {
Expand Down

0 comments on commit d05eada

Please sign in to comment.