Documentation ¶
Index ¶
- Variables
- type CouponService
- func (s *CouponService) CreateCoupon(ctx context.Context, req *gencontent.CreateCouponReq) (resp *gencontent.CreateCouponResp, err error)
- func (s *CouponService) DeleteCoupon(ctx context.Context, req *gencontent.DeleteCouponReq) (resp *gencontent.DeleteCouponResp, err error)
- func (s *CouponService) GetCoupon(ctx context.Context, req *gencontent.GetCouponReq) (resp *gencontent.GetCouponResp, err error)
- func (s *CouponService) GetCoupons(ctx context.Context, req *gencontent.GetCouponsReq) (resp *gencontent.GetCouponsResp, err error)
- func (s *CouponService) UpdateCoupon(ctx context.Context, req *gencontent.UpdateCouponReq) (resp *gencontent.UpdateCouponResp, err error)
- type FileService
- func (s *FileService) AddFileToPublicSpace(ctx context.Context, req *gencontent.AddFileToPublicSpaceReq) (resp *gencontent.AddFileToPublicSpaceResp, err error)
- func (s *FileService) CheckShareFile(ctx context.Context, req *gencontent.CheckShareFileReq) (resp *gencontent.CheckShareFileResp, err error)
- func (s *FileService) CompletelyRemoveFile(ctx context.Context, req *gencontent.CompletelyRemoveFileReq) (resp *gencontent.CompletelyRemoveFileResp, err error)
- func (s *FileService) CreateFile(ctx context.Context, req *gencontent.CreateFileReq) (resp *gencontent.CreateFileResp, err error)
- func (s *FileService) CreateShareCode(ctx context.Context, req *gencontent.CreateShareCodeReq) (resp *gencontent.CreateShareCodeResp, err error)
- func (s *FileService) DeleteFile(ctx context.Context, req *gencontent.DeleteFileReq) (resp *gencontent.DeleteFileResp, err error)
- func (s *FileService) DeleteShareCode(ctx context.Context, req *gencontent.DeleteShareCodeReq) (resp *gencontent.DeleteShareCodeResp, err error)
- func (s *FileService) GetFile(ctx context.Context, req *gencontent.GetFileReq) (resp *gencontent.GetFileResp, err error)
- func (s *FileService) GetFileBySharingCode(ctx context.Context, req *gencontent.GetFileBySharingCodeReq) (resp *gencontent.GetFileBySharingCodeResp, err error)
- func (s *FileService) GetFileIsExist(ctx context.Context, req *gencontent.GetFileIsExistReq) (resp *gencontent.GetFileIsExistResp, err error)
- func (s *FileService) GetFileList(ctx context.Context, req *gencontent.GetFileListReq) (resp *gencontent.GetFileListResp, err error)
- func (s *FileService) GetFilesByIds(ctx context.Context, req *gencontent.GetFilesByIdsReq) (resp *gencontent.GetFilesByIdsResp, err error)
- func (s *FileService) GetFolderSize(ctx context.Context, path string) (resp int64, err error)
- func (s *FileService) GetRecycleBinFiles(ctx context.Context, req *gencontent.GetRecycleBinFilesReq) (resp *gencontent.GetRecycleBinFilesResp, err error)
- func (s *FileService) GetShareList(ctx context.Context, req *gencontent.GetShareListReq) (resp *gencontent.GetShareListResp, err error)
- func (s *FileService) MoveFile(ctx context.Context, req *gencontent.MoveFileReq) (resp *gencontent.MoveFileResp, err error)
- func (s *FileService) ParsingShareCode(ctx context.Context, req *gencontent.ParsingShareCodeReq) (resp *gencontent.ParsingShareCodeResp, err error)
- func (s *FileService) RecoverRecycleBinFile(ctx context.Context, req *gencontent.RecoverRecycleBinFileReq) (resp *gencontent.RecoverRecycleBinFileResp, err error)
- func (s *FileService) SaveFileToPrivateSpace(ctx context.Context, req *gencontent.SaveFileToPrivateSpaceReq) (resp *gencontent.SaveFileToPrivateSpaceResp, err error)
- func (s *FileService) UpdateFile(ctx context.Context, req *gencontent.UpdateFileReq) (resp *gencontent.UpdateFileResp, err error)
- func (s *FileService) UpdateShareCode(ctx context.Context, req *gencontent.UpdateShareCodeReq) (resp *gencontent.UpdateShareCodeResp, err error)
- type ICouponService
- type IFileService
- type IOrderService
- type IPostService
- type IProductService
- type IRecommendService
- type IUserService
- type IZoneService
- type OrderService
- func (s *OrderService) CreateOrder(ctx context.Context, req *gencontent.CreateOrderReq) (resp *gencontent.CreateOrderResp, err error)
- func (s *OrderService) DeleteOrder(ctx context.Context, req *gencontent.DeleteOrderReq) (resp *gencontent.DeleteOrderResp, err error)
- func (s *OrderService) GetOrder(ctx context.Context, req *gencontent.GetOrderReq) (resp *gencontent.GetOrderResp, err error)
- func (s *OrderService) GetOrders(ctx context.Context, req *gencontent.GetOrdersReq) (resp *gencontent.GetOrdersResp, err error)
- func (s *OrderService) UpdateOrder(ctx context.Context, req *gencontent.UpdateOrderReq) (resp *gencontent.UpdateOrderResp, err error)
- type PostService
- func (s *PostService) CreatePost(ctx context.Context, req *gencontent.CreatePostReq) (resp *gencontent.CreatePostResp, err error)
- func (s *PostService) DeletePost(ctx context.Context, req *gencontent.DeletePostReq) (resp *gencontent.DeletePostResp, err error)
- func (s *PostService) GetPost(ctx context.Context, req *gencontent.GetPostReq) (resp *gencontent.GetPostResp, err error)
- func (s *PostService) GetPosts(ctx context.Context, req *gencontent.GetPostsReq) (resp *gencontent.GetPostsResp, err error)
- func (s *PostService) GetPostsByPostIds(ctx context.Context, req *gencontent.GetPostsByPostIdsReq) (resp *gencontent.GetPostsByPostIdsResp, err error)
- func (s *PostService) UpdatePost(ctx context.Context, req *gencontent.UpdatePostReq) (resp *gencontent.UpdatePostResp, err error)
- type ProductService
- func (s *ProductService) CreateProduct(ctx context.Context, req *gencontent.CreateProductReq) (resp *gencontent.CreateProductResp, err error)
- func (s *ProductService) DeleteProduct(ctx context.Context, req *gencontent.DeleteProductReq) (resp *gencontent.DeleteProductResp, err error)
- func (s *ProductService) GetProduct(ctx context.Context, req *gencontent.GetProductReq) (resp *gencontent.GetProductResp, err error)
- func (s *ProductService) GetProducts(ctx context.Context, req *gencontent.GetProductsReq) (resp *gencontent.GetProductsResp, err error)
- func (s *ProductService) UpdateProduct(ctx context.Context, req *gencontent.UpdateProductReq) (resp *gencontent.UpdateProductResp, err error)
- type RecommendService
- func (s *RecommendService) CreateFeedBack(ctx context.Context, req *gencontent.CreateFeedBackReq) (resp *gencontent.CreateFeedBackResp, err error)
- func (s *RecommendService) CreateItem(ctx context.Context, req *gencontent.CreateItemReq) (resp *gencontent.CreateItemResp, err error)
- func (s *RecommendService) DeleteItem(ctx context.Context, req *gencontent.DeleteItemReq) (resp *gencontent.DeleteItemResp, err error)
- func (s *RecommendService) GetLatestRecommend(ctx context.Context, req *gencontent.GetLatestRecommendReq) (resp *gencontent.GetLatestRecommendResp, err error)
- func (s *RecommendService) GetPopularRecommend(ctx context.Context, req *gencontent.GetPopularRecommendReq) (resp *gencontent.GetPopularRecommendResp, err error)
- func (s *RecommendService) GetRecommendByItem(ctx context.Context, req *gencontent.GetRecommendByItemReq) (resp *gencontent.GetRecommendByItemResp, err error)
- func (s *RecommendService) GetRecommendByUser(ctx context.Context, req *gencontent.GetRecommendByUserReq) (resp *gencontent.GetRecommendByUserResp, err error)
- func (s *RecommendService) UpdateItem(ctx context.Context, req *gencontent.UpdateItemReq) (resp *gencontent.UpdateItemResp, err error)
- type UserService
- func (s *UserService) CreateUser(ctx context.Context, req *gencontent.CreateUserReq) (resp *gencontent.CreateUserResp, err error)
- func (s *UserService) DeleteUser(ctx context.Context, req *gencontent.DeleteUserReq) (resp *gencontent.DeleteUserResp, err error)
- func (s *UserService) GetUser(ctx context.Context, req *gencontent.GetUserReq) (resp *gencontent.GetUserResp, err error)
- func (s *UserService) GetUsers(ctx context.Context, req *gencontent.GetUsersReq) (resp *gencontent.GetUsersResp, err error)
- func (s *UserService) GetUsersByUserIds(ctx context.Context, req *gencontent.GetUsersByUserIdsReq) (resp *gencontent.GetUsersByUserIdsResp, err error)
- func (s *UserService) UpdateUser(ctx context.Context, req *gencontent.UpdateUserReq) (resp *gencontent.UpdateUserResp, err error)
- type ZoneService
- func (s *ZoneService) CreateZone(ctx context.Context, req *gencontent.CreateZoneReq) (resp *gencontent.CreateZoneResp, err error)
- func (s *ZoneService) DeleteZone(ctx context.Context, req *gencontent.DeleteZoneReq) (resp *gencontent.DeleteZoneResp, err error)
- func (s *ZoneService) GetZone(ctx context.Context, req *gencontent.GetZoneReq) (resp *gencontent.GetZoneResp, err error)
- func (s *ZoneService) GetZones(ctx context.Context, req *gencontent.GetZonesReq) (resp *gencontent.GetZonesResp, err error)
- func (s *ZoneService) UpdateZone(ctx context.Context, req *gencontent.UpdateZoneReq) (resp *gencontent.UpdateZoneResp, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var CouponSet = wire.NewSet( wire.Struct(new(CouponService), "*"), wire.Bind(new(ICouponService), new(*CouponService)), )
View Source
var FileSet = wire.NewSet( wire.Struct(new(FileService), "*"), wire.Bind(new(IFileService), new(*FileService)), )
View Source
var OrderSet = wire.NewSet( wire.Struct(new(OrderService), "*"), wire.Bind(new(IOrderService), new(*OrderService)), )
View Source
var PostSet = wire.NewSet( wire.Struct(new(PostService), "*"), wire.Bind(new(IPostService), new(*PostService)), )
View Source
var ProductSet = wire.NewSet( wire.Struct(new(ProductService), "*"), wire.Bind(new(IProductService), new(*ProductService)), )
View Source
var RecommendSet = wire.NewSet( wire.Struct(new(RecommendService), "*"), wire.Bind(new(IRecommendService), new(*RecommendService)), )
View Source
var UserSet = wire.NewSet( wire.Struct(new(UserService), "*"), wire.Bind(new(IUserService), new(*UserService)), )
View Source
var ZoneSet = wire.NewSet( wire.Struct(new(ZoneService), "*"), wire.Bind(new(IZoneService), new(*ZoneService)), )
Functions ¶
This section is empty.
Types ¶
type CouponService ¶
type CouponService struct { Config *config.Config CouponMongoMapper couponmapper.ICouponMongoMapper CouponEsMapper couponmapper.IEsMapper Redis *redis.Redis }
func (*CouponService) CreateCoupon ¶
func (s *CouponService) CreateCoupon(ctx context.Context, req *gencontent.CreateCouponReq) (resp *gencontent.CreateCouponResp, err error)
func (*CouponService) DeleteCoupon ¶
func (s *CouponService) DeleteCoupon(ctx context.Context, req *gencontent.DeleteCouponReq) (resp *gencontent.DeleteCouponResp, err error)
func (*CouponService) GetCoupon ¶
func (s *CouponService) GetCoupon(ctx context.Context, req *gencontent.GetCouponReq) (resp *gencontent.GetCouponResp, err error)
func (*CouponService) GetCoupons ¶
func (s *CouponService) GetCoupons(ctx context.Context, req *gencontent.GetCouponsReq) (resp *gencontent.GetCouponsResp, err error)
func (*CouponService) UpdateCoupon ¶
func (s *CouponService) UpdateCoupon(ctx context.Context, req *gencontent.UpdateCouponReq) (resp *gencontent.UpdateCouponResp, err error)
type FileService ¶
type FileService struct { Config *config.Config FileMongoMapper filemapper.IMongoMapper FileEsMapper filemapper.IFileEsMapper }
func (*FileService) AddFileToPublicSpace ¶
func (s *FileService) AddFileToPublicSpace(ctx context.Context, req *gencontent.AddFileToPublicSpaceReq) (resp *gencontent.AddFileToPublicSpaceResp, err error)
func (*FileService) CheckShareFile ¶
func (s *FileService) CheckShareFile(ctx context.Context, req *gencontent.CheckShareFileReq) (resp *gencontent.CheckShareFileResp, err error)
func (*FileService) CompletelyRemoveFile ¶
func (s *FileService) CompletelyRemoveFile(ctx context.Context, req *gencontent.CompletelyRemoveFileReq) (resp *gencontent.CompletelyRemoveFileResp, err error)
func (*FileService) CreateFile ¶
func (s *FileService) CreateFile(ctx context.Context, req *gencontent.CreateFileReq) (resp *gencontent.CreateFileResp, err error)
func (*FileService) CreateShareCode ¶
func (s *FileService) CreateShareCode(ctx context.Context, req *gencontent.CreateShareCodeReq) (resp *gencontent.CreateShareCodeResp, err error)
func (*FileService) DeleteFile ¶
func (s *FileService) DeleteFile(ctx context.Context, req *gencontent.DeleteFileReq) (resp *gencontent.DeleteFileResp, err error)
func (*FileService) DeleteShareCode ¶
func (s *FileService) DeleteShareCode(ctx context.Context, req *gencontent.DeleteShareCodeReq) (resp *gencontent.DeleteShareCodeResp, err error)
func (*FileService) GetFile ¶
func (s *FileService) GetFile(ctx context.Context, req *gencontent.GetFileReq) (resp *gencontent.GetFileResp, err error)
func (*FileService) GetFileBySharingCode ¶
func (s *FileService) GetFileBySharingCode(ctx context.Context, req *gencontent.GetFileBySharingCodeReq) (resp *gencontent.GetFileBySharingCodeResp, err error)
func (*FileService) GetFileIsExist ¶
func (s *FileService) GetFileIsExist(ctx context.Context, req *gencontent.GetFileIsExistReq) (resp *gencontent.GetFileIsExistResp, err error)
func (*FileService) GetFileList ¶
func (s *FileService) GetFileList(ctx context.Context, req *gencontent.GetFileListReq) (resp *gencontent.GetFileListResp, err error)
func (*FileService) GetFilesByIds ¶
func (s *FileService) GetFilesByIds(ctx context.Context, req *gencontent.GetFilesByIdsReq) (resp *gencontent.GetFilesByIdsResp, err error)
func (*FileService) GetFolderSize ¶
func (*FileService) GetRecycleBinFiles ¶
func (s *FileService) GetRecycleBinFiles(ctx context.Context, req *gencontent.GetRecycleBinFilesReq) (resp *gencontent.GetRecycleBinFilesResp, err error)
func (*FileService) GetShareList ¶
func (s *FileService) GetShareList(ctx context.Context, req *gencontent.GetShareListReq) (resp *gencontent.GetShareListResp, err error)
func (*FileService) MoveFile ¶
func (s *FileService) MoveFile(ctx context.Context, req *gencontent.MoveFileReq) (resp *gencontent.MoveFileResp, err error)
func (*FileService) ParsingShareCode ¶
func (s *FileService) ParsingShareCode(ctx context.Context, req *gencontent.ParsingShareCodeReq) (resp *gencontent.ParsingShareCodeResp, err error)
func (*FileService) RecoverRecycleBinFile ¶
func (s *FileService) RecoverRecycleBinFile(ctx context.Context, req *gencontent.RecoverRecycleBinFileReq) (resp *gencontent.RecoverRecycleBinFileResp, err error)
func (*FileService) SaveFileToPrivateSpace ¶
func (s *FileService) SaveFileToPrivateSpace(ctx context.Context, req *gencontent.SaveFileToPrivateSpaceReq) (resp *gencontent.SaveFileToPrivateSpaceResp, err error)
func (*FileService) UpdateFile ¶
func (s *FileService) UpdateFile(ctx context.Context, req *gencontent.UpdateFileReq) (resp *gencontent.UpdateFileResp, err error)
func (*FileService) UpdateShareCode ¶
func (s *FileService) UpdateShareCode(ctx context.Context, req *gencontent.UpdateShareCodeReq) (resp *gencontent.UpdateShareCodeResp, err error)
type ICouponService ¶
type ICouponService interface { GetCoupon(ctx context.Context, req *gencontent.GetCouponReq) (resp *gencontent.GetCouponResp, err error) GetCoupons(ctx context.Context, req *gencontent.GetCouponsReq) (resp *gencontent.GetCouponsResp, err error) CreateCoupon(ctx context.Context, req *gencontent.CreateCouponReq) (resp *gencontent.CreateCouponResp, err error) UpdateCoupon(ctx context.Context, req *gencontent.UpdateCouponReq) (resp *gencontent.UpdateCouponResp, err error) DeleteCoupon(ctx context.Context, req *gencontent.DeleteCouponReq) (resp *gencontent.DeleteCouponResp, err error) }
type IFileService ¶
type IFileService interface { GetFileIsExist(ctx context.Context, req *gencontent.GetFileIsExistReq) (resp *gencontent.GetFileIsExistResp, err error) GetFile(ctx context.Context, req *gencontent.GetFileReq) (resp *gencontent.GetFileResp, err error) GetFilesByIds(ctx context.Context, req *gencontent.GetFilesByIdsReq) (resp *gencontent.GetFilesByIdsResp, err error) GetFileList(ctx context.Context, req *gencontent.GetFileListReq) (resp *gencontent.GetFileListResp, err error) GetFileBySharingCode(ctx context.Context, req *gencontent.GetFileBySharingCodeReq) (resp *gencontent.GetFileBySharingCodeResp, err error) GetRecycleBinFiles(ctx context.Context, req *gencontent.GetRecycleBinFilesReq) (resp *gencontent.GetRecycleBinFilesResp, err error) GetFolderSize(ctx context.Context, path string) (resp int64, err error) CreateFile(ctx context.Context, req *gencontent.CreateFileReq) (resp *gencontent.CreateFileResp, err error) UpdateFile(ctx context.Context, req *gencontent.UpdateFileReq) (resp *gencontent.UpdateFileResp, err error) MoveFile(ctx context.Context, req *gencontent.MoveFileReq) (resp *gencontent.MoveFileResp, err error) DeleteFile(ctx context.Context, req *gencontent.DeleteFileReq) (resp *gencontent.DeleteFileResp, err error) CompletelyRemoveFile(ctx context.Context, req *gencontent.CompletelyRemoveFileReq) (resp *gencontent.CompletelyRemoveFileResp, err error) RecoverRecycleBinFile(ctx context.Context, req *gencontent.RecoverRecycleBinFileReq) (resp *gencontent.RecoverRecycleBinFileResp, err error) SaveFileToPrivateSpace(ctx context.Context, req *gencontent.SaveFileToPrivateSpaceReq) (resp *gencontent.SaveFileToPrivateSpaceResp, err error) AddFileToPublicSpace(ctx context.Context, req *gencontent.AddFileToPublicSpaceReq) (resp *gencontent.AddFileToPublicSpaceResp, err error) }
type IOrderService ¶
type IOrderService interface { GetOrder(ctx context.Context, req *gencontent.GetOrderReq) (resp *gencontent.GetOrderResp, err error) GetOrders(ctx context.Context, req *gencontent.GetOrdersReq) (resp *gencontent.GetOrdersResp, err error) CreateOrder(ctx context.Context, req *gencontent.CreateOrderReq) (resp *gencontent.CreateOrderResp, err error) UpdateOrder(ctx context.Context, req *gencontent.UpdateOrderReq) (resp *gencontent.UpdateOrderResp, err error) DeleteOrder(ctx context.Context, req *gencontent.DeleteOrderReq) (resp *gencontent.DeleteOrderResp, err error) }
type IPostService ¶
type IPostService interface { CreatePost(ctx context.Context, req *gencontent.CreatePostReq) (resp *gencontent.CreatePostResp, err error) GetPost(ctx context.Context, req *gencontent.GetPostReq) (resp *gencontent.GetPostResp, err error) GetPosts(ctx context.Context, req *gencontent.GetPostsReq) (resp *gencontent.GetPostsResp, err error) UpdatePost(ctx context.Context, req *gencontent.UpdatePostReq) (resp *gencontent.UpdatePostResp, err error) DeletePost(ctx context.Context, req *gencontent.DeletePostReq) (resp *gencontent.DeletePostResp, err error) GetPostsByPostIds(ctx context.Context, req *gencontent.GetPostsByPostIdsReq) (resp *gencontent.GetPostsByPostIdsResp, err error) }
type IProductService ¶
type IProductService interface { GetProduct(ctx context.Context, req *gencontent.GetProductReq) (resp *gencontent.GetProductResp, err error) GetProducts(ctx context.Context, req *gencontent.GetProductsReq) (resp *gencontent.GetProductsResp, err error) CreateProduct(ctx context.Context, req *gencontent.CreateProductReq) (resp *gencontent.CreateProductResp, err error) UpdateProduct(ctx context.Context, req *gencontent.UpdateProductReq) (resp *gencontent.UpdateProductResp, err error) DeleteProduct(ctx context.Context, req *gencontent.DeleteProductReq) (resp *gencontent.DeleteProductResp, err error) }
type IRecommendService ¶
type IRecommendService interface { CreateItem(ctx context.Context, req *gencontent.CreateItemReq) (resp *gencontent.CreateItemResp, err error) UpdateItem(ctx context.Context, req *gencontent.UpdateItemReq) (resp *gencontent.UpdateItemResp, err error) DeleteItem(ctx context.Context, req *gencontent.DeleteItemReq) (resp *gencontent.DeleteItemResp, err error) GetPopularRecommend(ctx context.Context, req *gencontent.GetPopularRecommendReq) (resp *gencontent.GetPopularRecommendResp, err error) GetRecommendByItem(ctx context.Context, req *gencontent.GetRecommendByItemReq) (resp *gencontent.GetRecommendByItemResp, err error) GetRecommendByUser(ctx context.Context, req *gencontent.GetRecommendByUserReq) (resp *gencontent.GetRecommendByUserResp, err error) GetLatestRecommend(ctx context.Context, req *gencontent.GetLatestRecommendReq) (resp *gencontent.GetLatestRecommendResp, err error) CreateFeedBack(ctx context.Context, req *gencontent.CreateFeedBackReq) (resp *gencontent.CreateFeedBackResp, err error) }
type IUserService ¶
type IUserService interface { GetUser(ctx context.Context, req *gencontent.GetUserReq) (resp *gencontent.GetUserResp, err error) CreateUser(ctx context.Context, req *gencontent.CreateUserReq) (resp *gencontent.CreateUserResp, err error) UpdateUser(ctx context.Context, req *gencontent.UpdateUserReq) (resp *gencontent.UpdateUserResp, err error) GetUsers(ctx context.Context, req *gencontent.GetUsersReq) (resp *gencontent.GetUsersResp, err error) DeleteUser(ctx context.Context, req *gencontent.DeleteUserReq) (resp *gencontent.DeleteUserResp, err error) GetUsersByUserIds(ctx context.Context, req *gencontent.GetUsersByUserIdsReq) (resp *gencontent.GetUsersByUserIdsResp, err error) }
type IZoneService ¶
type IZoneService interface { GetZone(ctx context.Context, req *gencontent.GetZoneReq) (*gencontent.GetZoneResp, error) GetZones(ctx context.Context, req *gencontent.GetZonesReq) (*gencontent.GetZonesResp, error) CreateZone(ctx context.Context, req *gencontent.CreateZoneReq) (*gencontent.CreateZoneResp, error) UpdateZone(ctx context.Context, req *gencontent.UpdateZoneReq) (*gencontent.UpdateZoneResp, error) DeleteZone(ctx context.Context, req *gencontent.DeleteZoneReq) (*gencontent.DeleteZoneResp, error) }
type OrderService ¶
type OrderService struct { Config *config.Config OrderMongoMapper ordermapper.IOrderMongoMapper OrderEsMapper ordermapper.IEsMapper Redis *redis.Redis }
func (*OrderService) CreateOrder ¶
func (s *OrderService) CreateOrder(ctx context.Context, req *gencontent.CreateOrderReq) (resp *gencontent.CreateOrderResp, err error)
func (*OrderService) DeleteOrder ¶
func (s *OrderService) DeleteOrder(ctx context.Context, req *gencontent.DeleteOrderReq) (resp *gencontent.DeleteOrderResp, err error)
func (*OrderService) GetOrder ¶
func (s *OrderService) GetOrder(ctx context.Context, req *gencontent.GetOrderReq) (resp *gencontent.GetOrderResp, err error)
func (*OrderService) GetOrders ¶
func (s *OrderService) GetOrders(ctx context.Context, req *gencontent.GetOrdersReq) (resp *gencontent.GetOrdersResp, err error)
func (*OrderService) UpdateOrder ¶
func (s *OrderService) UpdateOrder(ctx context.Context, req *gencontent.UpdateOrderReq) (resp *gencontent.UpdateOrderResp, err error)
type PostService ¶
type PostService struct { Config *config.Config PostMongoMapper postmapper.IPostMongoMapper PostEsMapper postmapper.IEsMapper Redis *redis.Redis }
func (*PostService) CreatePost ¶
func (s *PostService) CreatePost(ctx context.Context, req *gencontent.CreatePostReq) (resp *gencontent.CreatePostResp, err error)
func (*PostService) DeletePost ¶
func (s *PostService) DeletePost(ctx context.Context, req *gencontent.DeletePostReq) (resp *gencontent.DeletePostResp, err error)
func (*PostService) GetPost ¶
func (s *PostService) GetPost(ctx context.Context, req *gencontent.GetPostReq) (resp *gencontent.GetPostResp, err error)
func (*PostService) GetPosts ¶
func (s *PostService) GetPosts(ctx context.Context, req *gencontent.GetPostsReq) (resp *gencontent.GetPostsResp, err error)
func (*PostService) GetPostsByPostIds ¶ added in v1.0.53
func (s *PostService) GetPostsByPostIds(ctx context.Context, req *gencontent.GetPostsByPostIdsReq) (resp *gencontent.GetPostsByPostIdsResp, err error)
func (*PostService) UpdatePost ¶
func (s *PostService) UpdatePost(ctx context.Context, req *gencontent.UpdatePostReq) (resp *gencontent.UpdatePostResp, err error)
type ProductService ¶
type ProductService struct { Config *config.Config ProductMongoMapper productmapper.IProductMongoMapper ProductEsMapper productmapper.IEsMapper Redis *redis.Redis }
func (*ProductService) CreateProduct ¶
func (s *ProductService) CreateProduct(ctx context.Context, req *gencontent.CreateProductReq) (resp *gencontent.CreateProductResp, err error)
func (*ProductService) DeleteProduct ¶
func (s *ProductService) DeleteProduct(ctx context.Context, req *gencontent.DeleteProductReq) (resp *gencontent.DeleteProductResp, err error)
func (*ProductService) GetProduct ¶
func (s *ProductService) GetProduct(ctx context.Context, req *gencontent.GetProductReq) (resp *gencontent.GetProductResp, err error)
func (*ProductService) GetProducts ¶
func (s *ProductService) GetProducts(ctx context.Context, req *gencontent.GetProductsReq) (resp *gencontent.GetProductsResp, err error)
func (*ProductService) UpdateProduct ¶
func (s *ProductService) UpdateProduct(ctx context.Context, req *gencontent.UpdateProductReq) (resp *gencontent.UpdateProductResp, err error)
type RecommendService ¶
type RecommendService struct { Redis *redis.Redis Gorse *gorse.GorseClient }
func (*RecommendService) CreateFeedBack ¶ added in v1.0.53
func (s *RecommendService) CreateFeedBack(ctx context.Context, req *gencontent.CreateFeedBackReq) (resp *gencontent.CreateFeedBackResp, err error)
func (*RecommendService) CreateItem ¶ added in v1.0.53
func (s *RecommendService) CreateItem(ctx context.Context, req *gencontent.CreateItemReq) (resp *gencontent.CreateItemResp, err error)
func (*RecommendService) DeleteItem ¶
func (s *RecommendService) DeleteItem(ctx context.Context, req *gencontent.DeleteItemReq) (resp *gencontent.DeleteItemResp, err error)
func (*RecommendService) GetLatestRecommend ¶
func (s *RecommendService) GetLatestRecommend(ctx context.Context, req *gencontent.GetLatestRecommendReq) (resp *gencontent.GetLatestRecommendResp, err error)
func (*RecommendService) GetPopularRecommend ¶
func (s *RecommendService) GetPopularRecommend(ctx context.Context, req *gencontent.GetPopularRecommendReq) (resp *gencontent.GetPopularRecommendResp, err error)
func (*RecommendService) GetRecommendByItem ¶
func (s *RecommendService) GetRecommendByItem(ctx context.Context, req *gencontent.GetRecommendByItemReq) (resp *gencontent.GetRecommendByItemResp, err error)
func (*RecommendService) GetRecommendByUser ¶
func (s *RecommendService) GetRecommendByUser(ctx context.Context, req *gencontent.GetRecommendByUserReq) (resp *gencontent.GetRecommendByUserResp, err error)
func (*RecommendService) UpdateItem ¶
func (s *RecommendService) UpdateItem(ctx context.Context, req *gencontent.UpdateItemReq) (resp *gencontent.UpdateItemResp, err error)
type UserService ¶
type UserService struct { Config *config.Config UserMongoMapper usermapper.IUserMongoMapper UserEsMapper usermapper.IUserEsMapper Redis *redis.Redis }
func (*UserService) CreateUser ¶
func (s *UserService) CreateUser(ctx context.Context, req *gencontent.CreateUserReq) (resp *gencontent.CreateUserResp, err error)
func (*UserService) DeleteUser ¶
func (s *UserService) DeleteUser(ctx context.Context, req *gencontent.DeleteUserReq) (resp *gencontent.DeleteUserResp, err error)
func (*UserService) GetUser ¶
func (s *UserService) GetUser(ctx context.Context, req *gencontent.GetUserReq) (resp *gencontent.GetUserResp, err error)
func (*UserService) GetUsers ¶
func (s *UserService) GetUsers(ctx context.Context, req *gencontent.GetUsersReq) (resp *gencontent.GetUsersResp, err error)
func (*UserService) GetUsersByUserIds ¶ added in v1.0.53
func (s *UserService) GetUsersByUserIds(ctx context.Context, req *gencontent.GetUsersByUserIdsReq) (resp *gencontent.GetUsersByUserIdsResp, err error)
func (*UserService) UpdateUser ¶
func (s *UserService) UpdateUser(ctx context.Context, req *gencontent.UpdateUserReq) (resp *gencontent.UpdateUserResp, err error)
type ZoneService ¶
type ZoneService struct {
ZoneMongoMapper zonemapper.IMongoMapper
}
func (*ZoneService) CreateZone ¶
func (s *ZoneService) CreateZone(ctx context.Context, req *gencontent.CreateZoneReq) (resp *gencontent.CreateZoneResp, err error)
func (*ZoneService) DeleteZone ¶
func (s *ZoneService) DeleteZone(ctx context.Context, req *gencontent.DeleteZoneReq) (resp *gencontent.DeleteZoneResp, err error)
func (*ZoneService) GetZone ¶
func (s *ZoneService) GetZone(ctx context.Context, req *gencontent.GetZoneReq) (resp *gencontent.GetZoneResp, err error)
func (*ZoneService) GetZones ¶
func (s *ZoneService) GetZones(ctx context.Context, req *gencontent.GetZonesReq) (resp *gencontent.GetZonesResp, err error)
func (*ZoneService) UpdateZone ¶
func (s *ZoneService) UpdateZone(ctx context.Context, req *gencontent.UpdateZoneReq) (resp *gencontent.UpdateZoneResp, err error)
Click to show internal directories.
Click to hide internal directories.