vo

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchiveMonth

type ArchiveMonth struct {
	Month int     `json:"month"`
	Posts []*Post `json:"posts"`
}

type ArchiveYear

type ArchiveYear struct {
	Year  int     `json:"year"`
	Posts []*Post `json:"posts"`
}

type CategoryVO

type CategoryVO struct {
	dto.CategoryDTO
	Children []*CategoryVO `json:"children"`
}

type Comment

type Comment struct {
	*dto.Comment
	Children []*Comment
}

type CommentWithHasChildren

type CommentWithHasChildren struct {
	*dto.Comment
	HasChildren   bool  `json:"hasChildren"`
	ChildrenCount int64 `json:"childrenCount"`
}

type CommentWithParent

type CommentWithParent struct {
	*dto.Comment
	Parent *dto.Comment
}

type JournalCommentWithJournal

type JournalCommentWithJournal struct {
	dto.Comment
	Journal *dto.Journal `json:"journal"`
}

type LinkTeamVO

type LinkTeamVO struct {
	Team  string
	Links []*dto.Link
}

type MFAFactorAuth

type MFAFactorAuth struct {
	QRImage    string         `json:"qrImage"`
	OptAuthURL string         `json:"optAuthUrl"`
	MFAKey     string         `json:"mfaKey"`
	MFAType    consts.MFAType `json:"mfaType"`
}
type Menu struct {
	dto.Menu
	Children []*Menu `json:"children"`
}

type Pagination

type Pagination struct {
	RainbowPages     []RainbowPage
	PrevPageFullPath string
	NextPageFullPath string
	HasPrev          bool
	HasNext          bool
}

type Post

type Post struct {
	dto.Post
	CommentCount int64                  `json:"commentCount"`
	Tags         []*dto.Tag             `json:"tags"`
	Categories   []*dto.CategoryDTO     `json:"categories"`
	Metas        map[string]interface{} `json:"metas"`
}

type PostCommentWithPost

type PostCommentWithPost struct {
	dto.Comment
	Post *dto.PostMinimal `json:"post"`
}

type PostDetailVO

type PostDetailVO struct {
	dto.PostDetail
	TagIDs      []int32            `json:"tagIds"`
	Tags        []*dto.Tag         `json:"tags"`
	CategoryIDs []int32            `json:"categoryIds"`
	Categories  []*dto.CategoryDTO `json:"categories"`
	MetaIDs     []int32            `json:"metaIds"`
	Metas       []*dto.Meta        `json:"metas"`
}

type RainbowPage

type RainbowPage struct {
	Page      int
	FullPath  string
	IsCurrent bool
}

type SheetCommentWithSheet

type SheetCommentWithSheet struct {
	dto.Comment
	*dto.PostMinimal
}

type SheetDetail

type SheetDetail struct {
	dto.PostDetail
	MetaIDs []int32     `json:"metaIds"`
	Metas   []*dto.Meta `json:"metas"`
}

type SheetList

type SheetList struct {
	dto.Post
	CommentCount int64 `json:"commentCount"`
}

Jump to

Keyboard shortcuts

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