impl

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: GPL-2.0 Imports: 71 Imported by: 0

README

Rpc Service Implement

Documentation

Overview

*

  • Copyright 2015 @ 56x.net.
  • name : content_service
  • author : jarryliu
  • date : -- :
  • description :
  • history :

*

  • Copyright 2015 @ 56x.net.
  • name : aftersales_service.go
  • author : jarryliu
  • date : 2016-07-18 17:16
  • description :
  • history :

*

  • Copyright 2015 @ 56x.net.
  • name : 2.express_service.go
  • author : jarryliu
  • date : 2016-07-05 18:57
  • description :
  • history :

*

  • Copyright 2015 @ 56x.net.
  • name : platform_service
  • author : jarryliu
  • date : 2016-05-27 15:30
  • description :
  • history :

*

  • Copyright 2015 @ 56x.net.
  • name : message_service.go
  • author : jarryliu
  • date : 2016-06-11 20:51
  • description :
  • history :

*

  • Copyright 2015 @ 56x.net.
  • name : personfinance_service
  • author : jarryliu
  • date : 2016-04-01 09:41
  • description :
  • history :

*

  • Copyright 2015 @ 56x.net.
  • name : 2.express_service.go
  • author : jarryliu
  • date : 2016-07-05 18:57
  • description :
  • history :

*

  • Copyright 2015 @ 56x.net.
  • name : content_service
  • author : jarryliu
  • date : -- :
  • description :
  • history :

Index

Constants

This section is empty.

Variables

View Source
var (
	Repos *repos.RepoFactory

	// 状态服务
	StatusService *statusServiceImpl
	// 注册表服务
	RegistryService *registryService
	PromService     *promotionService
	// 基础服务
	FoundationService *foundationService
	// 会员服务
	MemberService *memberService
	// 商户服务
	MerchantService *merchantService
	// 商店服务
	ShopService proto.ShopServiceServer
	// 产品服务
	ProductService *productService
	// 商品服务
	ItemService *itemService
	// 购物服务
	OrderService *orderServiceImpl
	// 购物车服务
	CartService *cartServiceImpl
	// 售后服务
	AfterSalesService *afterSalesService
	// 支付服务
	PaymentService *paymentService
	// 快捷支付服务
	QuickPayService *quickPayServiceImpl
	// 消息服务
	MessageService *messageService
	// 快递服务
	ExpressService *expressServiceImpl
	// 配送服务
	ShipmentService *shipmentServiceImpl
	// 内容服务
	ContentService *contentService
	// 广告服务
	AdService *advertisementService
	// 钱包服务
	WalletService *walletServiceImpl
	// 个人金融服务
	PersonFinanceService *personFinanceService
	// 门户数据服务
	PortalService *portalService
	// 查询服务
	QueryService *queryService

	// ExecuteService 执行任务服务
	ExecuteService *executionServiceImpl

	CommonDao *impl.CommonDao
	// AppService APP服务
	AppService *appServiceImpl
	// RbacService 权限服务
	RbacService *rbacServiceImpl
	// CodeService 条码服务
	CodeService *codeServiceImpl
)

Functions

func Init

func Init(ctx gof.App)

func InitData

func InitData(o orm.Orm)

func InitTestService

func InitTestService(ctx gof.App, db db.Connector, orm orm.Orm, sto storage.Interface)

InitTestService 初始化测试服务

func IntVersion

func IntVersion(s string) int

func NewAdvertisementService

func NewAdvertisementService(rep ad.IAdRepo, storage storage.Interface) *advertisementService

func NewAfterSalesService

func NewAfterSalesService(rep afterSales.IAfterSalesRepo,
	q *query.AfterSalesQuery, orderRepo order.IOrderRepo) *afterSalesService

func NewAppService

func NewAppService(s storage.Interface, o orm.Orm) *appServiceImpl

func NewCartService

func NewCartService(cartRepo cart.ICartRepo,
	goodsRepo proItem.IItemRepo,
	mchRepo merchant.IMerchantRepo,
	shopRepo shop.IShopRepo) *cartServiceImpl

func NewCodeService

func NewCodeService(sto storage.Interface, o orm.Orm) *codeServiceImpl

func NewContentService

func NewContentService(rep content.IArchiveRepo, q *query.ContentQuery) *contentService

