bing work with gorm

This commit is contained in:
inhosin 2019-09-07 19:10:28 +03:00
parent 8807e5aaab
commit 61b976259a
7 changed files with 203 additions and 13 deletions

View file

@ -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)