fix empty models

This commit is contained in:
Sakurasan
2025-04-22 02:52:56 +08:00
parent 8d34f8d6fe
commit 9c604460b1
5 changed files with 7 additions and 6 deletions

View File

@@ -1,7 +1,6 @@
package controller
import (
"fmt"
"net/http"
"opencatd-open/internal/dto"
"opencatd-open/internal/model"
@@ -142,7 +141,7 @@ func (a Api) CreateUser(c *gin.Context) {
dto.Fail(c, 400, err.Error())
return
}
fmt.Printf("user:%+v\n", user)
err = a.userService.Create(c, &user)
if err != nil {
dto.Fail(c, http.StatusInternalServerError, err.Error())