service

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api added in v1.2.7

type Api struct {
	Method string
	Url    string
	Params []web.Param
}

type ControllerModel added in v1.2.7

type ControllerModel struct {
	Controller string
	APIs       []Api
}

type DemoCacheService added in v1.1.4

type DemoCacheService struct {
	bean.Component
	Cache cache.ICache //使用cache注入缓存实现
}

func (*DemoCacheService) GetFromCache added in v1.1.4

func (r *DemoCacheService) GetFromCache(key string) interface{}

func (*DemoCacheService) SaveCache added in v1.1.4

func (r *DemoCacheService) SaveCache(key, val string) interface{}

type EmployeeService added in v1.1.4

type EmployeeService struct {
	bean.Component
	Repo *repository.AccountRepository
}

func (*EmployeeService) GetAllUsers added in v1.1.8

func (r *EmployeeService) GetAllUsers() []model.Account

func (*EmployeeService) GetUserById added in v1.1.8

func (r *EmployeeService) GetUserById(username string) model.Account

func (*EmployeeService) SaveUser added in v1.1.8

func (r *EmployeeService) SaveUser(username string, account model.Account) model.Account

type RouteService added in v1.2.7

type RouteService struct {
	Controllers []component.Controller //使用切片接口类型注入所有实现类
	AppName     string                 `value:"application.app_name"` //使用value标签实现配置文件注入
}

func (*RouteService) Apis added in v1.2.7

func (*RouteService) Bean added in v1.2.7

func (t *RouteService) Bean() string

func (*RouteService) Service added in v1.2.7

func (t *RouteService) Service() string

Jump to

Keyboard shortcuts

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