project

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 IProjectService

type IProjectService interface {
	//GetProject 根据id获取Project
	GetProject(id uint) *models.Project

	//AddProject 新增Project
	AddProject(Project *models.Project) bool
	//UpdateProject 更新Project
	UpdateProject(Project *models.Project) bool
	//GetProjects 获取文章信息
	GetProjects(page, pagesize uint, maps interface{}) interface{}
	//DeleteProject 删除Project
	DeleteProject(id uint) bool
}

IProjectService Project接口定义

type ProjectService

type ProjectService struct {
	Repository appPro.IProjectRepository `inject:""`
}

ArticleService 注入IArticleRepo

func (*ProjectService) AddProject

func (a *ProjectService) AddProject(Project *models.Project) bool

AddProject 新增Project

func (*ProjectService) DeleteProject

func (a *ProjectService) DeleteProject(id uint) bool

DeleteProject 删除Project

func (*ProjectService) GetProject

func (a *ProjectService) GetProject(id uint) *models.Project

GetProject 根据id获取Project

func (*ProjectService) GetProjects

func (a *ProjectService) GetProjects(page, pagesize uint, maps interface{}) interface{}

GetProjects 获取Project信息

func (*ProjectService) UpdateProject

func (a *ProjectService) UpdateProject(Project *models.Project) bool

UpdateProject 更新Project

Jump to

Keyboard shortcuts

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