Documentation ¶
Index ¶
- Constants
- Variables
- type Dao
- func (d *Dao) Close()
- func (d *Dao) GetActivities(c context.Context) (res []*model.Activity, err error)
- func (d *Dao) GetCategories(c context.Context) (err error)
- func (d *Dao) GetInfo(c context.Context, mid int64) (res *accApi.InfoReply, err error)
- func (d *Dao) GetInfos(c context.Context, mids []int64) (res *accApi.InfosReply, err error)
- func (d *Dao) GetRecommendUpList(c context.Context) error
- func (d *Dao) GetRelations(c context.Context, mid int64, fids []int64) (res map[int64]*model.Relation, err error)
- func (d *Dao) GetVideoUp(c context.Context, aid int64) (videoUpArchive *model.VideoUpArchive, err error)
- func (d *Dao) Ping(c context.Context) (err error)
Constants ¶
View Source
const (
// ActivityTypeVideo type "videoall"
ActivityTypeVideo = "videoall"
)
const text
Variables ¶
View Source
var ( // Categories cache categories Categories map[int64]*model.Category // RecommendUpList cache recommend up list RecommendUpList map[int64]map[int64]*model.RecommendUp )
Functions ¶
This section is empty.
Types ¶
type Dao ¶
type Dao struct {
// contains filtered or unexported fields
}
Dao def dao struct
func (*Dao) GetActivities ¶
GetActivities get activities
func (*Dao) GetCategories ¶
GetCategories get categories
func (*Dao) GetRecommendUpList ¶
GetRecommendUpList get recommend up list
func (*Dao) GetRelations ¶
func (d *Dao) GetRelations(c context.Context, mid int64, fids []int64) (res map[int64]*model.Relation, err error)
GetRelations get relations
func (*Dao) GetVideoUp ¶
func (d *Dao) GetVideoUp(c context.Context, aid int64) (videoUpArchive *model.VideoUpArchive, err error)
GetVideoUp get video up
Click to show internal directories.
Click to hide internal directories.