domain

package
v0.0.0-...-594631a Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminComment

type AdminComment struct {
	Id string
	// 文章信息
	PostInfo PostInfo
	// 评论的内容
	Content string
	// 用户信息
	UserInfo UserInfo4Comment

	// 该评论下的所有回复的内容
	Replies        []AdminReply
	ApprovalStatus bool
	// 评论时间
	CreatedAt int64
	// 修改时间
	UpdatedAt int64
}

type AdminReply

type AdminReply struct {
	ReplyId string
	// 回复内容
	Content string
	// 被回复的回复 Id
	ReplyToId string
	// 用户信息
	UserInfo UserInfo4Reply
	// 被回复用户的信息
	RepliedUserInfo UserInfo4Reply
	ApprovalStatus  bool
	// 回复时间
	CreatedAt int64
	// 修改时间
	UpdatedAt int64
}

type Comment

type Comment struct {
	Id string
	// 文章信息
	PostInfo PostInfo
	// 评论的内容
	Content string
	// 用户信息
	UserInfo       UserInfo
	ApprovalStatus bool
	CreateTime     int64
}

type CommentEvent

type CommentEvent struct {
	PostId    string   `json:"post_id"`
	CommentId string   `json:"comment_id"`
	RepliesId []string `json:"replies_id"`
	Count     int      `json:"count"`
	Type      string   `json:"type"`
}

type CommentReply

type CommentReply struct {
	ReplyId string
	// 回复内容
	Content string
	// 被回复的回复 Id
	ReplyToId string
	// 用户信息
	UserInfo UserInfo4Reply
	// 被回复用户的信息
	RepliedUserInfo UserInfo4Reply
	ApprovalStatus  bool
	CreatedAt       int64
}

type CommentReplyWithPostInfo

type CommentReplyWithPostInfo struct {
	CommentReply
	PostInfo PostInfo
}

type CommentWithReplies

type CommentWithReplies struct {
	Comment
	Replies []CommentReply
}

type EmailInfo

type EmailInfo struct {
	Email   string
	PostUrl string
}

type LatestComment

type LatestComment struct {
	PostInfo
	Name      string
	Content   string
	Email     string
	CreatedAt int64
}

type Page

type Page struct {
	Size           int64
	Skip           int64
	Sort           string
	ApprovalStatus *bool
}

func (*Page) SortToBson

func (p *Page) SortToBson() bson.D

type PostEvent

type PostEvent struct {
	PostId            string   `json:"post_id"`
	AddedCategoryId   []string `json:"added_category_id,omitempty"`
	DeletedCategoryId []string `json:"deleted_category_id,omitempty"`
	AddedTagId        []string `json:"added_tag_id,omitempty"`
	DeletedTagId      []string `json:"deleted_tag_id,omitempty"`
	NewFileId         string   `json:"new_file_id,omitempty"`
	OldFileId         string   `json:"old_file_id,omitempty"`
	Type              string   `json:"type"`
}

type PostInfo

type PostInfo struct {
	// 文章 ID
	PostId string
	// 文章标题字段
	PostTitle string
	// 文章链接
	PostUrl string
}

type ReplyWithCId

type ReplyWithCId struct {
	CommentId string
	ReplyIds  []string
}

type UserInfo

type UserInfo struct {
	Name    string
	Email   string
	Ip      string
	Website string
}

type UserInfo4Comment

type UserInfo4Comment UserInfo

type UserInfo4Reply

type UserInfo4Reply UserInfo

Jump to

Keyboard shortcuts

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