Documentation ¶
Index ¶
- type GetInfoByIdLogic
- type GetInfoListLogic
- type RelationCommonLogic
- func (l *RelationCommonLogic) LoadIdsAndStore(userId, isFollow int64, key string) []redis.Z
- func (l *RelationCommonLogic) LoadIdsFromMongo(id, isFollow int64) (*model.UserRelation, error)
- func (l *RelationCommonLogic) StoreRelatedUsers2Redis(relatedUsers model.RelatedUsers, key string) ([]redis.Z, error)
- type UpdateWorkCntLogic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetInfoByIdLogic ¶
func NewGetInfoByIdLogic ¶
func NewGetInfoByIdLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetInfoByIdLogic
func (*GetInfoByIdLogic) GetInfoById ¶
func (l *GetInfoByIdLogic) GetInfoById(in *__.GetInfoByIdReq) (*__.GetInfoByIdResp, error)
type GetInfoListLogic ¶
func NewGetInfoListLogic ¶
func NewGetInfoListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetInfoListLogic
func (*GetInfoListLogic) GetInfoList ¶
func (l *GetInfoListLogic) GetInfoList(in *__.GetInfoListReq) (*__.GetInfoListResp, error)
type RelationCommonLogic ¶
func NewRelationCommonLogic ¶
func NewRelationCommonLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RelationCommonLogic
func (*RelationCommonLogic) LoadIdsAndStore ¶
func (l *RelationCommonLogic) LoadIdsAndStore(userId, isFollow int64, key string) []redis.Z
func (*RelationCommonLogic) LoadIdsFromMongo ¶
func (l *RelationCommonLogic) LoadIdsFromMongo(id, isFollow int64) (*model.UserRelation, error)
LoadIdsFromMongo 从 mongo 中取 follows 或 fans 字段
func (*RelationCommonLogic) StoreRelatedUsers2Redis ¶
func (l *RelationCommonLogic) StoreRelatedUsers2Redis(relatedUsers model.RelatedUsers, key string) ([]redis.Z, error)
type UpdateWorkCntLogic ¶
func NewUpdateWorkCntLogic ¶
func NewUpdateWorkCntLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateWorkCntLogic
func (*UpdateWorkCntLogic) UpdateWorkCnt ¶
func (l *UpdateWorkCntLogic) UpdateWorkCnt(in *__.UpdateWorkCntReq) (*__.CodeResp, error)
Click to show internal directories.
Click to hide internal directories.