Documentation
¶
Index ¶
- type AboutReq
- type AboutRes
- type AddCategoryReq
- type AddCategoryRes
- type AddTagsReq
- type AddTagsRes
- type Badges
- type BlogBase
- type BlogDetailReq
- type BlogDetailRes
- type Blogs
- type Categories
- type Category
- type CategoryAndTagReq
- type CategoryAndTagRes
- type Categorys
- type CityVisitor
- type CommentListReq
- type CommentListRes
- type CommentReq
- type CommentRes
- type Comments
- type CommonPaginationReq
- type Copyright
- type CreateBlogReq
- type CreateBlogRes
- type CreateMomentReq
- type CreateMomentRes
- type DashboardRes
- type DashboartReq
- type DeleteBlogReq
- type DeleteBlogRes
- type DeleteCategoryReq
- type DeleteCategoryRes
- type DeleteMomentReq
- type DeleteMomentRes
- type DeleteTagsReq
- type DeleteTagsRes
- type Favorites
- type HelloReq
- type HelloRes
- type Introduction
- type List
- type LoginReq
- type LoginRes
- type Moment
- type MomentsList
- type MomoentDetilReq
- type MomoentDetilRes
- type NbBlogDetailReq
- type NbBlogDetailRes
- type NbBlogsReq
- type NbBlogsRes
- type NewBlogList
- type RandomBlogList
- type Series
- type Settings
- type ShowBlogsReq
- type ShowBlogsRes
- type ShowCategoryReq
- type ShowCategoryRes
- type ShowMomentsReq
- type ShowMomentsRes
- type ShowTagsReq
- type ShowTagsRes
- type SiteInfo
- type SiteReq
- type SiteRes
- type SiteSettingsDetilReq
- type SiteSettingsDetilRes
- type Tag
- type Tags
- type Type1
- type Type2
- type Type3
- type UpdateAboutReq
- type UpdateAboutRes
- type UpdateBlogRecommendReq
- type UpdateBlogRecommendRes
- type UpdateBlogReq
- type UpdateBlogRes
- type UpdateBlogTopReq
- type UpdateBlogTopRes
- type UpdateBlogVisibilityReq
- type UpdateBlogVisibilityRes
- type UpdateCategoryReq
- type UpdateCategoryRes
- type UpdateMomentReq
- type UpdateMomentRes
- type UpdatePublishedStatusReq
- type UpdatePublishedStatusRes
- type UpdateSiteSettingsReq
- type UpdateSiteSettingsRes
- type UpdateTagsReq
- type UpdateTagsRes
- type UserGetInfoRes
- type VisitRecord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddCategoryReq ¶
type AddCategoryRes ¶
type AddCategoryRes struct { }
type AddTagsReq ¶
type AddTagsRes ¶
type AddTagsRes struct { }
type BlogBase ¶
type BlogBase struct { ID int `json:"id"` Title string `json:"title"` FirstPicture string `json:"firstPicture"` Content interface{} `json:"content"` Description interface{} `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 interface{} `json:"views"` Words interface{} `json:"words"` ReadTime interface{} `json:"readTime"` Password string `json:"password"` UserId interface{} `json:"user"` Category Categorys `json:"category"` Tags []interface{} `json:"tags"` }
type BlogDetailReq ¶
type BlogDetailRes ¶
type BlogDetailRes 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"` Category Categories `json:"category"` Tags []Tags `json:"tags"` }
type Blogs ¶
type Blogs struct { List []BlogBase `json:"list"` CommonPaginationReq }
type Categories ¶
type CategoryAndTagReq ¶
type CategoryAndTagRes ¶
type CategoryAndTagRes struct { Categories []Categories `json:"categories"` Tags []Tags `json:"tags"` }
type CityVisitor ¶
type CommentListReq ¶
type CommentListRes ¶
type CommentReq ¶
type CommentReq struct { g.Meta `path:"/comment" method:"post" summart:"评论" tags:"评论"` Content string `json:"content"` Nickname string `json:"nickname"` Email string `json:"email"` Website string `json:"website"` Notice bool `json:"notice"` Page int `json:"page"` BlogID int `json:"blogId"` ParentCommentID int `json:"parentCommentId"` }
type CommentRes ¶
type CommentRes struct { }
type CommonPaginationReq ¶
type CommonPaginationReq struct { Total int `json:"total"` PageNum int `json:"pageNum"` PageSize int `json:"pageSize"` Size int `json:"size"` StartRow int `json:"startRow"` EndRow int `json:"endRow"` Pages int `json:"pages"` PrePage int `json:"prePage"` NextPage int `json:"nextPage"` IsFirstPage bool `json:"isFirstPage"` IsLastPage bool `json:"isLastPage"` HasPreviousPage bool `json:"hasPreviousPage"` HasNextPage bool `json:"hasNextPage"` }
type CreateBlogReq ¶
type CreateBlogReq struct { g.Meta `path:"/admin/blog" method:"post" summart:"写文章" tags:"写文章"` Authorization string `json:"Authorization" in:"header" dc:"Authorization"` Title string `json:"title"` FirstPicture string `json:"firstPicture"` Description string `json:"description"` Content string `json:"content"` Cate int `json:"cate"` TagList []int `json:"tagList"` Words string `json:"words"` ReadTime int `json:"readTime"` Views int `json:"views"` Appreciation bool `json:"appreciation"` Recommend bool `json:"recommend"` CommentEnabled bool `json:"commentEnabled"` Top bool `json:"top"` Published bool `json:"published"` Password string `json:"password"` }
type CreateBlogRes ¶
type CreateBlogRes struct { }
type CreateMomentReq ¶
type CreateMomentRes ¶
type CreateMomentRes struct { }
type DashboardRes ¶
type DashboardRes struct { Uv int `json:"uv"` BlogCount int `json:"blogCount"` Pv int `json:"pv"` CityVisitor []CityVisitor `json:"cityVisitor"` Tag Tag `json:"tag"` Category Category `json:"category"` VisitRecord VisitRecord `json:"visitRecord"` CommentCount int `json:"commentCount"` }
type DashboartReq ¶
type DeleteBlogReq ¶
type DeleteBlogRes ¶
type DeleteBlogRes struct { }
type DeleteCategoryReq ¶
type DeleteCategoryRes ¶
type DeleteCategoryRes struct { }
type DeleteMomentReq ¶
type DeleteMomentRes ¶
type DeleteMomentRes struct { }
type DeleteTagsReq ¶
type DeleteTagsRes ¶
type DeleteTagsRes struct { }
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 interface{} `json:"parentCommentNickname"` ReplyComments []interface{} `json:"replyComments"` }
type LoginRes ¶
type LoginRes struct { User *UserGetInfoRes `json:"user"` Token string `json:"token"` }
type MomentsList ¶
type MomoentDetilReq ¶
type MomoentDetilRes ¶
type NbBlogDetailReq ¶
type NbBlogDetailRes ¶
type NbBlogDetailRes struct { ID int `json:"id"` Title string `json:"title"` Content string `json:"content"` 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"` Category Categories `json:"category"` Tags []Tags `json:"tags"` }
type NbBlogsReq ¶
type NbBlogsRes ¶
type NewBlogList ¶
type RandomBlogList ¶
type ShowBlogsReq ¶
type ShowBlogsRes ¶
type ShowBlogsRes struct { Blogs Blogs `json:"blogs"` Categories []Categories `json:"categories"` }
type ShowCategoryReq ¶
type ShowCategoryRes ¶
type ShowCategoryRes struct { List []Categorys `json:"list"` CommonPaginationReq }
type ShowMomentsReq ¶
type ShowMomentsRes ¶
type ShowMomentsRes struct { List []MomentsList `json:"list"` CommonPaginationReq }
type ShowTagsReq ¶
type ShowTagsRes ¶
type ShowTagsRes struct { List []Tags `json:"list"` CommonPaginationReq }
type SiteRes ¶
type SiteRes struct { Badges []Badges `json:"badges"` SiteInfo SiteInfo `json:"siteInfo"` Introduction Introduction `json:"introduction"` NewBlogList []NewBlogList `json:"newBlogList"` CategoryList []Categorys `json:"categoryList"` TagList []Tags `json:"tagList"` RandomBlogList []RandomBlogList `json:"randomBlogList"` }
type SiteSettingsDetilReq ¶
type SiteSettingsDetilRes ¶
type UpdateAboutReq ¶
type UpdateAboutReq struct { g.Meta `path:"/admin/about" method:"put" summart:"更新关于我" tags:"更新关于我"` Authorization string `json:"Authorization" in:"header" dc:"Authorization"` MusicID string `json:"musicId"` CommentEnabled string `json:"commentEnabled"` Title string `json:"title"` Content string `json:"content"` }
type UpdateAboutRes ¶
type UpdateAboutRes struct { }
type UpdateBlogRecommendReq ¶
type UpdateBlogRecommendRes ¶
type UpdateBlogRecommendRes struct { }
type UpdateBlogReq ¶
type UpdateBlogReq struct { g.Meta `path:"/admin/blog" method:"put" summart:"更新文章" tags:"更新文章"` Authorization string `json:"Authorization" in:"header" dc:"Authorization"` Id int `json:"id"` CreateBlogReq }
type UpdateBlogRes ¶
type UpdateBlogRes struct { }
type UpdateBlogTopReq ¶
type UpdateBlogTopRes ¶
type UpdateBlogTopRes struct { }
type UpdateBlogVisibilityReq ¶
type UpdateBlogVisibilityReq struct { g.Meta `path:"/admin/blog/{Id}/visibility" method:"put" summart:"修改文章可见性信息" tags:"修改文章可见性信息"` Authorization string `json:"Authorization" in:"header" dc:"Authorization"` Id int `json:"id" in:"path" dc:"文章id"` Appreciation bool `json:"appreciation" dc:"赞赏"` Recommend bool `json:"recommend" dc:"推荐"` CommentEnabled bool `json:"commentEnabled" dc:"评论"` Top bool `json:"top" dc:"置顶"` Published bool `json:"published" dc:"是否公开"` Password string `json:"password" dc:"私密密码"` }
type UpdateBlogVisibilityRes ¶
type UpdateBlogVisibilityRes struct { }
type UpdateCategoryReq ¶
type UpdateCategoryRes ¶
type UpdateCategoryRes struct { }
type UpdateMomentReq ¶
type UpdateMomentRes ¶
type UpdateMomentRes struct { }
type UpdatePublishedStatusRes ¶
type UpdatePublishedStatusRes struct { }
type UpdateSiteSettingsReq ¶
type UpdateSiteSettingsRes ¶
type UpdateSiteSettingsRes struct { }
type UpdateTagsReq ¶
type UpdateTagsRes ¶
type UpdateTagsRes struct { }
type UserGetInfoRes ¶
type UserGetInfoRes struct { Id int `json:"id"` Username string `json:"username"` Password interface{} `json:"password"` Nickname string `json:"nickname"` Avatar string `json:"avatar"` Email string `json:"email"` CreateTime int64 `json:"createTime"` UpdateTime int64 `json:"updateTime"` Role string `json:"role"` }
type VisitRecord ¶
Click to show internal directories.
Click to hide internal directories.