service

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: AGPL-3.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseBoolParam

func ParseBoolParam(from pb_shared.NullableBool) pgtype.Bool

func ParseJsonParam

func ParseJsonParam(from interface{}) pgtype.JSONB

Types

type AncestorService

AncestorService interface

func NewAncestorService

func NewAncestorService(db *plugin_database_sqlx.Plugin) AncestorService

NewAncestorService init

type AttributeService

AttributeService interface

func NewAttributeService

func NewAttributeService(db *plugin_database_sqlx.Plugin) AttributeService

NewAttributeService init

type BuyerService

type BuyerService interface {
	Paginate(data *rpc_buyer.PaginateBuyerRequest) ([]*pb_buyer.BuyerFrontItem, error)
	Get(data *rpc_buyer.GetBuyerRequest) (*pb_buyer.BuyerFrontItem, error)
}

BuyerService interface

func NewBuyerService

func NewBuyerService(db *plugin_database_sqlx.Plugin) BuyerService

NewBuyerService init

type CategoryService

CategoryService interface

func NewCategoryService

func NewCategoryService(db *plugin_database_sqlx.Plugin) CategoryService

NewCategoryService init

type MenuService interface {
	ImportMenu() ([]*rpc_menu.ImportMenuResponse_Ancestor, error)
}

MenuService interface

func NewMenuService

func NewMenuService(
	db *plugin_database_sqlx.Plugin,
	clnt client.Client,
) MenuService

NewProductService init

type OrderService

OrderService interface

func NewOrderService

NewOrderService init

type ProductService

type ProductService interface {
	Paginate(data *rpc_product.PaginateProductRequest) ([]*pb_product.ProductFrontItem, error)
	Get(data *rpc_product.GetProductRequest) (*pb_product.ProductFrontItem, error)
}

ProductService interface

func NewProductService

func NewProductService(db *plugin_database_sqlx.Plugin) ProductService

NewProductService init

type Service

type Service struct {
	ServiceName string `mapstructure:"service_name"`
	Ancestor    struct {
		Manager struct {
			RPC      rpc_ancestor_manager.AncestorManagerService
			Create   opts
			Update   opts
			Delete   opts
			Paginate opts
			Get      opts
		}
		RPC      rpc_ancestor.AncestorService
		Paginate opts
		Get      opts
	}
	Attribute struct {
		Manager struct {
			RPC      rpc_attribute_manager.AttributeManagerService
			Create   opts
			Update   opts
			Delete   opts
			Paginate opts
			Get      opts
		}
		RPC      rpc_attribute.AttributeService
		Paginate opts
		Get      opts
	}
	Buyer struct {
		Manager struct {
			RPC           rpc_buyer_manager.BuyerManagerService
			Create        opts
			Update        opts
			Delete        opts
			Paginate      opts
			Get           opts
			Search        opts
			SearchByPhone opts `mapstructure:"search_by_phone"`
		}
		RPC      rpc_buyer.BuyerService
		Paginate opts
		Get      opts
	}
	Category struct {
		Manager struct {
			RPC      rpc_category_manager.CategoryManagerService
			Create   opts
			Update   opts
			Delete   opts
			Paginate opts
			Get      opts
		}
		RPC      rpc_category.CategoryService
		Paginate opts
		Get      opts
	}
	Menu struct {
		RPC        rpc_menu.MenuService
		ImportMenu opts `mapstructure:"import_menu"`
	}
	Order struct {
		RPC      rpc_order.OrderService
		Create   opts
		Update   opts
		Delete   opts
		Paginate opts
		Get      opts
		GetStat  opts `mapstructure:"get_stat"`
		Export   opts
	}
	Product struct {
		Manager struct {
			RPC      rpc_product_manager.ProductManagerService
			Create   opts
			Update   opts
			Delete   opts
			Paginate opts
			Get      opts
		}
		RPC      rpc_product.ProductService
		Paginate opts
		Get      opts
	}
}

Jump to

Keyboard shortcuts

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