Documentation ¶
Index ¶
- type AboutOutput
- type AllCategoryOutput
- type AllTagsOutput
- type Badges
- type Blog
- type BlogDetailOutput
- type BlogsListOutput
- type Categories
- type CategoryAndTagOutput
- type CommentInput
- type CommentListOutput
- type Comments
- type Context
- type Copyright
- type CreateBlogInput
- type CreateMomentInput
- type Favorites
- type Introduction
- type List
- type MomentDetilOutput
- type NewBlogList
- type RandomBlogList
- type Settings
- type ShowMomentOutput
- type SiteInfo
- type SiteOutput
- type SiteSettingsDetilOutput
- type Tags
- type Type1
- type Type2
- type Type3
- type UpdateBlogVisibilityInput
- type UpdateSiteSettingsInput
- type UserLoginOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AboutOutput ¶
type AllCategoryOutput ¶
type AllCategoryOutput struct {
v1.ShowCategoryRes
}
type AllTagsOutput ¶
type AllTagsOutput struct {
v1.ShowTagsRes
}
type Blog ¶
type Blog struct { Id int `json:"id"` Title string `json:"title"` FirstPicture string `json:"firstPicture"` Content interface{} `json:"content"` Description interface{} `json:"description"` IsPublished bool `json:"published"` IsRecommend bool `json:"recommend"` IsAppreciation bool `json:"appreciation"` IsCommentEnabled bool `json:"commentEnabled"` IsTop bool `json:"top"` CreateTime string `json:"createTime"` UpdateTime string `json:"updateTime"` Views interface{} `json:"views"` Words interface{} `json:"words"` ReadTime interface{} `json:"readTime"` Password string `json:"password"` UserId interface{} `json:"user"` CategoryId int64 `json:"categoryId"` Category struct { ID int `json:"id"` CategoryName string `json:"name"` Blogs []interface{} `json:"blogs"` } `json:"category"` Tags []Tags `json:"tags"` }
type BlogDetailOutput ¶
type BlogDetailOutput struct { ID int `json:"id"` Title string `json:"title"` FirstPicture string `json:"firstPicture"` Content string `json:"content"` Description string `json:"description"` Published bool `json:"published"` Recommend bool `json:"recommend"` Appreciation bool `json:"appreciation"` CommentEnabled bool `json:"commentEnabled"` Top bool `json:"top"` CreateTime string `json:"createTime"` UpdateTime string `json:"updateTime"` Views int `json:"views"` Words int `json:"words"` ReadTime int `json:"readTime"` Password string `json:"password"` User interface{} `json:"user"` CategoryId int64 `json:"categoryId"` Category Categories `json:"category"` Tags []entity.Tag `json:"tags"` }
type BlogsListOutput ¶
type BlogsListOutput struct { List []Blog `json:"list"` v1.CommonPaginationReq }
type Categories ¶
type CategoryAndTagOutput ¶
type CategoryAndTagOutput struct { Categories []Categories `json:"categories"` Tags []Tags `json:"tags"` }
type CommentInput ¶
type CommentListOutput ¶
type Context ¶
type Context struct { Token *token.MyCacheToken // token信息,包含上下文用户信息 Data g.Map // 自定KV变量,业务模块根据需要设置,不固定 }
Context 请求上下文结构
type CreateBlogInput ¶
type CreateBlogInput struct { Title string // 文章标题 FirstPicture string // 文章首图,用于随机文章展示 Content string // 文章正文 Description string // 描述 IsPublished bool // 公开或私密 IsRecommend bool // 推荐开关 IsAppreciation bool // 赞赏开关 IsCommentEnabled bool // 评论开关 Views int // 浏览次数 Words string // 文章字数 ReadTime int // 阅读时长(分钟) CategoryId int // 文章分类 IsTop bool // 是否置顶 Password string // 密码保护 User string // 文章作者 TagList []int // 标签列表 }
type CreateMomentInput ¶
type Introduction ¶
type Introduction struct { Avatar string `json:"avatar"` Name string `json:"name"` Github string `json:"github"` Telegram string `json:"telegram"` Qq string `json:"qq"` Bilibili string `json:"bilibili"` Netease string `json:"netease"` Email string `json:"email"` RollText []string `json:"rollText"` Favorites []Favorites `json:"favorites"` }
type List ¶
type List struct { ID int `json:"id"` Nickname string `json:"nickname"` Content string `json:"content"` Avatar string `json:"avatar"` CreateTime string `json:"createTime"` Website string `json:"website"` AdminComment bool `json:"adminComment"` ParentCommentID string `json:"parentCommentId"` ParentCommentNickname string `json:"parentCommentNickname"` ReplyComments []List `json:"replyComments"` }
type MomentDetilOutput ¶
type NewBlogList ¶
type RandomBlogList ¶
type ShowMomentOutput ¶
type ShowMomentOutput struct { List []entity.Moment `json:"list"` v1.CommonPaginationReq }
type SiteOutput ¶
type SiteOutput struct { Badges []Badges `json:"badges"` SiteInfo SiteInfo `json:"siteInfo"` Introduction Introduction `json:"introduction"` NewBlogList []NewBlogList `json:"newBlogList"` CategoryList []Categories `json:"categoryList"` TagList []Tags `json:"tagList"` RandomBlogList []RandomBlogList `json:"randomBlogList"` }
type SiteSettingsDetilOutput ¶
type UpdateSiteSettingsInput ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.