Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB interface { BatchInsterCreditInfo(cxt context.Context, tx *sqlx.Tx, c []model.CreditInfo) error Begin(ctx context.Context, opts *sql.TxOptions) (*Tx, error) GetAvailableUserSum(cxt context.Context) (int, error) GetCreditInfo(cxt context.Context, uid int) (*model.CreditInfo, error) GetGroupCount(cxt context.Context, groupname string) (int, error) GetGroupname(cxt context.Context) ([]string, error) GetNilSum(cxt context.Context, field string) (int, error) GetRank(cxt context.Context, uid int, field string) (int, error) GetRanks(cxt context.Context, field string, limit int, offset int, desc bool) ([]model.CreditInfo, error) GetSum(cxt context.Context) (int, error) InsterConfig(cxt context.Context, tx *sqlx.Tx, c *model.Confing) error SelectConfig(cxt context.Context, id int) (*model.Confing, error) }
type Tx ¶
type Tx struct {
// contains filtered or unexported fields
}
func (*Tx) AddAfterCommit ¶
func (t *Tx) AddAfterCommit(f func())
Click to show internal directories.
Click to hide internal directories.