groups

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = sqlx.ErrNotFound

Functions

This section is empty.

Types

type Groups

type Groups struct {
	Id          int64     `db:"id"`
	UserId      int64     `db:"user_id"`
	Title       string    `db:"title"`
	Description string    `db:"description"`
	ChannelId   string    `db:"channel_id"`
	CreateTime  time.Time `db:"create_time"`
	UpdateTime  time.Time `db:"update_time"`
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL