Documentation ¶
Index ¶
- Variables
- type CatService
- func (s *CatService) CreateCat(ctx context.Context, req *content.CreateCatReq) (res *content.CreateCatResp, err error)
- func (s *CatService) DeleteCat(ctx context.Context, req *content.DeleteCatReq) (res *content.DeleteCatResp, err error)
- func (s *CatService) ListCat(ctx context.Context, req *content.ListCatReq) (res *content.ListCatResp, err error)
- func (s *CatService) RetrieveCat(ctx context.Context, req *content.RetrieveCatReq) (res *content.RetrieveCatResp, err error)
- func (s *CatService) SearchCat(ctx context.Context, req *content.SearchCatReq) (res *content.SearchCatResp, err error)
- func (s *CatService) UpdateCat(ctx context.Context, req *content.UpdateCatReq) (res *content.UpdateCatResp, err error)
- type ICatService
- type IImageService
- type IMomentService
- type IPlanService
- type IPostService
- type ImageService
- func (s *ImageService) CreateImage(ctx context.Context, req *content.CreateImageReq) (*content.CreateImageResp, error)
- func (s *ImageService) DeleteImage(ctx context.Context, req *content.DeleteImageReq) (*content.DeleteImageResp, error)
- func (s *ImageService) ListImage(ctx context.Context, req *content.ListImageReq) (*content.ListImageResp, error)
- type MomentService
- func (s *MomentService) CountMoment(ctx context.Context, req *content.CountMomentReq) (*content.CountMomentResp, error)
- func (s *MomentService) CreateMoment(ctx context.Context, req *content.CreateMomentReq) (*content.CreateMomentResp, error)
- func (s *MomentService) DeleteMoment(ctx context.Context, req *content.DeleteMomentReq) (*content.DeleteMomentResp, error)
- func (s *MomentService) ListMoment(ctx context.Context, req *content.ListMomentReq) (*content.ListMomentResp, error)
- func (s *MomentService) RetrieveMoment(ctx context.Context, req *content.RetrieveMomentReq) (*content.RetrieveMomentResp, error)
- func (s *MomentService) SendDelayMessage(message interface{})
- func (s *MomentService) UpdateMoment(ctx context.Context, req *content.UpdateMomentReq) (*content.UpdateMomentResp, error)
- type PlanService
- func (s *PlanService) AddUserFish(ctx context.Context, req *content.AddUserFishReq) (*content.AddUserFishResp, error)
- func (s *PlanService) CountPlan(ctx context.Context, req *content.CountPlanReq) (*content.CountPlanResp, error)
- func (s *PlanService) CreatePlan(ctx context.Context, req *content.CreatePlanReq) (*content.CreatePlanResp, error)
- func (s *PlanService) DeletePlan(ctx context.Context, req *content.DeletePlanReq) (*content.DeletePlanResp, error)
- func (s *PlanService) DonateFish(ctx context.Context, req *content.DonateFishReq) (*content.DonateFishResp, error)
- func (s *PlanService) ListFishByPlan(ctx context.Context, req *content.ListFishByPlanReq) (*content.ListFishByPlanResp, error)
- func (s *PlanService) ListPlan(ctx context.Context, req *content.ListPlanReq) (*content.ListPlanResp, error)
- func (s *PlanService) RetrievePlan(ctx context.Context, req *content.RetrievePlanReq) (*content.RetrievePlanResp, error)
- func (s *PlanService) RetrieveUserFish(ctx context.Context, req *content.RetrieveUserFishReq) (*content.RetrieveUserFishResp, error)
- func (s *PlanService) UpdatePlan(ctx context.Context, req *content.UpdatePlanReq) (*content.UpdatePlanResp, error)
- type PostService
- func (s *PostService) CountPost(ctx context.Context, req *content.CountPostReq) (*content.CountPostResp, error)
- func (s *PostService) CreatePost(ctx context.Context, req *content.CreatePostReq) (*content.CreatePostResp, error)
- func (s *PostService) DeletePost(ctx context.Context, req *content.DeletePostReq) (*content.DeletePostResp, error)
- func (s *PostService) ListPost(ctx context.Context, req *content.ListPostReq) (*content.ListPostResp, error)
- func (s *PostService) RetrievePost(ctx context.Context, req *content.RetrievePostReq) (*content.RetrievePostResp, error)
- func (s *PostService) SendDelayMessage(message interface{})
- func (s *PostService) SetOfficial(ctx context.Context, req *content.SetOfficialReq) (*content.SetOfficialResp, error)
- func (s *PostService) UpdatePost(ctx context.Context, req *content.UpdatePostReq) (*content.UpdatePostResp, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var CatSet = wire.NewSet( wire.Struct(new(CatService), "*"), wire.Bind(new(ICatService), new(*CatService)), )
View Source
var ImageSet = wire.NewSet( wire.Struct(new(ImageService), "*"), wire.Bind(new(IImageService), new(*ImageService)), )
View Source
var MomentSet = wire.NewSet( wire.Struct(new(MomentService), "*"), wire.Bind(new(IMomentService), new(*MomentService)), )
View Source
var PlanSet = wire.NewSet( wire.Struct(new(PlanService), "*"), wire.Bind(new(IPlanService), new(*PlanService)), )
View Source
var PostSet = wire.NewSet( wire.Struct(new(PostService), "*"), wire.Bind(new(IPostService), new(*PostService)), )
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 IMomentService ¶
type IMomentService interface { ListMoment(ctx context.Context, req *content.ListMomentReq) (*content.ListMomentResp, error) CountMoment(ctx context.Context, req *content.CountMomentReq) (*content.CountMomentResp, error) RetrieveMoment(ctx context.Context, req *content.RetrieveMomentReq) (*content.RetrieveMomentResp, error) CreateMoment(ctx context.Context, req *content.CreateMomentReq) (*content.CreateMomentResp, error) UpdateMoment(ctx context.Context, req *content.UpdateMomentReq) (*content.UpdateMomentResp, error) DeleteMoment(ctx context.Context, req *content.DeleteMomentReq) (*content.DeleteMomentResp, error) }
type IPlanService ¶ added in v1.2.6
type IPlanService interface { ListPlan(ctx context.Context, req *content.ListPlanReq) (*content.ListPlanResp, error) CountPlan(ctx context.Context, req *content.CountPlanReq) (*content.CountPlanResp, error) RetrievePlan(ctx context.Context, req *content.RetrievePlanReq) (*content.RetrievePlanResp, error) CreatePlan(ctx context.Context, req *content.CreatePlanReq) (*content.CreatePlanResp, error) UpdatePlan(ctx context.Context, req *content.UpdatePlanReq) (*content.UpdatePlanResp, error) DeletePlan(ctx context.Context, req *content.DeletePlanReq) (*content.DeletePlanResp, error) DonateFish(ctx context.Context, req *content.DonateFishReq) (*content.DonateFishResp, error) AddUserFish(ctx context.Context, req *content.AddUserFishReq) (*content.AddUserFishResp, error) ListFishByPlan(ctx context.Context, req *content.ListFishByPlanReq) (*content.ListFishByPlanResp, error) RetrieveUserFish(ctx context.Context, req *content.RetrieveUserFishReq) (*content.RetrieveUserFishResp, error) }
type IPostService ¶
type IPostService interface { CreatePost(ctx context.Context, req *content.CreatePostReq) (*content.CreatePostResp, error) RetrievePost(ctx context.Context, req *content.RetrievePostReq) (*content.RetrievePostResp, error) UpdatePost(ctx context.Context, req *content.UpdatePostReq) (*content.UpdatePostResp, error) DeletePost(ctx context.Context, req *content.DeletePostReq) (*content.DeletePostResp, error) ListPost(ctx context.Context, req *content.ListPostReq) (*content.ListPostResp, error) CountPost(ctx context.Context, req *content.CountPostReq) (*content.CountPostResp, error) SetOfficial(ctx context.Context, req *content.SetOfficialReq) (*content.SetOfficialResp, error) }
type ImageService ¶
type ImageService struct { ImageModel imagemapper.IMongoMapper MqProducer rocketmq.Producer }
func (*ImageService) CreateImage ¶
func (s *ImageService) CreateImage(ctx context.Context, req *content.CreateImageReq) (*content.CreateImageResp, error)
func (*ImageService) DeleteImage ¶
func (s *ImageService) DeleteImage(ctx context.Context, req *content.DeleteImageReq) (*content.DeleteImageResp, error)
func (*ImageService) ListImage ¶
func (s *ImageService) ListImage(ctx context.Context, req *content.ListImageReq) (*content.ListImageResp, error)
type MomentService ¶
type MomentService struct { Config *config.Config MomentMongoMapper moment.IMongoMapper MomentEsMapper moment.IEsMapper Redis *redis.Redis MqProducer rocketmq.Producer }
func (*MomentService) CountMoment ¶
func (s *MomentService) CountMoment(ctx context.Context, req *content.CountMomentReq) (*content.CountMomentResp, error)
func (*MomentService) CreateMoment ¶
func (s *MomentService) CreateMoment(ctx context.Context, req *content.CreateMomentReq) (*content.CreateMomentResp, error)
func (*MomentService) DeleteMoment ¶
func (s *MomentService) DeleteMoment(ctx context.Context, req *content.DeleteMomentReq) (*content.DeleteMomentResp, error)
func (*MomentService) ListMoment ¶
func (s *MomentService) ListMoment(ctx context.Context, req *content.ListMomentReq) (*content.ListMomentResp, error)
func (*MomentService) RetrieveMoment ¶
func (s *MomentService) RetrieveMoment(ctx context.Context, req *content.RetrieveMomentReq) (*content.RetrieveMomentResp, error)
func (*MomentService) SendDelayMessage ¶ added in v1.2.9
func (s *MomentService) SendDelayMessage(message interface{})
func (*MomentService) UpdateMoment ¶
func (s *MomentService) UpdateMoment(ctx context.Context, req *content.UpdateMomentReq) (*content.UpdateMomentResp, error)
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 (s *PlanService) AddUserFish(ctx context.Context, req *content.AddUserFishReq) (*content.AddUserFishResp, error)
func (*PlanService) CountPlan ¶ added in v1.2.6
func (s *PlanService) CountPlan(ctx context.Context, req *content.CountPlanReq) (*content.CountPlanResp, error)
func (*PlanService) CreatePlan ¶ added in v1.2.6
func (s *PlanService) CreatePlan(ctx context.Context, req *content.CreatePlanReq) (*content.CreatePlanResp, error)
func (*PlanService) DeletePlan ¶ added in v1.2.6
func (s *PlanService) DeletePlan(ctx context.Context, req *content.DeletePlanReq) (*content.DeletePlanResp, error)
func (*PlanService) DonateFish ¶ added in v1.2.7
func (s *PlanService) DonateFish(ctx context.Context, req *content.DonateFishReq) (*content.DonateFishResp, error)
func (*PlanService) ListFishByPlan ¶ added in v1.2.7
func (s *PlanService) ListFishByPlan(ctx context.Context, req *content.ListFishByPlanReq) (*content.ListFishByPlanResp, error)
func (*PlanService) ListPlan ¶ added in v1.2.6
func (s *PlanService) ListPlan(ctx context.Context, req *content.ListPlanReq) (*content.ListPlanResp, error)
func (*PlanService) RetrievePlan ¶ added in v1.2.6
func (s *PlanService) RetrievePlan(ctx context.Context, req *content.RetrievePlanReq) (*content.RetrievePlanResp, error)
func (*PlanService) RetrieveUserFish ¶ added in v1.2.7
func (s *PlanService) RetrieveUserFish(ctx context.Context, req *content.RetrieveUserFishReq) (*content.RetrieveUserFishResp, error)
func (*PlanService) UpdatePlan ¶ added in v1.2.6
func (s *PlanService) UpdatePlan(ctx context.Context, req *content.UpdatePlanReq) (*content.UpdatePlanResp, error)
type PostService ¶
type PostService struct { Config *config.Config PostMongoMapper post.IMongoMapper PostEsMapper post.IEsMapper Redis *redis.Redis MqProducer rocketmq.Producer }
func (*PostService) CountPost ¶
func (s *PostService) CountPost(ctx context.Context, req *content.CountPostReq) (*content.CountPostResp, error)
func (*PostService) CreatePost ¶
func (s *PostService) CreatePost(ctx context.Context, req *content.CreatePostReq) (*content.CreatePostResp, error)
func (*PostService) DeletePost ¶
func (s *PostService) DeletePost(ctx context.Context, req *content.DeletePostReq) (*content.DeletePostResp, error)
func (*PostService) ListPost ¶
func (s *PostService) ListPost(ctx context.Context, req *content.ListPostReq) (*content.ListPostResp, error)
func (*PostService) RetrievePost ¶
func (s *PostService) RetrievePost(ctx context.Context, req *content.RetrievePostReq) (*content.RetrievePostResp, error)
func (*PostService) SendDelayMessage ¶ added in v1.2.9
func (s *PostService) SendDelayMessage(message interface{})
func (*PostService) SetOfficial ¶
func (s *PostService) SetOfficial(ctx context.Context, req *content.SetOfficialReq) (*content.SetOfficialResp, error)
func (*PostService) UpdatePost ¶
func (s *PostService) UpdatePost(ctx context.Context, req *content.UpdatePostReq) (*content.UpdatePostResp, error)
Click to show internal directories.
Click to hide internal directories.