Documentation ¶
Index ¶
- type EnvironmentService
- func (environment *EnvironmentService) AddEnvironment(Environment *models.Environment) bool
- func (environment *EnvironmentService) DeleteEnvironment(id uint) bool
- func (environment *EnvironmentService) GetEnvironment(id uint) *models.Environment
- func (environment *EnvironmentService) GetEnvironments(page, pagesize uint, maps interface{}) interface{}
- func (environment *EnvironmentService) UpdateEnvironment(Environment *models.Environment) bool
- type IEnvironmentService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnvironmentService ¶
type EnvironmentService struct {
Repository envRep.IEnvironmentRepository `inject:""`
}
ArticleService 注入IArticleRepo
func (*EnvironmentService) AddEnvironment ¶
func (environment *EnvironmentService) AddEnvironment(Environment *models.Environment) bool
func (*EnvironmentService) DeleteEnvironment ¶
func (environment *EnvironmentService) DeleteEnvironment(id uint) bool
func (*EnvironmentService) GetEnvironment ¶
func (environment *EnvironmentService) GetEnvironment(id uint) *models.Environment
func (*EnvironmentService) GetEnvironments ¶
func (environment *EnvironmentService) GetEnvironments(page, pagesize uint, maps interface{}) interface{}
GetEnvironments 获取Environment信息
func (*EnvironmentService) UpdateEnvironment ¶
func (environment *EnvironmentService) UpdateEnvironment(Environment *models.Environment) bool
type IEnvironmentService ¶
type IEnvironmentService interface { GetEnvironments(page, pagesize uint, maps interface{}) interface{} GetEnvironment(id uint) *models.Environment AddEnvironment(Environment *models.Environment) bool UpdateEnvironment(Environment *models.Environment) bool DeleteEnvironment(id uint) bool }
IEnvironmentService Environment接口定义
Click to show internal directories.
Click to hide internal directories.