service

package
v1.0.53 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: GPL-3.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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
	ShareFileMongoMapper sharefilemapper.IMongoMapper
}

func (*FileService) AddFileToPublicSpace

func (*FileService) CheckShareFile

func (s *FileService) CheckShareFile(ctx context.Context, req *gencontent.CheckShareFileReq) (resp *gencontent.CheckShareFileResp, err error)

func (*FileService) CompletelyRemoveFile

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 (*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 (s *FileService) GetFolderSize(ctx context.Context, path string) (resp int64, err error)

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 (*FileService) SaveFileToPrivateSpace

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)
	GetShareList(ctx context.Context, req *gencontent.GetShareListReq) (resp *gencontent.GetShareListResp, err error)
	CheckShareFile(ctx context.Context, req *gencontent.CheckShareFileReq) (resp *gencontent.CheckShareFileResp, err error)
	CreateShareCode(ctx context.Context, req *gencontent.CreateShareCodeReq) (resp *gencontent.CreateShareCodeResp, err error)
	UpdateShareCode(ctx context.Context, req *gencontent.UpdateShareCodeReq) (resp *gencontent.UpdateShareCodeResp, err error)
	DeleteShareCode(ctx context.Context, req *gencontent.DeleteShareCodeReq) (resp *gencontent.DeleteShareCodeResp, err error)
	ParsingShareCode(ctx context.Context, req *gencontent.ParsingShareCodeReq) (resp *gencontent.ParsingShareCodeResp, 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 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 (*ProductService) DeleteProduct

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

type RecommendService

type RecommendService struct {
	Redis *redis.Redis
	Gorse *gorse.GorseClient
}

func (*RecommendService) CreateFeedBack added in v1.0.53

func (*RecommendService) CreateItem added in v1.0.53

func (*RecommendService) DeleteItem

func (*RecommendService) GetLatestRecommend

func (*RecommendService) GetPopularRecommend

func (*RecommendService) GetRecommendByItem

func (*RecommendService) GetRecommendByUser

func (*RecommendService) UpdateItem

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)

Jump to

Keyboard shortcuts

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