Documentation ¶
Index ¶
- type IPodRepository
- type PodRepository
- func (pod *PodRepository) AddPod(modPod *models.Pod) bool
- func (pod *PodRepository) DeletePod(id uint) bool
- func (pod *PodRepository) DeletePodByCol(modPod *models.Pod) bool
- func (pod *PodRepository) ExistPodByName(where interface{}) bool
- func (pod *PodRepository) GetPod(where interface{}) *models.Pod
- func (pod *PodRepository) GetPods(PageNum uint, PageSize uint, total *uint64, where interface{}) *[]models.Pod
- func (pod *PodRepository) UpdatePod(modPod *models.Pod) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPodRepository ¶
type IPodRepository interface { GetPod(where interface{}) *models.Pod AddPod(pod *models.Pod) bool UpdatePod(pod *models.Pod) bool GetPods(PageNum, PageSize uint, total *uint64, where interface{}) *[]models.Pod ExistPodByName(where interface{}) bool DeletePod(id uint) bool DeletePodByCol(pod *models.Pod) bool }
type PodRepository ¶
type PodRepository struct { Log logger.ILogger `inject:""` Base baseRep.BaseRepository `inject:"inline"` Source datasource.IDb `inject:""` }
func (*PodRepository) DeletePod ¶
func (pod *PodRepository) DeletePod(id uint) bool
func (*PodRepository) DeletePodByCol ¶
func (pod *PodRepository) DeletePodByCol(modPod *models.Pod) bool
func (*PodRepository) ExistPodByName ¶
func (pod *PodRepository) ExistPodByName(where interface{}) bool
func (*PodRepository) GetPod ¶
func (pod *PodRepository) GetPod(where interface{}) *models.Pod
Click to show internal directories.
Click to hide internal directories.