Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = sqlx.ErrNotFound
Functions ¶
This section is empty.
Types ¶
type GroupsModel ¶
type GroupsModel interface { TranCreate(ctx context.Context, session sqlx.Session, groupItem *Groups) error TranDelete(ctx context.Context, session sqlx.Session, groupId int64) error FindByIds(id ...interface{}) (map[int64]Groups, error) FindByTitle(ctx context.Context, title string) (*Groups, error) // contains filtered or unexported methods }
GroupsModel is an interface to be customized, add more methods here, and implement the added methods in customGroupsModel.
func NewGroupsModel ¶
func NewGroupsModel(conn sqlx.SqlConn) GroupsModel
NewGroupsModel returns a model for the database table.
Click to show internal directories.
Click to hide internal directories.