Documentation ¶
Index ¶
- type Dao
- func (d *Dao) Arcs(c context.Context, id int64, limit int) (res []*mdlesp.Arc, err error)
- func (d *Dao) Batch(list []int64, msg string, contest *mdlesp.Contest, batchSize int, ...)
- func (d *Dao) Close()
- func (d *Dao) Contests(c context.Context, stime, etime int64) (res []*mdlesp.Contest, err error)
- func (d *Dao) NoticeUser(mids []int64, body string, contest *mdlesp.Contest) (err error)
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) SendMessage(mids []int64, msg string, contest *mdlesp.Contest) (err error)
- func (d *Dao) Teams(c context.Context, homeID, awayID int64) (res []*mdlesp.Team, err error)
- func (d *Dao) UpArcScore(c context.Context, partArcs []*mdlesp.Arc, arcs map[int64]*arcmdl.Arc) (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 dao
func (*Dao) Batch ¶
func (d *Dao) Batch(list []int64, msg string, contest *mdlesp.Contest, batchSize int, f func(users []int64, msg string, contest *mdlesp.Contest) error)
Batch 批量处理
func (*Dao) NoticeUser ¶
NoticeUser pushs the notification to users.
func (*Dao) SendMessage ¶
SendMessage send system notify.
Click to show internal directories.
Click to hide internal directories.