Documentation ¶
Index ¶
- Variables
- type MysqlDb
- func (m *MysqlDb) BatchInsterCreditInfo(cxt context.Context, tx *sqlx.Tx, c []model.CreditInfo) error
- func (m *MysqlDb) Begin(ctx context.Context, opts *sql.TxOptions) (*db.Tx, error)
- func (m *MysqlDb) GetAvailableUserSum(cxt context.Context) (int, error)
- func (m *MysqlDb) GetCreditInfo(cxt context.Context, uid int) (*model.CreditInfo, error)
- func (m *MysqlDb) GetGroupCount(cxt context.Context, groupname string) (int, error)
- func (m *MysqlDb) GetGroupname(cxt context.Context) ([]string, error)
- func (m *MysqlDb) GetNilSum(cxt context.Context, field string) (int, error)
- func (m *MysqlDb) GetRank(cxt context.Context, uid int, field string) (int, error)
- func (m *MysqlDb) GetRanks(cxt context.Context, field string, limit, offset int, desc bool) ([]model.CreditInfo, error)
- func (m *MysqlDb) GetSum(cxt context.Context) (int, error)
- func (m *MysqlDb) InsterConfig(cxt context.Context, tx *sqlx.Tx, c *model.Confing) error
- func (m *MysqlDb) SelectConfig(cxt context.Context, id int) (*model.Confing, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotVaildFidld = errors.New("无效的字段")
Functions ¶
This section is empty.
Types ¶
type MysqlDb ¶
type MysqlDb struct {
// contains filtered or unexported fields
}
func (*MysqlDb) BatchInsterCreditInfo ¶
func (*MysqlDb) GetAvailableUserSum ¶
func (*MysqlDb) GetCreditInfo ¶
func (*MysqlDb) GetGroupCount ¶
func (*MysqlDb) GetGroupname ¶
func (*MysqlDb) InsterConfig ¶
Click to show internal directories.
Click to hide internal directories.