bing work with gorm
This commit is contained in:
parent
8807e5aaab
commit
61b976259a
7 changed files with 203 additions and 13 deletions
|
@ -19,7 +19,7 @@ type createGroupResponse struct {
|
|||
// Create adds an group to the database
|
||||
func Create(c *gin.Context) {
|
||||
var body createGroupRequest
|
||||
c.BindJSON(&body)
|
||||
_ = c.BindJSON(&body)
|
||||
|
||||
db := data.GetDB()
|
||||
slug, err := models.PutGroup(db, body.Name, body.Note)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue