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 EnvironmentRepository

type EnvironmentRepository struct {
	Log  logger.ILogger         `inject:""`
	Base baseRep.BaseRepository `inject:"inline"`
}

EnvironmentRepository 注入IDb

func (*EnvironmentRepository) AddEnvironment

func (environment *EnvironmentRepository) AddEnvironment(Environment *models.Environment) bool

func (*EnvironmentRepository) DeleteEnvironment

func (environment *EnvironmentRepository) DeleteEnvironment(id uint) bool

func (*EnvironmentRepository) GetEnvironment

func (environment *EnvironmentRepository) GetEnvironment(where interface{}) *models.Environment

func (*EnvironmentRepository) GetEnvironments

func (environment *EnvironmentRepository) GetEnvironments(PageNum uint, PageSize uint, total *uint64, where interface{}) *[]models.Environment

GetEnvironments 获取环境列表

func (*EnvironmentRepository) UpdateEnvironment

func (environment *EnvironmentRepository) UpdateEnvironment(Environment *models.Environment) bool

type IEnvironmentRepository

type IEnvironmentRepository interface {
	GetEnvironments(PageNum, PageSize uint, total *uint64, where interface{}) *[]models.Environment

	GetEnvironment(where interface{}) *models.Environment

	AddEnvironment(Environment *models.Environment) bool

	UpdateEnvironment(Environment *models.Environment) bool

	DeleteEnvironment(id uint) bool
}

IEnvironmentRepository Environment接口定义

Jump to

Keyboard shortcuts

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