22 lines
748 B
Go
22 lines
748 B
Go
|
|
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"
|
||
|
|
}
|