refactor: reorganize modules and add Linux build tooling
This commit is contained in:
21
module/social/group/internal/models/group_apply.go
Normal file
21
module/social/group/internal/models/group_apply.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"git.apinb.com/bsm-sdk/core/types"
|
||||
)
|
||||
|
||||
// GroupApply 入群申请
|
||||
type GroupApply struct {
|
||||
types.Std_IICUDS
|
||||
types.Std_Passport
|
||||
FromID uint `gorm:"column:from_id;not null;" json:"from_id"` //申请人id
|
||||
FromIdentity string `gorm:"column:from_identity;type:varchar(36);not null;" json:"from_identity"` //申请人identity
|
||||
GroupID uint `gorm:"column:group_id;not null;" json:"group_id"`
|
||||
GroupIdentity string `gorm:"column:group_identity;type:varchar(36);not null;" json:"group_identity"`
|
||||
Message string `gorm:"column:message;type:varchar(255);default:'';" json:"message"`
|
||||
}
|
||||
|
||||
// TableName .
|
||||
func (ga *GroupApply) TableName() string {
|
||||
return "relation_group_apply"
|
||||
}
|
||||
Reference in New Issue
Block a user