service

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2021 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionService

type ActionService interface {
	Create(m *pb_action.Action) error
	Update(m *pb_action.Action) error
	Delete(u string) error
	Paginate(page, per_page int64, filter, sort interface{}) ([]*pb_action.Action, int64, error)
	Get(u string) (*pb_action.Action, error)
}

ActionService interface

func NewActionService

func NewActionService(plugin_mongodb *plugin_database_mongodb.Plugin) ActionService

NewActionService init

type BrandService

type BrandService interface {
	Create(m *pb_brand.Brand) error
	Update(m *pb_brand.Brand) error
	Delete(u string) error
	Paginate(page, per_page int64, filter, sort interface{}) ([]*pb_brand.Brand, int64, error)
	Get(u string) (*pb_brand.Brand, error)
}

BrandService interface

func NewBrandService

func NewBrandService(plugin_mongodb *plugin_database_mongodb.Plugin) BrandService

NewBrandService init

type CareerCategoryService added in v0.4.0

type CareerCategoryService interface {
	Create(m *pb_career.CareerCategory) error
	Update(m *pb_career.CareerCategory) error
	Delete(filter interface{}) error
	Paginate(page, perPage int64, filter, sort interface{}) ([]*pb_career.CareerCategory, int64, error)
	Get(filter, projection interface{}) (*pb_career.CareerCategory, error)
}

CareerCategoryService interface

func NewCareerCategoryService added in v0.4.0

func NewCareerCategoryService(plugin_mongodb *plugin_database_mongodb.Plugin) CareerCategoryService

NewCareerCategoryService init

type CareerService added in v0.4.0

type CareerService interface {
	Create(m *pb_career.Career) error
	Update(m *pb_career.Career) error
	Delete(filter interface{}) error
	Paginate(page, perPage int64, filter, sort interface{}) ([]*pb_career.Career, int64, error)
	Get(filter, projection interface{}) (*pb_career.Career, error)
}

CareerService interface

func NewCareerService added in v0.4.0

func NewCareerService(plugin_mongodb *plugin_database_mongodb.Plugin) CareerService

NewCareerService init

type CollectionService

type CollectionService interface {
	Create(m *pb_collection.Collection) error
	Update(m *pb_collection.Collection) error
	Delete(u string) error
	Paginate(page, per_page int64, filter, sort interface{}) ([]*pb_collection.Collection, int64, error)
	Get(u string) (*pb_collection.Collection, error)
}

CollectionService interface

func NewCollectionService

func NewCollectionService(plugin_mongodb *plugin_database_mongodb.Plugin) CollectionService

NewCollectionService init

type FaqService

type FaqService interface {
	Create(m *pb_faq.Faq) error
	Update(m *pb_faq.Faq) error
	Delete(u string) error
	Paginate(page, per_page int64, filter, sort interface{}) ([]*pb_faq.Faq, int64, error)
	Get(u string) (*pb_faq.Faq, error)
}

FaqService interface

func NewFaqService

func NewFaqService(plugin_mongodb *plugin_database_mongodb.Plugin) FaqService

NewFaqService init

type GalleryService

type GalleryService interface {
	Create(m *pb_gallery.Gallery) error
	BulkCreate(m []*pb_gallery.Gallery) error
	Update(m *pb_gallery.Gallery) error
	Delete(u string) error
	Paginate(page, per_page int64, filter, sort interface{}) ([]*pb_gallery.Gallery, int64, error)
	Get(u string) (*pb_gallery.Gallery, error)
}

GalleryService interface

func NewGalleryService

func NewGalleryService(plugin_mongodb *plugin_database_mongodb.Plugin) GalleryService

NewGalleryService init

type InfoService added in v0.2.0

type InfoService interface {
	Create(m *pb_info.Info) error
	Update(m *pb_info.Info) error
	Delete(u string) error
	Paginate(page, per_page int64, filter, sort interface{}) ([]*pb_info.Info, int64, error)
	Get(u string) (*pb_info.Info, error)
	GetBy(filter interface{}) (*pb_info.Info, error)
}

InfoService interface

func NewInfoService added in v0.2.0

func NewInfoService(plugin_mongodb *plugin_database_mongodb.Plugin) InfoService

NewInfoService init

type NewsService

type NewsService interface {
	Create(m *pb_news.News) error
	Update(m *pb_news.News) error
	Delete(u string) error
	Paginate(page, per_page int64, filter, sort interface{}) ([]*pb_news.News, int64, error)
	Get(u string) (*pb_news.News, error)
}

NewsService interface

func NewNewsService

func NewNewsService(plugin_mongodb *plugin_database_mongodb.Plugin) NewsService

NewNewsService init

type PromotionService

