Documentation ¶
Index ¶
- type Dao
- func (d *Dao) AddQs(c context.Context, qs *model.LabourQs) (err error)
- func (d *Dao) BeFormal(c context.Context, mid int64, ip string) (err error)
- func (d *Dao) Board(h int) (r *image.Gray)
- func (d *Dao) ByID(c context.Context, id int64) (que *model.LabourQs, err error)
- func (d *Dao) Close()
- func (d *Dao) Context(r *image.Gray, fileStr string) (c *freetype.Context)
- func (d *Dao) DrawAns(c *freetype.Context, conf *TextImgConf, anss [2]string, pt *fixed.Point26_6)
- func (d *Dao) DrawQue(c *freetype.Context, s string, conf *TextImgConf, pt *fixed.Point26_6)
- func (d *Dao) Height(c *TextImgConf, que string, anslen int) (h int)
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) QidsExtraByState(c context.Context, size int) (res []*model.LabourQs, err error)
- func (d *Dao) QueConf(mobile bool) (c *TextImgConf)
- func (d *Dao) UpdateQs(c context.Context, que *model.LabourQs) (err error)
- func (d *Dao) UpdateState(c context.Context, que *model.LabourQs) (err error)
- func (d *Dao) Upload(c context.Context, fileType string, filename string, body io.Reader) (location string, err error)
- type TextImgConf
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 event dao def.
func (*Dao) Height ¶
func (d *Dao) Height(c *TextImgConf, que string, anslen int) (h int)
Height get img height
func (*Dao) QidsExtraByState ¶
QidsExtraByState get extra question ids by check
func (*Dao) QueConf ¶
func (d *Dao) QueConf(mobile bool) (c *TextImgConf)
QueConf question img conf.
func (*Dao) UpdateState ¶
UpdateState update state.
Click to show internal directories.
Click to hide internal directories.