logic

package
v0.0.0-...-bdd2a71 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetInfoByIdLogic

type GetInfoByIdLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetInfoByIdLogic

func NewGetInfoByIdLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetInfoByIdLogic

func (*GetInfoByIdLogic) GetInfoById

func (l *GetInfoByIdLogic) GetInfoById(in *__.GetInfoByIdReq) (*__.GetInfoByIdResp, error)

type GetInfoListLogic

type GetInfoListLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetInfoListLogic

func NewGetInfoListLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetInfoListLogic

func (*GetInfoListLogic) GetInfoList

func (l *GetInfoListLogic) GetInfoList(in *__.GetInfoListReq) (*__.GetInfoListResp, error)

type RelationCommonLogic

type RelationCommonLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

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

type UpdateWorkCntLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewUpdateWorkCntLogic

func NewUpdateWorkCntLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateWorkCntLogic

func (*UpdateWorkCntLogic) UpdateWorkCnt

func (l *UpdateWorkCntLogic) UpdateWorkCnt(in *__.UpdateWorkCntReq) (*__.CodeResp, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL