service

package
v1.2.16 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: GPL-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type CatService

type CatService struct {
	CatMongoMapper catmapper.IMongoMapper
	CatEsMapper    catmapper.IEsMapper
	MqProducer     rocketmq.Producer
}

func (*CatService) CreateCat

func (s *CatService) CreateCat(ctx context.Context, req *content.CreateCatReq) (res *content.CreateCatResp, err error)

func (*CatService) DeleteCat

func (s *CatService) DeleteCat(ctx context.Context, req *content.DeleteCatReq) (res *content.DeleteCatResp, err error)

func (*CatService) ListCat

func (s *CatService) ListCat(ctx context.Context, req *content.ListCatReq) (res *content.ListCatResp, err error)

func (*CatService) RetrieveCat

func (s *CatService) RetrieveCat(ctx context.Context, req *content.RetrieveCatReq) (res *content.RetrieveCatResp, err error)

func (*CatService) SearchCat

func (s *CatService) SearchCat(ctx context.Context, req *content.SearchCatReq) (res *content.SearchCatResp, err error)

func (*CatService) UpdateCat

func (s *CatService) UpdateCat(ctx context.Context, req *content.UpdateCatReq) (res *content.UpdateCatResp, err error)

type ICatService

type ICatService interface {
	SearchCat(ctx context.Context, req *content.SearchCatReq) (res *content.SearchCatResp, err error)
	ListCat(ctx context.Context, req *content.ListCatReq) (res *content.ListCatResp, err error)
	RetrieveCat(ctx context.Context, req *content.RetrieveCatReq) (res *content.RetrieveCatResp, err error)
	CreateCat(ctx context.Context, req *content.CreateCatReq) (res *content.CreateCatResp, err error)
	UpdateCat(ctx context.Context, req *content.UpdateCatReq) (res *content.UpdateCatResp, err error)
	DeleteCat(ctx context.Context, req *content.DeleteCatReq) (res *content.DeleteCatResp, err error)
}

type IImageService

type IImageService interface {
	CreateImage(ctx context.Context, req *content.CreateImageReq) (*content.CreateImageResp, error)
	DeleteImage(ctx context.Context, req *content.DeleteImageReq) (*content.DeleteImageResp, error)
	ListImage(ctx context.Context, req *content.ListImageReq) (*content.ListImageResp, error)
}

type ImageService

type ImageService struct {
	ImageModel imagemapper.IMongoMapper
	MqProducer rocketmq.Producer
}

func (*ImageService) CreateImage

func (*ImageService) DeleteImage

func (*ImageService) ListImage

type MomentService

type MomentService struct {
	Config            *config.Config
	MomentMongoMapper moment.IMongoMapper
	MomentEsMapper    moment.IEsMapper
	Redis             *redis.Redis
	MqProducer        rocketmq.Producer
}

func (*MomentService) CountMoment

func (*MomentService) CreateMoment

func (*MomentService) DeleteMoment

func (*MomentService) ListMoment

func (*MomentService) RetrieveMoment

func (*MomentService) SendDelayMessage added in v1.2.9

func (s *MomentService) SendDelayMessage(message interface{})

func (*MomentService) UpdateMoment

type PlanService added in v1.2.6

type PlanService struct {
	PlanMongoMapper   plan.IMongoMapper
	PlanEsMapper      plan.IEsMapper
	DonateMongoMapper donate.IMongoMapper
	FishMongoMapper   fish.IMongoMapper
	MqProducer        rocketmq.Producer
}

func (*PlanService) AddUserFish added in v1.2.7

func (*PlanService) CountPlan added in v1.2.6

func (*PlanService) CreatePlan added in v1.2.6

func (*PlanService) DeletePlan added in v1.2.6

func (*PlanService) DonateFish added in v1.2.7

func (*PlanService) ListFishByPlan added in v1.2.7

func (*PlanService) ListPlan added in v1.2.6

func (*PlanService) RetrievePlan added in v1.2.6

func (*PlanService) RetrieveUserFish added in v1.2.7

func (*PlanService) UpdatePlan added in v1.2.6

type PostService

type PostService struct {
	Config          *config.Config
	PostMongoMapper post.IMongoMapper
	PostEsMapper    post.IEsMapper
	Redis           *redis.Redis
	MqProducer      rocketmq.Producer
}

func (*PostService) CountPost

func (*PostService) CreatePost

func (*PostService) DeletePost

func (*PostService) ListPost

func (*PostService) RetrievePost

func (*PostService) SendDelayMessage added in v1.2.9

func (s *PostService) SendDelayMessage(message interface{})

func (*PostService) SetOfficial

func (*PostService) UpdatePost

Jump to

Keyboard shortcuts

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