refactor: reorganize modules and add Linux build tooling
This commit is contained in:
17
module/social/relation/internal/models/relation_follow.go
Normal file
17
module/social/relation/internal/models/relation_follow.go
Normal file
@@ -0,0 +1,17 @@
|
||||
// Models generated by mesh dev cli,@Author: David Yan(david.yan@qq.com).
|
||||
package models
|
||||
|
||||
import (
|
||||
"git.apinb.com/bsm-sdk/core/types"
|
||||
)
|
||||
|
||||
type RelationFollow struct {
|
||||
types.Std_IICUDS
|
||||
FromIdentity string `gorm:"column:from_identity;type:varchar(36);not null;" json:"from_identity"` // 关注者
|
||||
ToIdentity string `gorm:"column:to_identity;type:varchar(255);not null;" json:"to_identity"` // 关注对象`
|
||||
}
|
||||
|
||||
// TableName .
|
||||
func (table *RelationFollow) TableName() string {
|
||||
return "relation_follow" //对应数据库表名
|
||||
}
|
||||
Reference in New Issue
Block a user