Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivityService ¶
type ActivityServiceImpl ¶
type ActivityServiceImpl struct { }
func (ActivityServiceImpl) CreateActivity ¶
func (p ActivityServiceImpl) CreateActivity(activity *model.Activity) error
func (ActivityServiceImpl) GetActivityList ¶
func (p ActivityServiceImpl) GetActivityList() ([]gorose.Data, error)
type ActivityServiceMiddleware ¶
type ActivityServiceMiddleware func(ActivityService) ActivityService
type ProductService ¶
type ProductServiceImpl ¶
type ProductServiceImpl struct { }
func (ProductServiceImpl) CreateProduct ¶
func (p ProductServiceImpl) CreateProduct(product *model.Product) error
func (ProductServiceImpl) GetProductList ¶
func (p ProductServiceImpl) GetProductList() ([]gorose.Data, error)
type ProductServiceMiddleware ¶
type ProductServiceMiddleware func(ProductService) ProductService
type Service ¶
type Service interface { // HealthCheck check service health status HealthCheck() bool }
Service Define a service interface
type ServiceMiddleware ¶
type SkAdminService ¶
type SkAdminService struct { }
UserService implement Service interface
func (SkAdminService) HealthCheck ¶
func (s SkAdminService) HealthCheck() bool
HealthCheck implement Service method 用于检查服务的健康状态,这里仅仅返回true
Click to show internal directories.
Click to hide internal directories.