fix:优化
This commit is contained in:
parent
8bd52126fb
commit
372b98bcee
|
@ -14,7 +14,7 @@ type FsUserMaterial struct {
|
||||||
ResourceId *string `gorm:"default:'';" json:"resource_id"` //
|
ResourceId *string `gorm:"default:'';" json:"resource_id"` //
|
||||||
ResourceUrl *string `gorm:"default:'';" json:"resource_url"` //
|
ResourceUrl *string `gorm:"default:'';" json:"resource_url"` //
|
||||||
Metadata *[]byte `gorm:"default:'';" json:"metadata"` //
|
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 {
|
type FsUserMaterialModel struct {
|
||||||
db *gorm.DB
|
db *gorm.DB
|
||||||
|
|
|
@ -195,7 +195,7 @@ func (l *UploadLogoLogic) UploadLogo(req *types.UploadLogoReq, userinfo *auth.Us
|
||||||
ResourceId: &uploadRes.ResourceId,
|
ResourceId: &uploadRes.ResourceId,
|
||||||
ResourceUrl: &uploadRes.ResourceUrl,
|
ResourceUrl: &uploadRes.ResourceUrl,
|
||||||
Metadata: &resultStrB,
|
Metadata: &resultStrB,
|
||||||
CreateAt: &nowTime,
|
Ctime: &nowTime,
|
||||||
})
|
})
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user