Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = sqlx.ErrNotFound
Functions ¶
This section is empty.
Types ¶
type GroupUsers ¶
type GroupUsersModel ¶
type GroupUsersModel interface { TranCreate(ctx context.Context, session sqlx.Session, groupUserItem *GroupUsers) error TranDeleteByGroupId(ctx context.Context, session sqlx.Session, groupId int64) error IsInGroup(ctx context.Context, id, userId int64) (*GroupUsers, error) InGroups(ctx context.Context, id int64) ([]GroupUsers, error) FindUsersByChannelId(channelId string) ([]GroupUsers, error) // contains filtered or unexported methods }
GroupUsersModel is an interface to be customized, add more methods here, and implement the added methods in customGroupUsersModel.
func NewGroupUsersModel ¶
func NewGroupUsersModel(conn sqlx.SqlConn) GroupUsersModel
NewGroupUsersModel returns a model for the database table.
Click to show internal directories.
Click to hide internal directories.