Documentation ¶
Index ¶
- type BlogService
- func (s *BlogService) GetHot() ([]models.IrisPost, error)
- func (s *BlogService) GetLatest() ([]models.IrisPost, error)
- func (s *BlogService) GetNextPost(id int64) (models.IrisPost, error)
- func (s *BlogService) GetPost(id int64) (models.IrisPost, error)
- func (s *BlogService) GetPostByPage(page int64, pagesize int64) ([]models.IrisPost, error)
- func (s *BlogService) GetPostByTagID(tagid int64) ([]models.IrisPost, error)
- func (s *BlogService) GetPrevPost(id int64) (models.IrisPost, error)
- func (s *BlogService) ViewPlus(id int64) error
- type MenuService
- type MysqlService
- type PageService
- type SiteService
- type TagService
- type UserService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlogService ¶
type BlogService struct {
// contains filtered or unexported fields
}
BlogService
func (*BlogService) GetHot ¶
func (s *BlogService) GetHot() ([]models.IrisPost, error)
GetHot
@receiver s @return []models.IrisPost @return error
func (*BlogService) GetLatest ¶
func (s *BlogService) GetLatest() ([]models.IrisPost, error)
GetLatest
@receiver s @return []models.IrisPost @return error
func (*BlogService) GetNextPost ¶
func (s *BlogService) GetNextPost(id int64) (models.IrisPost, error)
GetNextPost
@receiver s @param id @return models.IrisPost @return error
func (*BlogService) GetPostByPage ¶
GetPostByPage
@receiver s @param page @param pagesize @return []models.IrisPost @return error
func (*BlogService) GetPostByTagID ¶
func (s *BlogService) GetPostByTagID(tagid int64) ([]models.IrisPost, error)
GetPostByTagID
@receiver s @param tagid @return []models.IrisPost @return error
func (*BlogService) GetPrevPost ¶
func (s *BlogService) GetPrevPost(id int64) (models.IrisPost, error)
GetPrevPost
@receiver s @param id @return models.IrisPost @return error
func (*BlogService) ViewPlus ¶
func (s *BlogService) ViewPlus(id int64) error
ViewPlus
@receiver s @param id @return error
type SiteService ¶
type SiteService struct {
// contains filtered or unexported fields
}
SiteService
type TagService ¶
type TagService struct { }
TagService
func (*TagService) GetAll ¶
func (*TagService) GetAll() ([]models.IrisTag, error)
GetAll
@receiver *TagService @return []models.IrisTag @return error
func (*TagService) GetTag ¶
func (*TagService) GetTag(id int64) (models.IrisTag, error)
GetTag
@receiver *TagService @param id @return models.IrisTag @return error
func (*TagService) GetTagPostId ¶
func (*TagService) GetTagPostId(id int64) ([]int64, error)
GetTagPostId
@receiver *TagService @param id @return []int64 @return error
type UserService ¶
type UserService struct { }
UserService
func (*UserService) GetAll ¶
func (s *UserService) GetAll() ([]models.GoadminUser, error)
GetAll
@receiver s @return []models.GoadminUser @return error
func (*UserService) GetUser ¶
func (s *UserService) GetUser(id int64) (models.GoadminUser, error)
GetUser
@receiver s @param id @return models.GoadminUser @return error
Click to show internal directories.
Click to hide internal directories.