Documentation
¶
Index ¶
- type Service
- func (s *Service) CacheTrend(c context.Context, mid int64) (res *datamodel.ViewerTrendInfo, err error)
- func (s *Service) GetFansSummary(c context.Context, arg *datamodel.GetFansSummaryArg) (result *datamodel.FansSummaryResult, err error)
- func (s *Service) GetRelationFansDay(c context.Context, arg *datamodel.GetRelationFansHistoryArg) (result *datamodel.GetRelationFansHistoryResult, err error)
- func (s *Service) GetTags(c context.Context, ids ...int64) (result map[int64]*tag.Meta)
- func (s *Service) GetUpArchiveInfo(c context.Context, arg *datamodel.GetUpArchiveInfoArg) (result *datamodel.GetUpArchiveInfoResult, err error)
- func (s *Service) GetUpArchiveTagInfo(c context.Context, arg *datamodel.GetUpArchiveTagInfoArg) (result []*datamodel.ViewerTagData, err error)
- func (s *Service) GetUpArchiveTypeInfo(c context.Context, arg *datamodel.GetUpArchiveTypeInfoArg) (result *datamodel.UpArchiveTypeData, err error)
- func (s *Service) GetUpViewInfo(c context.Context, arg *datamodel.GetUpViewInfoArg) (result *ViewData, err error)
- func (s *Service) GetViewData(c context.Context, mid int64) (result ViewData, err error)
- func (s *Service) ViewerArea(c context.Context, mid int64) (res *datamodel.ViewerAreaInfo, err error)
- func (s *Service) ViewerBase(c context.Context, mid int64) (res *datamodel.ViewerBaseInfo, err error)
- type ViewData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service data service
func (*Service) CacheTrend ¶
func (s *Service) CacheTrend(c context.Context, mid int64) (res *datamodel.ViewerTrendInfo, err error)
CacheTrend get trend from mc.
func (*Service) GetFansSummary ¶
func (s *Service) GetFansSummary(c context.Context, arg *datamodel.GetFansSummaryArg) (result *datamodel.FansSummaryResult, err error)
GetFansSummary get fan summary
func (*Service) GetRelationFansDay ¶
func (s *Service) GetRelationFansDay(c context.Context, arg *datamodel.GetRelationFansHistoryArg) (result *datamodel.GetRelationFansHistoryResult, err error)
GetRelationFansDay get fan day history
func (*Service) GetUpArchiveInfo ¶
func (s *Service) GetUpArchiveInfo(c context.Context, arg *datamodel.GetUpArchiveInfoArg) (result *datamodel.GetUpArchiveInfoResult, err error)
GetUpArchiveInfo get up archive info
func (*Service) GetUpArchiveTagInfo ¶
func (s *Service) GetUpArchiveTagInfo(c context.Context, arg *datamodel.GetUpArchiveTagInfoArg) (result []*datamodel.ViewerTagData, err error)
GetUpArchiveTagInfo get up archive tag info
func (*Service) GetUpArchiveTypeInfo ¶
func (s *Service) GetUpArchiveTypeInfo(c context.Context, arg *datamodel.GetUpArchiveTypeInfoArg) (result *datamodel.UpArchiveTypeData, err error)
GetUpArchiveTypeInfo get type info
func (*Service) GetUpViewInfo ¶
func (s *Service) GetUpViewInfo(c context.Context, arg *datamodel.GetUpViewInfoArg) (result *ViewData, err error)
GetUpViewInfo get view info by arg
func (*Service) GetViewData ¶
GetViewData get all view data
func (*Service) ViewerArea ¶
func (s *Service) ViewerArea(c context.Context, mid int64) (res *datamodel.ViewerAreaInfo, err error)
ViewerArea get up viewer area data.
func (*Service) ViewerBase ¶
func (s *Service) ViewerBase(c context.Context, mid int64) (res *datamodel.ViewerBaseInfo, err error)
ViewerBase get up viewer base data.
type ViewData ¶
type ViewData struct { Base *datamodel.ViewerBaseInfo `json:"viewer_base"` Trend *datamodel.ViewerTrendInfo `json:"viewer_trend"` Area *datamodel.ViewerAreaInfo `json:"viewer_area"` }
ViewData view data for up
Click to show internal directories.
Click to hide internal directories.