mirror of
https://github.com/yangjian102621/geekai.git
synced 2026-02-04 05:26:03 +08:00
增加自动迁移数据表代码
This commit is contained in:
@@ -49,7 +49,7 @@ func (h *UploadHandler) Upload(c *gin.Context) {
|
||||
|
||||
userId := 0
|
||||
res := h.DB.Create(&model.File{
|
||||
UserId: userId,
|
||||
UserId: uint(userId),
|
||||
Name: file.Name,
|
||||
ObjKey: file.ObjKey,
|
||||
URL: file.URL,
|
||||
|
||||
Reference in New Issue
Block a user