fix:优化
This commit is contained in:
parent
8bd52126fb
commit
372b98bcee
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user