application

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 ApplicationRepository

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

ApplicationRepository 注入IDb

func (*ApplicationRepository) AddApplication

func (a *ApplicationRepository) AddApplication(application *models.Application) bool

AddApplication 新增Application

func (*ApplicationRepository) DeleteApplication

func (a *ApplicationRepository) DeleteApplication(id uint) bool

DeleteApplication 删除Application

func (*ApplicationRepository) ExistApplicationByName

func (a *ApplicationRepository) ExistApplicationByName(where interface{}) bool

ExistApplicationByName 判断用户名是否已存在

func (*ApplicationRepository) GetApplication

func (a *ApplicationRepository) GetApplication(where interface{}) *models.Application

GetApplication 根据id获取Application

func (*ApplicationRepository) GetApplications

func (a *ApplicationRepository) GetApplications(PageNum uint, PageSize uint, total *uint64, where interface{}) *[]models.Application

GetApplications 获取Applications

func (*ApplicationRepository) RecentApplications

func (a *ApplicationRepository) RecentApplications(where interface{}, limit uint) *[]models.Application

RecentApplications 获取Applications

func (*ApplicationRepository) UpdateApplication

func (a *ApplicationRepository) UpdateApplication(application *models.Application) bool

UpdateApplication 更新Application

type IApplicationRepository

type IApplicationRepository interface {
	//GetApplication 根据id获取Application
	GetApplication(where interface{}) *models.Application
	//AddApplication 新增Application
	AddApplication(application *models.Application) bool
	//UpdateApplication 更新Application
	UpdateApplication(application *models.Application) bool
	//GetApplications 获取Application
	GetApplications(PageNum, PageSize uint, total *uint64, where interface{}) *[]models.Application
	//RecentApplications 获取最近Application
	RecentApplications(where interface{}, limit uint) *[]models.Application
	//ExistApplicationByName 是否存在已有应用
	ExistApplicationByName(where interface{}) bool
	//DeleteApplication 删除已有应用
	DeleteApplication(id uint) bool
}

IApplicationRepository Application接口定义

Jump to

Keyboard shortcuts

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