environment

package
v0.0.0-...-89c19b0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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接口定义

Jump to

Keyboard shortcuts

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