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

Documentation

Index

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接口定义

Jump to

Keyboard shortcuts

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