Files
full/module/social/group/internal/models/group_member.go

21 lines
716 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package models
import (
"git.apinb.com/bsm-sdk/core/types"
)
// GroupMember 群成员
type GroupMember struct {
types.Std_IICUDS
types.Std_Passport
GroupID uint `gorm:"group_id;not null;" json:"group_id"`
GroupIdentity string `gorm:"column:group_identity;type:varchar(36);not null;" json:"group_identity"` //group_identity
RemarkName string `gorm:"column:remark_name;type:varchar(255);default:'';" json:"remark_name"` //昵称备注
Role int32 `gorm:"role;type:smallint;default:0" json:"role"` //0:普通成员1管理员2超管10创建者
}
// TableName .
func (gm *GroupMember) TableName() string {
return "relation_group_member"
}