fix:优化

This commit is contained in:
momo 2023-09-01 15:04:18 +08:00
parent 8bd52126fb
commit 372b98bcee
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ type FsUserMaterial struct {
ResourceId *string `gorm:"default:'';" json:"resource_id"` //
ResourceUrl *string `gorm:"default:'';" json:"resource_url"` //
Metadata *[]byte `gorm:"default:'';" json:"metadata"` //
CreateAt *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"create_at"` // 上传时间
Ctime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"ctime"` // 上传时间
}
type FsUserMaterialModel struct {
db *gorm.DB

View File

@ -195,7 +195,7 @@ func (l *UploadLogoLogic) UploadLogo(req *types.UploadLogoReq, userinfo *auth.Us
ResourceId: &uploadRes.ResourceId,
ResourceUrl: &uploadRes.ResourceUrl,
Metadata: &resultStrB,
CreateAt: &nowTime,
Ctime: &nowTime,
})
if err != nil {