service

package
v0.0.0-...-165d932 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 29, 2023 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

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) GetPost

func (s *BlogService) GetPost(id int64) (models.IrisPost, error)

func (*BlogService) GetPostByPage

func (s *BlogService) GetPostByPage(page int64, pagesize int64) ([]models.IrisPost, error)

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 MenuService struct {
}

MenuService

func (s *MenuService) GetAll() ([]models.IrisMenu, error)

GetAll

@receiver s
@return []models.IrisMenu
@return error

type MysqlService

type MysqlService struct {
}

MysqlService

func (*MysqlService) Init

func (s *MysqlService) Init(c db.Connection)

Init

@receiver s
@param c

type PageService

type PageService struct {
}

PageService

func (*PageService) GetPage

func (s *PageService) GetPage(slug string) (models.IrisPage, error)

GetPage

@receiver s
@param slug
@return models.IrisPage
@return error

type SiteService

type SiteService struct {
	// contains filtered or unexported fields
}

SiteService

func (*SiteService) GetSite

func (s *SiteService) GetSite() (models.IrisSite, error)

GetSite

@receiver s
@return models.IrisSite
@return error

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

Jump to

Keyboard shortcuts

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