Documentation ¶
Index ¶
Constants ¶
View Source
const GroupStatusBlack int64 = 3 // 黑名单
View Source
const GroupStatusNo int64 = 2 // 未通过
View Source
const GroupStatusYes int64 = 1 // 正常
群组状态
View Source
const GroupTypeMulti int64 = 2 // 群聊
View Source
const GroupTypeSingle int64 = 1 // 单聊
群组类型
Variables ¶
View Source
var ErrNotFound = sqlx.ErrNotFound
Functions ¶
This section is empty.
Types ¶
type GroupModel ¶
type GroupModel interface { TransInsertSystemGroup(ctx context.Context, session sqlx.Session, userId int64) (sql.Result, error) // contains filtered or unexported methods }
GroupModel is an interface to be customized, add more methods here, and implement the added methods in customGroupModel.
func NewGroupModel ¶
func NewGroupModel(conn sqlx.SqlConn, c cache.CacheConf) GroupModel
NewGroupModel returns a model for the database table.
type GroupUserModel ¶
type GroupUserModel interface { FindUserListByGroupId(ctx context.Context, groupId string) ([]*GroupUser, error) FindUserIdListByGroupId(ctx context.Context, groupId string) ([]int64, error) FindGroupIdListByUserId(ctx context.Context, userId int64) ([]string, error) FindAliasNameByGroupAndUser(ctx context.Context, groupId string, userId int64) (string, error) TransInsertSystemGroupUser(ctx context.Context, session sqlx.Session, userId int64) (sql.Result, error) // contains filtered or unexported methods }
GroupUserModel is an interface to be customized, add more methods here, and implement the added methods in customGroupUserModel.
func NewGroupUserModel ¶
func NewGroupUserModel(conn sqlx.SqlConn, c cache.CacheConf) GroupUserModel
NewGroupUserModel returns a model for the database table.
Click to show internal directories.
Click to hide internal directories.