service

package
v0.0.0-...-adf2ced Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTags

func AddTags(tags []string)

func AddUser

func AddUser()

func GetArticlePage

func GetArticlePage(params *dto.PageDTO) vo.PageVO

func LoadCategory

func LoadCategory(list []model.ArticleModel)

func ParseTags

func ParseTags(word string) []string

func Render

func Render(pageVO vo.PageVO) string

Types

type CategoryAble

type CategoryAble interface {
	GetCategoryId() uint
	SetCategory(category model.CategoryModel)
}

type RenderData

type RenderData struct {
	Category model.CategoryModel
	Children []model.ArticleModel
}

type RenderDataList

type RenderDataList []RenderData

func (RenderDataList) Len

func (s RenderDataList) Len() int

实现sort.Interface的Len方法

func (RenderDataList) Less

func (s RenderDataList) Less(i, j int) bool

实现sort.Interface的Less方法,根据年龄排序

func (RenderDataList) Swap

func (s RenderDataList) Swap(i, j int)

实现sort.Interface的Swap方法

Jump to

Keyboard shortcuts

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