Documentation ¶
Index ¶
- type Dao
- func (d *Dao) AllQS(c context.Context) (res []*model.QuestionDB, err error)
- func (d *Dao) BaseQS(c context.Context) (res []*model.QuestionDB, err error)
- func (d *Dao) Board(h int) (r *image.Gray)
- func (d *Dao) ByIDs(c context.Context, IDs []int64) (res []*model.QuestionDB, 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 [4]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) HistoryCount(c context.Context, arg *model.ArgHistory) (res int64, err error)
- func (d *Dao) HistoryES(c context.Context, arg *model.ArgHistory) (reply []*model.AnswerHistoryDB, err error)
- func (d *Dao) IDsByState(c context.Context) (res []int64, err error)
- func (d *Dao) InsBaseQs(c context.Context, qs *model.QuestionDB) (lastID int64, err error)
- func (d *Dao) QueByID(c context.Context, id int64) (res *model.Question, err error)
- func (d *Dao) QueConf(mobile bool) (c *TextImgConf)
- func (d *Dao) QueHistory(c context.Context, arg *model.ArgHistory) (res []*model.AnswerHistoryDB, err error)
- func (d *Dao) QuestionAdd(c context.Context, q *model.QuestionDB) (aff int64, err error)
- func (d *Dao) QuestionCount(c context.Context, arg *model.ArgQue) (res int64, err error)
- func (d *Dao) QuestionEdit(c context.Context, arg *model.QuestionDB) (aff int64, err error)
- func (d *Dao) QuestionList(c context.Context, arg *model.ArgQue) (res []*model.QuestionDB, err error)
- func (d *Dao) SetQidCache(c context.Context, id int64) (err error)
- func (d *Dao) TypeSave(c context.Context, t *model.TypeInfo) (aff int64, err error)
- func (d *Dao) Types(c context.Context) (res []*model.TypeInfo, err error)
- func (d *Dao) UpdateStatus(c context.Context, state int8, qid int64, operator string) (aff int64, err error)
- type Page
- type SearchSubjectLog
- 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 struct info of Dao.
func (*Dao) Height ¶
func (d *Dao) Height(c *TextImgConf, que string, anslen int) (h int)
Height get img height
func (*Dao) HistoryCount ¶
HistoryCount .
func (*Dao) HistoryES ¶
func (d *Dao) HistoryES(c context.Context, arg *model.ArgHistory) (reply []*model.AnswerHistoryDB, err error)
HistoryES search archives by es.
func (*Dao) IDsByState ¶
IDsByState by id.
func (*Dao) QueConf ¶
func (d *Dao) QueConf(mobile bool) (c *TextImgConf)
QueConf question img conf.
func (*Dao) QueHistory ¶
func (d *Dao) QueHistory(c context.Context, arg *model.ArgHistory) (res []*model.AnswerHistoryDB, err error)
QueHistory .
func (*Dao) QuestionAdd ¶
QuestionAdd add register question.
func (*Dao) QuestionCount ¶
QuestionCount question page total count.
func (*Dao) QuestionEdit ¶
QuestionEdit edit register question.
func (*Dao) QuestionList ¶
func (d *Dao) QuestionList(c context.Context, arg *model.ArgQue) (res []*model.QuestionDB, err error)
QuestionList .
func (*Dao) SetQidCache ¶
SetQidCache set question id into question set
Click to show internal directories.
Click to hide internal directories.