Skip to content

Commit cf904ec

Browse files
committed
🚧 The response body of the GET /file API increases the createTime and id fields
1 parent 3499773 commit cf904ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

model/file.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
)
88

99
type FileModel struct {
10-
Id uint64 `gorm:"primary_key;AUTO_INCREMENT;column:id" json:"-"`
11-
CreatedAt time.Time `gorm:"column:createdAt" json:"-"`
10+
Id uint64 `json:"id" gorm:"primary_key;AUTO_INCREMENT;column:id"`
11+
CreatedAt time.Time `json:"createTime" gorm:"column:createdAt"`
1212
Name string `json:"name" grom:"column: name;not null" binding:"required"`
1313
Key string `json:"key" grom:"column: key;not null" binding:"required"`
1414
Bucket string `json:"bucket" grom:"column: bucket;not null" binding:"required"`

0 commit comments

Comments
 (0)