service

package
v0.0.0-...-312ee99 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivityService

type ActivityService interface {
	GetActivityList() ([]gorose.Data, error)
	CreateActivity(activity *model.Activity) error
}

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 ProductService interface {
	CreateProduct(product *model.Product) error
	GetProductList() ([]gorose.Data, error)
}

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 ServiceMiddleware func(Service) Service

type SkAdminService

type SkAdminService struct {
}

UserService implement Service interface

func (SkAdminService) HealthCheck

func (s SkAdminService) HealthCheck() bool

HealthCheck implement Service method 用于检查服务的健康状态,这里仅仅返回true

Jump to

Keyboard shortcuts

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