yaml

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IYamlRepository

type IYamlRepository interface {
	GetYaml(where interface{}) *models.Yaml

	AddYaml(yaml *models.Yaml) bool

	UpdateYaml(yaml *models.Yaml) bool

	GetYamls(PageNum, PageSize uint, total *uint64, where interface{}) *[]models.Yaml

	ExistYamlByName(where interface{}) bool

	DeleteYaml(id uint) bool
}

type YamlRepository

type YamlRepository struct {
	Log    logger.ILogger         `inject:""`
	Base   baseRep.BaseRepository `inject:"inline"`
	Source datasource.IDb         `inject:""`
}

func (*YamlRepository) AddYaml

func (yaml *YamlRepository) AddYaml(modYaml *models.Yaml) bool

func (*YamlRepository) DeleteYaml

func (yaml *YamlRepository) DeleteYaml(id uint) bool

func (*YamlRepository) ExistYamlByName

func (yaml *YamlRepository) ExistYamlByName(where interface{}) bool

func (*YamlRepository) GetYaml

func (yaml *YamlRepository) GetYaml(where interface{}) *models.Yaml

func (*YamlRepository) GetYamls

func (yaml *YamlRepository) GetYamls(PageNum uint, PageSize uint, total *uint64, where interface{}) *[]models.Yaml

func (*YamlRepository) UpdateYaml

func (yaml *YamlRepository) UpdateYaml(modYaml *models.Yaml) bool

Jump to

Keyboard shortcuts

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