Documentation ¶
Index ¶
- func ParseBoolParam(from pb_shared.NullableBool) pgtype.Bool
- func ParseJsonParam(from interface{}) pgtype.JSONB
- type AncestorManagerService
- type AncestorService
- type AttributeManagerService
- type AttributeService
- type BuyerManagerService
- type BuyerService
- type CategoryManagerService
- type CategoryService
- type MenuService
- type OrderService
- type ProductManagerService
- type ProductService
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseBoolParam ¶
func ParseBoolParam(from pb_shared.NullableBool) pgtype.Bool
func ParseJsonParam ¶
Types ¶
type AncestorManagerService ¶
type AncestorManagerService interface { Create(data *rpc_ancestor_manager.CreateAncestorManagerRequest) (string, error) Update(data *rpc_ancestor_manager.UpdateAncestorManagerRequest) error Delete(data *rpc_ancestor_manager.DeleteAncestorManagerRequest) error Paginate(data *rpc_ancestor_manager.PaginateAncestorManagerRequest) ([]*pb_ancestor.AncestorAdminItem, error) Get(data *rpc_ancestor_manager.GetAncestorManagerRequest) (*pb_ancestor.AncestorAdminItem, error) }
AncestorManagerService interface
func NewAncestorManagerService ¶
func NewAncestorManagerService(db *plugin_database_sqlx.Plugin) AncestorManagerService
NewAncestorService init
type AncestorService ¶
type AncestorService interface { Paginate(data *rpc_ancestor.PaginateAncestorRequest) ([]*pb_ancestor.AncestorFrontItem, error) Get(data *rpc_ancestor.GetAncestorRequest) (*pb_ancestor.AncestorFrontItem, error) }
AncestorService interface
func NewAncestorService ¶
func NewAncestorService(db *plugin_database_sqlx.Plugin) AncestorService
NewAncestorService init
type AttributeManagerService ¶
type AttributeManagerService interface { Create(data *rpc_attribute_manager.CreateAttributeManagerRequest) (string, error) Update(data *rpc_attribute_manager.UpdateAttributeManagerRequest) error Delete(data *rpc_attribute_manager.DeleteAttributeManagerRequest) error Paginate(data *rpc_attribute_manager.PaginateAttributeManagerRequest) ([]*pb_attribute.AttributeAdminItem, error) Get(data *rpc_attribute_manager.GetAttributeManagerRequest) (*pb_attribute.AttributeAdminItem, error) }
AttributeManagerService interface
func NewAttributeManagerService ¶
func NewAttributeManagerService(db *plugin_database_sqlx.Plugin) AttributeManagerService
NewAttributeService init
type AttributeService ¶
type AttributeService interface { Paginate(data *rpc_attribute.PaginateAttributeRequest) ([]*pb_attribute.AttributeFrontItem, error) Get(data *rpc_attribute.GetAttributeRequest) (*pb_attribute.AttributeFrontItem, error) }
AttributeService interface
func NewAttributeService ¶
func NewAttributeService(db *plugin_database_sqlx.Plugin) AttributeService
NewAttributeService init
type BuyerManagerService ¶
type BuyerManagerService interface { Create(data *rpc_buyer_manager.CreateBuyerManagerRequest) (string, error) Update(data *rpc_buyer_manager.UpdateBuyerManagerRequest) error Delete(data *rpc_buyer_manager.DeleteBuyerManagerRequest) error Paginate(data *rpc_buyer_manager.PaginateBuyerManagerRequest) ([]*pb_buyer.BuyerAdminItem, error) Get(data *rpc_buyer_manager.GetBuyerManagerRequest) (*pb_buyer.BuyerAdminItem, error) Search(data *rpc_buyer_manager.SearchBuyerManagerRequest) (*pb_buyer.BuyerAdminItem, error) SearchByPhone(data *rpc_buyer_manager.SearchByPhoneManagerRequest) (*pb_buyer.BuyerAdminItem, error) }
BuyerManagerService interface
func NewBuyerManagerService ¶
func NewBuyerManagerService(db *plugin_database_sqlx.Plugin) BuyerManagerService
NewBuyerService 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 CategoryManagerService ¶
type CategoryManagerService interface { Create(data *rpc_category_manager.CreateCategoryManagerRequest) (string, error) Update(data *rpc_category_manager.UpdateCategoryManagerRequest) error Delete(data *rpc_category_manager.DeleteCategoryManagerRequest) error Paginate(data *rpc_category_manager.PaginateCategoryManagerRequest) ([]*pb_category.CategoryAdminItem, error) Get(data *rpc_category_manager.GetCategoryManagerRequest) (*pb_category.CategoryAdminItem, error) }
CategoryManagerService interface
func NewCategoryManagerService ¶
func NewCategoryManagerService(db *plugin_database_sqlx.Plugin) CategoryManagerService
NewCategoryService init
type CategoryService ¶
type CategoryService interface { Paginate(data *rpc_category.PaginateCategoryRequest) ([]*pb_category.CategoryFrontItem, error) Get(data *rpc_category.GetCategoryRequest) (*pb_category.CategoryFrontItem, error) }
CategoryService interface
func NewCategoryService ¶
func NewCategoryService(db *plugin_database_sqlx.Plugin) CategoryService
NewCategoryService init
type MenuService ¶
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 ¶
type OrderService interface { Create(data *rpc_order.CreateOrderRequest) (string, error) Update(data *rpc_order.UpdateOrderRequest) error Delete(data *rpc_order.DeleteOrderRequest) error Paginate(data *rpc_order.PaginateOrderRequest) ([]*pb_order.OrderItem, error) Get(data *rpc_order.GetOrderRequest) (*pb_order.OrderItem, error) GetStat(data *rpc_order.GetStatOrderRequest) (*rpc_order.GetStatOrderResponse_Data, error) Export(data *rpc_order.ExportOrderRequest) error }
OrderService interface
func NewOrderService ¶
func NewOrderService( db *plugin_database_sqlx.Plugin, clnt client.Client, ancestor AncestorManagerService, buyer BuyerManagerService, product ProductManagerService, ) OrderService
NewOrderService init
type ProductManagerService ¶
type ProductManagerService interface { Create(data *rpc_product_manager.CreateProductManagerRequest) (string, error) Update(data *rpc_product_manager.UpdateProductManagerRequest) error Delete(data *rpc_product_manager.DeleteProductManagerRequest) error Paginate(data *rpc_product_manager.PaginateProductManagerRequest) ([]*pb_product.ProductAdminItem, error) Get(data *rpc_product_manager.GetProductManagerRequest) (*pb_product.ProductAdminItem, error) }
ProductManagerService interface
func NewProductManagerService ¶
func NewProductManagerService( db *plugin_database_sqlx.Plugin, ) ProductManagerService
NewProductService 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 } }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.