feat: import services and standardize Go 1.26.5
This commit is contained in:
16
apps/social/feed/internal/models/feed_relate_attachs.go
Normal file
16
apps/social/feed/internal/models/feed_relate_attachs.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package models
|
||||
|
||||
import "git.apinb.com/bsm-sdk/core/types"
|
||||
|
||||
// feed 关联附件表
|
||||
type FeedRelateAttach struct {
|
||||
types.Std_IDIdentity
|
||||
Identity string `gorm:"column:identity;type:varchar(36);uniqueIndex;"`
|
||||
PostIdentity string `gorm:"column:post_identity;type:varchar(36);index;" json:"post_identity"` // 推文唯一码
|
||||
AttachType string `gorm:"column:attach_type;type:varchar(36);index;" json:"attach_type"` // 附件类型
|
||||
Url string `gorm:"column:url;type:varchar(255);index;" json:"url"` // 附件地址
|
||||
}
|
||||
|
||||
func (table *FeedRelateAttach) TableName() string {
|
||||
return "feed_relate_attach"
|
||||
}
|
||||
Reference in New Issue
Block a user