service

package
v1.2.34 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: GPL-2.0 Imports: 24 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
}

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 IIncentiveService added in v1.2.34

type IIncentiveService interface {
	GetMission(ctx context.Context, req *content.GetMissionReq) (*content.GetMissionResp, error)
	CheckIn(ctx context.Context, req *content.CheckInReq) (*content.CheckInResp, error)
}

type ImageService

type ImageService struct {
	ImageModel imagemapper.IMongoMapper
}

func (*ImageService) CreateImage

func (*ImageService) DeleteImage

func (*ImageService) ListImage

type IncentiveService added in v1.2.34

type IncentiveService struct {
	Config *config.Config
	Redis  *redis.Redis
}

func (*IncentiveService) CheckIn added in v1.2.34

func (*IncentiveService) GetMission added in v1.2.34

func (*IncentiveService) GetTimes added in v1.2.34

func (s *IncentiveService) GetTimes(ctx context.Context, reqTime string, reqDate string, userId string) (int64, error)

type MomentService

type MomentService struct {
	Config            *config.Config
	MomentMongoMapper moment.IMongoMapper
	MomentEsMapper    moment.IEsMapper
	ImageMapper       image.IMongoMapper
	Redis             *redis.Redis
}

func (*MomentService) CountMoment

func (*MomentService) CreateMoment

func (*MomentService) DeleteMoment

func (*MomentService) ListMoment

func (*MomentService) RetrieveMoment

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
}

func (*PlanService) AddUserFish added in v1.2.7

func (*PlanService) CountDonateByPlan added in v1.2.21

func (*PlanService) CountDonateByUser added in v1.2.21

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) ListDonateByUser added in v1.2.21

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
}

func (*PostService) CountPost

func (*PostService) CreatePost

func (*PostService) DeletePost

func (*PostService) ListPost

func (*PostService) RetrievePost

func (*PostService) SetOfficial

func (*PostService) UpdatePost

Jump to

Keyboard shortcuts

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