Documentation ¶
Index ¶
- type Dao
- func (d *Dao) AddFeedBack(c context.Context, f *academy.FeedBack, mid int64) (id int64, err error)
- func (d *Dao) Archive(c context.Context, oid int64, bs int) (a *academy.Archive, err error)
- func (d *Dao) ArchiveCount(c context.Context, tids []int64, bs int) (count int, err error)
- func (d *Dao) ArchiveTagsByOids(c context.Context, oids []int64) (res map[int64][]int64, err error)
- func (d *Dao) ArchivesWithES(c context.Context, aca *academy.EsParam) (res *academy.SearchResult, err error)
- func (d *Dao) Close() (err error)
- func (d *Dao) Keywords(c context.Context) (res []*academy.SearchKeywords, err error)
- func (d *Dao) LinkTags(c context.Context, ids []int64) (res []*academy.LinkTag, err error)
- func (d *Dao) Occupations(c context.Context) (res []*academy.Occupation, err error)
- func (d *Dao) Ping(c context.Context) (err error)
- func (d *Dao) Play(c context.Context, p *academy.Play) (res *academy.Play, err error)
- func (d *Dao) PlayAdd(c context.Context, p *academy.Play) (id int64, err error)
- func (d *Dao) PlayCount(c context.Context, mid int64) (count int, err error)
- func (d *Dao) PlayDel(c context.Context, p *academy.Play) (id int64, err error)
- func (d *Dao) Plays(c context.Context, mid int64, offset, limit int) (res []*academy.Play, err error)
- func (d *Dao) SearchArchive(c context.Context, tidsMap map[int][]int64, bs int) (res []*academy.Archive, err error)
- func (d *Dao) SkillArcCount(c context.Context, pids, skids, sids []int64) (count int, err error)
- func (d *Dao) SkillArcs(c context.Context, pids, skids, sids []int64, offset, limit int) (res []*academy.SkillArc, err error)
- func (d *Dao) Skills(c context.Context) (res []*academy.Skill, err error)
- func (d *Dao) Tag(c context.Context, id int64) (t *academy.Tag, err error)
- func (d *Dao) TagList(c context.Context) (res map[string][]*academy.Tag, tagMap, parentChildMap map[int64]*academy.Tag, ...)
- func (d *Dao) Tags(c context.Context, ids []int64) (res []*academy.Tag, 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 define
func (*Dao) AddFeedBack ¶
AddFeedBack add academy_feedback.
func (*Dao) ArchiveCount ¶
ArchiveCount get all achive count.
func (*Dao) ArchiveTagsByOids ¶
ArchiveTagsByOids get all tids by oids.
func (*Dao) ArchivesWithES ¶
func (d *Dao) ArchivesWithES(c context.Context, aca *academy.EsParam) (res *academy.SearchResult, err error)
ArchivesWithES search archives by es.
func (*Dao) Occupations ¶
Occupations get all occupation.
func (*Dao) Plays ¶
func (d *Dao) Plays(c context.Context, mid int64, offset, limit int) (res []*academy.Play, err error)
Plays get all play by mid.
func (*Dao) SearchArchive ¶
func (d *Dao) SearchArchive(c context.Context, tidsMap map[int][]int64, bs int) (res []*academy.Archive, err error)
SearchArchive get all oid & tid.
func (*Dao) SkillArcCount ¶
SkillArcCount get all skill achive count.
func (*Dao) SkillArcs ¶
func (d *Dao) SkillArcs(c context.Context, pids, skids, sids []int64, offset, limit int) (res []*academy.SkillArc, err error)
SkillArcs get all SkillArc.
Click to show internal directories.
Click to hide internal directories.