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 ¶
- Variables
- func Init(ctx gof.App)
- func InitData(o orm.Orm)
- func InitTestService(ctx gof.App, db db.Connector, orm orm.Orm, sto storage.Interface)
- func IntVersion(s string) int
- func NewAdvertisementService(rep ad.IAdRepo, storage storage.Interface) *advertisementService
- func NewAfterSalesService(rep afterSales.IAfterSalesRepo, q *query.AfterSalesQuery, ...) *afterSalesService
- func NewAppService(s storage.Interface, o orm.Orm) *appServiceImpl
- func NewCartService(cartRepo cart.ICartRepo, goodsRepo proItem.IItemRepo, ...) *cartServiceImpl
- func NewCodeService(sto storage.Interface, o orm.Orm) *codeServiceImpl
- func NewContentService(rep content.IArchiveRepo, q *query.ContentQuery) *contentService
- func NewExecDataService(s storage.Interface, repo job.IJobRepo) *executionServiceImpl
- func NewExpressService(rep express.IExpressRepo) *expressServiceImpl
- func NewFoundationService(rep valueobject.IValueRepo, registryRepo registry.IRegistryRepo, ...) *foundationService
- func NewMemberService(mchService *merchantService, repo member.IMemberRepo, ...) *memberService
- func NewMerchantService(r merchant.IMerchantRepo, memberRepo member.IMemberRepo, ...) *merchantService
- func NewMessageService(rep mss.IMssRepo) *messageService
- func NewPaymentService(rep payment.IPaymentRepo, orderRepo order.IOrderRepo, ...) *paymentService
- func NewPersonFinanceService(rep personfinance.IPersonFinanceRepository, accRepo member.IMemberRepo) *personFinanceService
- func NewPortalService(o orm.Orm, d *impl.CommonDao, portalDao dao.IPortalDao) *portalService
- func NewProductService(pmRepo promodel.IProductModelRepo, catRepo product.ICategoryRepo, ...) *productService
- func NewPromotionService(rep promotion.IPromotionRepo) *promotionService
- func NewQueryService(o orm.Orm, s storage.Interface, catRepo product.ICategoryRepo) *queryService
- func NewQuickPayService(s storage.Interface, registryRepo registry.IRegistryRepo) *quickPayServiceImpl
- func NewRbacService(s storage.Interface, o orm.Orm, registryRepo registry.IRegistryRepo) *rbacServiceImpl
- func NewRegistryService(rep valueobject.IValueRepo, registryRepo registry.IRegistryRepo) *registryService
- func NewSaleService(sto storage.Interface, cateRepo product.ICategoryRepo, ...) *itemService
- func NewShipmentService(rep shipment.IShipmentRepo, deliveryRepo delivery.IDeliveryRepo, ...) *shipmentServiceImpl
- func NewShopService(rep shop.IShopRepo, mchRepo merchant.IMerchantRepo, shopRepo shop.IShopRepo, ...) *shopServiceImpl
- func NewShoppingService(r order.IOrderRepo, cartRepo cart.ICartRepo, memberRepo member.IMemberRepo, ...) *orderServiceImpl
- func NewStatusService() *statusServiceImpl
- func NewWalletService(repo wallet.IWalletRepo) *walletServiceImpl
- func OrmMapping(orm orm.Orm)
- type TestServiceImpl
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 InitTestService ¶
InitTestService 初始化测试服务
func IntVersion ¶
func NewAdvertisementService ¶
func NewAfterSalesService ¶
func NewAfterSalesService(rep afterSales.IAfterSalesRepo, q *query.AfterSalesQuery, orderRepo order.IOrderRepo) *afterSalesService
func NewCartService ¶
func NewContentService ¶
func NewContentService(rep content.IArchiveRepo, q *query.ContentQuery) *contentService
func NewExecDataService ¶ added in v0.4.10
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 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 NewProductService ¶
func NewProductService(pmRepo promodel.IProductModelRepo, catRepo product.ICategoryRepo, proRepo product.IProductRepo) *productService
func NewPromotionService ¶
func NewPromotionService(rep promotion.IPromotionRepo) *promotionService
func NewQueryService ¶
func NewQuickPayService ¶
func NewQuickPayService(s storage.Interface, registryRepo registry.IRegistryRepo) *quickPayServiceImpl
func NewRbacService ¶
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 ¶
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)
Source Files ¶
- 2.advertisement_service.go
- 2.aftersales_service.go
- 2.app_service.go
- 2.cart_service.go
- 2.code_service.go
- 2.execution_service.go
- 2.express_service.go
- 2.item_service.go
- 2.member_service.go
- 2.order_service.go
- 2.payment_service.go
- 2.portal_service.go
- 2.product_service.go
- 2.query_service.go
- 2.rbac_service.go
- 2.registry_service.go
- 2.wallet_service.go
- content_service.go
- foudation_service.go
- initial_data.go
- merchant_service.go
- message_service.go
- orm_mapping.go
- personfinance_service.go
- promotion_service.go
- quick_pay_service.go
- services.go
- shipment_service.go
- shop_service.go
- status_service.go
- test_service.go
Click to show internal directories.
Click to hide internal directories.