func NewExecDataService added in v0.4.10

func NewExecDataService(s storage.Interface, repo job.IJobRepo) *executionServiceImpl

func NewExpressService

func NewExpressService(rep express.IExpressRepo) *expressServiceImpl

获取快递服务

func NewFoundationService

func NewFoundationService(rep valueobject.IValueRepo, registryRepo registry.IRegistryRepo, s storage.Interface, notifyRepo notify.INotifyRepo) *foundationService

func NewMemberService

func NewMemberService(mchService *merchantService, repo member.IMemberRepo,
	registryRepo registry.IRegistryRepo,
	q *query.MemberQuery, oq *query.OrderQuery,
	valRepo valueobject.IValueRepo) *memberService

func NewMerchantService

func NewMerchantService(r merchant.IMerchantRepo, memberRepo member.IMemberRepo,
	q *query.MerchantQuery, orderQuery *query.OrderQuery) *merchantService

func NewMessageService

func NewMessageService(rep mss.IMssRepo) *messageService

func NewPaymentService

func NewPaymentService(rep payment.IPaymentRepo, orderRepo order.IOrderRepo,
	memberRepo member.IMemberRepo) *paymentService

func NewPersonFinanceService

func NewPersonFinanceService(rep personfinance.IPersonFinanceRepository,
	accRepo member.IMemberRepo) *personFinanceService

func NewPortalService

func NewPortalService(o orm.Orm, d *impl.CommonDao, portalDao dao.IPortalDao) *portalService

func NewProductService

func NewProductService(pmRepo promodel.IProductModelRepo,
	catRepo product.ICategoryRepo,
	proRepo product.IProductRepo) *productService

func NewPromotionService

func NewPromotionService(rep promotion.IPromotionRepo) *promotionService

func NewQueryService

func NewQueryService(o orm.Orm, s storage.Interface,
	catRepo product.ICategoryRepo) *queryService

func NewQuickPayService

func NewQuickPayService(s storage.Interface,
	registryRepo registry.IRegistryRepo) *quickPayServiceImpl

func NewRbacService

func NewRbacService(s storage.Interface, o orm.Orm, registryRepo registry.IRegistryRepo) *rbacServiceImpl

func NewRegistryService

func NewRegistryService(rep valueobject.IValueRepo, registryRepo registry.IRegistryRepo) *registryService

func NewSaleService

func NewSaleService(sto storage.Interface, cateRepo product.ICategoryRepo,
	goodsRepo item.IItemRepo,
	goodsQuery *query.ItemQuery,
	labelRepo item.ISaleLabelRepo, promRepo promodel.IProductModelRepo,
	mchRepo merchant.IMerchantRepo, valueRepo valueobject.IValueRepo) *itemService

func NewShipmentService

func NewShipmentService(rep shipment.IShipmentRepo,
	deliveryRepo delivery.IDeliveryRepo, expressRepo express.IExpressRepo) *shipmentServiceImpl

获取快递服务

func NewShopService

func NewShopService(rep shop.IShopRepo, mchRepo merchant.IMerchantRepo,
	shopRepo shop.IShopRepo, registryRepo registry.IRegistryRepo, query *query.ShopQuery) *shopServiceImpl

func NewShoppingService

func NewShoppingService(r order.IOrderRepo,
	cartRepo cart.ICartRepo, memberRepo member.IMemberRepo,
	prodRepo product.IProductRepo, goodsRepo item.IItemRepo,
	mchRepo merchant.IMerchantRepo, shopRepo shop.IShopRepo,
	payRepo payment.IPaymentRepo, shipRepo shipment.IShipmentRepo,
	expressRepo express.IExpressRepo,
	orderQuery *query.OrderQuery) *orderServiceImpl

func NewStatusService

func NewStatusService() *statusServiceImpl

func NewWalletService

func NewWalletService(repo wallet.IWalletRepo) *walletServiceImpl

func OrmMapping

func OrmMapping(orm orm.Orm)

Types

type TestServiceImpl

type TestServiceImpl struct {
	proto.UnsafeGreeterServiceServer
}

func (*TestServiceImpl) Hello

func (t *TestServiceImpl) Hello(_ context.Context, user *proto.User1) (response *proto.UserResponse, err error)

Jump to

Keyboard shortcuts

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