Documentation ¶
Index ¶
- type ApplicationService
- func (a *ApplicationService) AddApplication(application *models.Application) bool
- func (a *ApplicationService) DeleteApplication(id uint) bool
- func (a *ApplicationService) GetApplication(id uint) *models.Application
- func (a *ApplicationService) GetApplications(page, pagesize uint, maps interface{}) interface{}
- func (a *ApplicationService) RecentApplications(maps interface{}, limit uint) interface{}
- func (a *ApplicationService) UpdateApplication(application *models.Application) bool
- type IApplicationService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationService ¶
type ApplicationService struct {
Repository appRep.IApplicationRepository `inject:""`
}
ApplicationService 注入IApplicationRepository
func (*ApplicationService) AddApplication ¶
func (a *ApplicationService) AddApplication(application *models.Application) bool
AddApplication 新增Application
func (*ApplicationService) DeleteApplication ¶
func (a *ApplicationService) DeleteApplication(id uint) bool
DeleteApplication 删除Application
func (*ApplicationService) GetApplication ¶
func (a *ApplicationService) GetApplication(id uint) *models.Application
GetApplication 根据id获取Application
func (*ApplicationService) GetApplications ¶
func (a *ApplicationService) GetApplications(page, pagesize uint, maps interface{}) interface{}
GetApplications 获取Applications信息
func (*ApplicationService) RecentApplications ¶
func (a *ApplicationService) RecentApplications(maps interface{}, limit uint) interface{}
RecentApplications 获取最近Application信息
func (*ApplicationService) UpdateApplication ¶
func (a *ApplicationService) UpdateApplication(application *models.Application) bool
UpdateApplication 更新Application
type IApplicationService ¶
type IApplicationService interface { //GetApplication 根据id获取Application GetApplication(id uint) *models.Application //AddApplication 新增Application AddApplication(application *models.Application) bool //UpdateApplication 更新Application UpdateApplication(application *models.Application) bool //GetApplications 获取Application信息 GetApplications(page, pagesize uint, maps interface{}) interface{} //RecentApplications 获取Application信息 RecentApplications(maps interface{}, limit uint) interface{} //DeleteApplication 删除Application DeleteApplication(id uint) bool }
IApplicationService Application接口定义
Click to show internal directories.
Click to hide internal directories.