Documentation ¶
Index ¶
- type Dao
- func (d *Dao) BeFormal(c context.Context, mid int64, cookie, ip string) (err error)
- func (d *Dao) Begin(c context.Context) (tx *xsql.Tx, err error)
- func (d *Dao) Close()
- func (d *Dao) CurrentCount(c context.Context, mid int64, start, end time.Time) (res int64, err error)
- func (d *Dao) DelApplyFlagCache(c context.Context, code string) (err error)
- func (d *Dao) DelBuyFlagCache(c context.Context, mid int64) (err error)
- func (d *Dao) Invite(c context.Context, code string) (res *model.Invite, err error)
- func (d *Dao) Invites(c context.Context, mid int64) (res []*model.Invite, err error)
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) SetApplyFlagCache(c context.Context, code, f string) (ok bool, err error)
- func (d *Dao) SetBuyFlagCache(c context.Context, mid int64, f string) (ok bool, err error)
- func (d *Dao) TxAddInvite(c context.Context, tx *xsql.Tx, inv *model.Invite) (affected int64, err error)
- func (d *Dao) UpdateInvite(c context.Context, imid int64, usedAt int64, code string) (affected int64, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
Dao struct answer history of Dao
func (*Dao) CurrentCount ¶
func (d *Dao) CurrentCount(c context.Context, mid int64, start, end time.Time) (res int64, err error)
CurrentCount current count
func (*Dao) DelApplyFlagCache ¶
DelApplyFlagCache del apply Flag Cache
func (*Dao) DelBuyFlagCache ¶
DelBuyFlagCache del buy flag cache
func (*Dao) SetApplyFlagCache ¶
SetApplyFlagCache set apply flag cache
func (*Dao) SetBuyFlagCache ¶
SetBuyFlagCache set buy flag cache
Click to show internal directories.
Click to hide internal directories.