Documentation ¶
Index ¶
- type EnvironmentRepository
- func (environment *EnvironmentRepository) AddEnvironment(Environment *models.Environment) bool
- func (environment *EnvironmentRepository) DeleteEnvironment(id uint) bool
- func (environment *EnvironmentRepository) GetEnvironment(where interface{}) *models.Environment
- func (environment *EnvironmentRepository) GetEnvironments(PageNum uint, PageSize uint, total *uint64, where interface{}) *[]models.Environment
- func (environment *EnvironmentRepository) UpdateEnvironment(Environment *models.Environment) bool
- type IEnvironmentRepository
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接口定义
Click to show internal directories.
Click to hide internal directories.