type PromotionService interface {
	Create(m *pb_promotion.Promotion) error
	Update(m *pb_promotion.Promotion) error
	Delete(u string) error
	Paginate(page, per_page int64, filter, sort interface{}) ([]*pb_promotion.Promotion, int64, error)
	Get(u string) (*pb_promotion.Promotion, error)
}

PromotionService interface

func NewPromotionService

func NewPromotionService(plugin_mongodb *plugin_database_mongodb.Plugin) PromotionService

NewPromotionService init

type Service

type Service struct {
	ServiceName string `mapstructure:"service_name"`
	Action      struct {
		RPC pb_action.ActionService

		Create   opts `mapstructure:"create"`
		Update   opts `mapstructure:"update"`
		Delete   opts `mapstructure:"delete"`
		Paginate opts `mapstructure:"paginate"`
		Get      opts `mapstructure:"get"`
	} `mapstructure:"action"`
	Brand struct {
		RPC pb_brand.BrandService

		Create   opts `mapstructure:"create"`
		Update   opts `mapstructure:"update"`
		Delete   opts `mapstructure:"delete"`
		Paginate opts `mapstructure:"paginate"`
		Get      opts `mapstructure:"get"`
	} `mapstructure:"brand"`
	Collection struct {
		RPC pb_collection.CollectionService

		Create   opts `mapstructure:"create"`
		Update   opts `mapstructure:"update"`
		Delete   opts `mapstructure:"delete"`
		Paginate opts `mapstructure:"paginate"`
		Get      opts `mapstructure:"get"`
	} `mapstructure:"collection"`
	Faq struct {
		RPC pb_faq.FaqService

		Create   opts `mapstructure:"create"`
		Update   opts `mapstructure:"update"`
		Delete   opts `mapstructure:"delete"`
		Paginate opts `mapstructure:"paginate"`
		Get      opts `mapstructure:"get"`
	} `mapstructure:"faq"`
	Gallery struct {
		RPC pb_gallery.GalleryService

		Create     opts `mapstructure:"create"`
		BulkCreate opts `mapstructure:"bulk_create"`
		Update     opts `mapstructure:"update"`
		Delete     opts `mapstructure:"delete"`
		Paginate   opts `mapstructure:"paginate"`
		Get        opts `mapstructure:"get"`
	} `mapstructure:"gallery"`
	News struct {
		RPC pb_news.NewsService

		Create   opts `mapstructure:"create"`
		Update   opts `mapstructure:"update"`
		Delete   opts `mapstructure:"delete"`
		Paginate opts `mapstructure:"paginate"`
		Get      opts `mapstructure:"get"`
	} `mapstructure:"news"`
	Promotion struct {
		RPC pb_promotion.PromotionService

		Create   opts `mapstructure:"create"`
		Update   opts `mapstructure:"update"`
		Delete   opts `mapstructure:"delete"`
		Paginate opts `mapstructure:"paginate"`
		Get      opts `mapstructure:"get"`
	} `mapstructure:"promotion"`
	Slider struct {
		RPC pb_slider.SliderService

		Create   opts `mapstructure:"create"`
		Update   opts `mapstructure:"update"`
		Delete   opts `mapstructure:"delete"`
		Paginate opts `mapstructure:"paginate"`
		Get      opts `mapstructure:"get"`
	} `mapstructure:"slider"`
	Info struct {
		RPC pb_info.InfoService

		Create   opts `mapstructure:"create"`
		Update   opts `mapstructure:"update"`
		Delete   opts `mapstructure:"delete"`
		Paginate opts `mapstructure:"paginate"`
		Get      opts `mapstructure:"get"`
	} `mapstructure:"info"`
	Career struct {
		RPC pb_career.CareerService

		Create   opts `mapstructure:"create"`
		Update   opts `mapstructure:"update"`
		Delete   opts `mapstructure:"delete"`
		Paginate opts `mapstructure:"paginate"`
		Get      opts `mapstructure:"get"`
	} `mapstructure:"career"`
	CareerCategory struct {
		RPC pb_career.CareerCategoryService

		Create   opts `mapstructure:"create"`
		Update   opts `mapstructure:"update"`
		Delete   opts `mapstructure:"delete"`
		Paginate opts `mapstructure:"paginate"`
		Get      opts `mapstructure:"get"`
	} `mapstructure:"career_category"`
}

type SliderService

type SliderService interface {
	Create(m *pb_slider.Slider) error
	Update(m *pb_slider.Slider) error
	Delete(u string) error
	Paginate(page, per_page int64, filter, sort interface{}) ([]*pb_slider.Slider, int64, error)
	Get(u string) (*pb_slider.Slider, error)
}

SliderService interface

func NewSliderService

func NewSliderService(plugin_mongodb *plugin_database_mongodb.Plugin) SliderService

NewSliderService init

Jump to

Keyboard shortcuts

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