Documentation ¶
Index ¶
- type IProjectService
- type ProjectService
- func (a *ProjectService) AddProject(Project *models.Project) bool
- func (a *ProjectService) DeleteProject(id uint) bool
- func (a *ProjectService) GetProject(id uint) *models.Project
- func (a *ProjectService) GetProjects(page, pagesize uint, maps interface{}) interface{}
- func (a *ProjectService) UpdateProject(Project *models.Project) bool
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
Click to show internal directories.
Click to hide internal directories.