v1

package
v0.0.0-...-3cb022a Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 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 AboutReq

type AboutReq struct {
	g.Meta        `path:"/admin/about" method:"get" summart:"关于我展示" tags:"关于我展示"`
	Authorization string `json:"Authorization" in:"header"  dc:"Authorization"`
}

type AboutRes

type AboutRes struct {
	MusicID        string `json:"musicId"`
	CommentEnabled string `json:"commentEnabled"`
	Title          string `json:"title"`
	Content        string `json:"content"`
}

type AddCategoryReq

type AddCategoryReq struct {
	g.Meta       `path:"/admin/category" method:"post" summart:"添加标签" tags:"添加标签"`
	CategoryName string `json:"name"`
	Color        string `json:"color"`
}

type AddCategoryRes

type AddCategoryRes struct {
}

type AddTagsReq

type AddTagsReq struct {
	g.Meta  `path:"/admin/tag" method:"post" summart:"添加标签" tags:"添加标签"`
	TagName string `json:"name"`
	Color   string `json:"color"`
}

type AddTagsRes

type AddTagsRes struct {
}

type Badges

type Badges struct {
	Title   string `json:"title"`
	URL     string `json:"url"`
	Subject string `json:"subject"`
	Value   string `json:"value"`
	Color   string `json:"color"`
}

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 BlogDetailReq struct {
	g.Meta        `path:"/admin/blog" method:"get" summart:"文章详情" tags:"文章详情"`
	Authorization string `json:"Authorization" in:"header"  dc:"Authorization"`
	Id            int    `json:"id"`
}

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 Categories struct {
	Id           int      `json:"id"`
	Categoryname string   `json:"name"`
	Blogs        []string `json:"blogs"`
}

type Category

type Category struct {
	Legend []string `json:"legend"`
	Series []Series `json:"series"`
}

type CategoryAndTagReq

type CategoryAndTagReq struct {
	g.Meta `path:"/admin/categoryAndTag" method:"get" summart:"获取标签" tags:"获取标签"`
}

type CategoryAndTagRes

type CategoryAndTagRes struct {
	Categories []Categories `json:"categories"`
	Tags       []Tags       `json:"tags"`
}

type Categorys

type Categorys struct {
	Id           int      `json:"id"`
	CategoryName string   `json:"name"`
	Blogs        []string `json:"blogs"`
}

type CityVisitor

type CityVisitor struct {
	City string `json:"city"`
	Uv   int    `json:"uv"`
}

type CommentListReq

type CommentListReq struct {
	g.Meta   `path:"/comments" method:"get" summart:"评论列表" tags:"评论列表"`
	Page     int `json:"page"`
	BlogId   int `json:"blogId"`
	PageNum  int `json:"pageNum"`
	PageSize int `json:"pageSize"`
}

type CommentListRes

type CommentListRes struct {
	Comments     Comments `json:"comments"`
	AllComment   int      `json:"allComment"`
	CloseComment int      `json:"closeComment"`
}

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 Comments

type Comments struct {
	TotalPage int    `json:"totalPage"`
	List      []List `json:"list"`
}

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"`
	NavigatePages     int   `json:"navigatePages"`
	NavigatepageNums  []int `json:"navigatepageNums"`
	NavigateFirstPage int   `json:"navigateFirstPage"`
	NavigateLastPage  int   `json:"navigateLastPage"`
}
type Copyright struct {
	Title    string `json:"title"`
	SiteName string `json:"siteName"`
}

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 CreateMomentReq struct {
	g.Meta        `path:"/admin/moment" method:"post" summart:" 创建动态" tags:"创建动态"`
	Authorization string `json:"Authorization" in:"header"  dc:"Authorization"`
	Moment
}

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 DashboartReq struct {
	g.Meta        `path:"/admin/dashboard" method:"get" summart:"界面" tags:"界面"`
	Authorization string `json:"Authorization" in:"header"  dc:"Authorization"`
}

type DeleteBlogReq

type DeleteBlogReq struct {
	g.Meta `path:"/admin/blog" method:"delete" summart:"删除文章" tags:"删除文章"`
	Id     int `json:"id"`
}

type DeleteBlogRes

type DeleteBlogRes struct {
}

type DeleteCategoryReq

type DeleteCategoryReq struct {
	g.Meta `path:"/admin/category" method:"delete" summart:"删除标签" tags:"删除标签"`
	Id     int `json:"id"`
}

type DeleteCategoryRes

type DeleteCategoryRes struct {
}

type DeleteMomentReq

type DeleteMomentReq struct {
	g.Meta        `path:"/admin/moment" method:"delete" summart:" 删除动态" tags:"删除动态"`
	Authorization string `json:"Authorization" in:"header"  dc:"Authorization"`
	Id            int    `json:"id"`
}

type DeleteMomentRes

type DeleteMomentRes struct {
}

type DeleteTagsReq

type DeleteTagsReq struct {
	g.Meta `path:"/admin/tag" method:"delete" summart:"删除标签" tags:"删除标签"`
	Id     int `json:"id"`
}

type DeleteTagsRes

type DeleteTagsRes struct {
}

type Favorites

type Favorites struct {
	Title   string `json:"title"`
	Content string `json:"content"`
}

type HelloReq

type HelloReq struct {
	g.Meta `path:"/hello" tags:"Hello" method:"get" summary:"You first hello api"`
}

type HelloRes

type HelloRes struct {
	g.Meta `mime:"text/html" example:"string"`
}

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 LoginReq

type LoginReq struct {
	g.Meta   `path:"/admin/login" method:"post" summart:"用户登录" tags:"登录"`
	Name     string `json:"name"`
	Password string `json:"password"`
}

type LoginRes

type LoginRes struct {
	User  *UserGetInfoRes `json:"user"`
	Token string          `json:"token"`
}

type Moment

type Moment struct {
	Content    string      `json:"content"`
	CreateTime *gtime.Time `json:"createTime"`
	Likes      int         `json:"likes"`
	Published  bool        `json:"published"`
}

type MomentsList

type MomentsList struct {
	Id int `json:"id"`
	Moment
}

type MomoentDetilReq

type MomoentDetilReq struct {
	g.Meta        `path:"/admin/moment" method:"get" summart:" 动态详情" tags:"动态详情"`
	Authorization string `json:"Authorization" in:"header"  dc:"Authorization"`
	Id            int    `json:"id"`
}

type MomoentDetilRes

type MomoentDetilRes struct {
	ID         int    `json:"id"`
	Content    string `json:"content"`
	CreateTime string `json:"createTime"`
	Likes      int    `json:"likes"`
	Published  bool   `json:"published"`
}

type NbBlogDetailReq

type NbBlogDetailReq struct {
	g.Meta `path:"/blog" method:"get" summart:"前台文章详情" tags:"前台文章详情"`
	Id     int `json:"id"`
}

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 NbBlogsReq struct {
	g.Meta  `path:"/blogs" method:"get" summart:"前台展示文章列表" tags:"前台展示文章列表"`
	PageNum int `json:"PageNum"`
}

type NbBlogsRes

type NbBlogsRes struct {
	List      []BlogBase `json:"list"`
	Totalpage int        `json:"totalPage"`
}

type NewBlogList

type NewBlogList struct {
	ID       int    `json:"id"`
	Title    string `json:"title"`
	Password string `json:"password"`
	Privacy  bool   `json:"privacy"`
}

type RandomBlogList

type RandomBlogList struct {
	ID           int    `json:"id"`
	Title        string `json:"title"`
	FirstPicture string `json:"firstPicture"`
	CreateTime   string `json:"createTime"`
	Password     string `json:"password"`
	Privacy      bool   `json:"privacy"`
}

type Series

type Series struct {
	ID    int    `json:"id"`
	Name  string `json:"name"`
	Value int    `json:"value"`
}

type Settings

type Settings struct {
	ID     int    `json:"id"`
	NameEn string `json:"nameEn"`
	NameZh string `json:"nameZh"`
	Value  string `json:"value"`
	Type   int    `json:"type"`
}

type ShowBlogsReq

type ShowBlogsReq struct {
	g.Meta        `path:"/admin/blogs" method:"get" summart:"展示文章列表" tags:"展示文章列表"`
	Authorization string `json:"Authorization" in:"header"  dc:"Authorization"`
	Title         string `json:"title"`
	CategoryId    int    `json:"categoryId"`
	PageNum       int    `json:"pageNum"`
	PageSize      int    `json:"pageSize"`
}

type ShowBlogsRes

type ShowBlogsRes struct {
	Blogs      Blogs        `json:"blogs"`
	Categories []Categories `json:"categories"`
}

type ShowCategoryReq

type ShowCategoryReq struct {
	g.Meta   `path:"/admin/categories" method:"get" summart:"获取标签页" tags:"获取标签页"`
	PageNum  int `json:"pageNum"`
	PageSize int `json:"pageSize"`
}

type ShowCategoryRes

type ShowCategoryRes struct {
	List []Categorys `json:"list"`
	CommonPaginationReq
}

type ShowMomentsReq

type ShowMomentsReq struct {
	g.Meta        `path:"/admin/moments" method:"get" summart:" 展示动态" tags:"展示动态"`
	Authorization string `json:"Authorization" in:"header"  dc:"Authorization"`
	PageNum       int    `json:"pageNum"`
	PageSize      int    `json:"pageSize"`
}

type ShowMomentsRes

type ShowMomentsRes struct {
	List []MomentsList `json:"list"`
	CommonPaginationReq
}

type ShowTagsReq

type ShowTagsReq struct {
	g.Meta   `path:"/admin/tags" method:"get" summart:"获取标签页" tags:"获取标签页"`
	PageNum  int `json:"pageNum"`
	PageSize int `json:"pageSize"`
}

type ShowTagsRes

type ShowTagsRes struct {
	List []Tags `json:"list"`
	CommonPaginationReq
}

type SiteInfo

type SiteInfo struct {
	Reward           string    `json:"reward"`
	Copyright        Copyright `json:"copyright"`
	BlogName         string    `json:"blogName"`
	Beian            string    `json:"beian"`
	WebTitleSuffix   string    `json:"webTitleSuffix"`
	FooterImgTitle   string    `json:"footerImgTitle"`
	CommentAdminFlag string    `json:"commentAdminFlag"`
	FooterImgURL     string    `json:"footerImgUrl"`
}

type SiteReq

type SiteReq struct {
	g.Meta `path:"/site" method:"get" summart:" 获取站点信息" tags:"获取站点信息"`
}

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 SiteSettingsDetilReq struct {
	g.Meta        `path:"/admin/siteSettings" method:"get" summart:" 获取站点信息" tags:"获取站点信息"`
	Authorization string `json:"Authorization" in:"header"  dc:"Authorization"`
}

type SiteSettingsDetilRes

type SiteSettingsDetilRes struct {
	Type3 []Type3 `json:"type3"`
	Type2 []Type2 `json:"type2"`
	Type1 []Type1 `json:"type1"`
}

type Tag

type Tag struct {
	Legend []string `json:"legend"`
	Series []Series `json:"series"`
}

type Tags

type Tags struct {
	Id      int      `json:"id"`
	TagName string   `json:"name"`
	Color   string   `json:"color"`
	Blogs   []string `json:"blogs"`
}

type Type1

type Type1 struct {
	ID     int    `json:"id"`
	NameEn string `json:"nameEn"`
	NameZh string `json:"nameZh"`
	Value  string `json:"value"`
	Type   int    `json:"type"`
}

type Type2

type Type2 struct {
	ID     int    `json:"id"`
	NameEn string `json:"nameEn"`
	NameZh string `json:"nameZh"`
	Value  string `json:"value"`
	Type   int    `json:"type"`
}

type Type3

type Type3 struct {
	ID     int    `json:"id"`
	NameEn string `json:"nameEn"`
	NameZh string `json:"nameZh"`
	Value  string `json:"value"`
	Type   int    `json:"type"`
}

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 UpdateBlogRecommendReq struct {
	g.Meta        `path:"/admin/blog/recommend" method:"put" summart:"修改文章推荐信息" tags:"修改文章推荐信息"`
	Authorization string `json:"Authorization" in:"header"  dc:"Authorization"`
	Id            int    `json:"id"`
	Top           bool   `json:"top"`
}

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 UpdateBlogTopReq struct {
	g.Meta        `path:"/admin/blog/top" method:"put" summart:"修改文章置顶信息" tags:"修改文章置顶信息"`
	Authorization string `json:"Authorization" in:"header"  dc:"Authorization"`
	Id            int    `json:"id"`
	Top           bool   `json:"top"`
}

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 UpdateCategoryReq struct {
	g.Meta       `path:"/admin/category" method:"put" summart:"更新标签" tags:"更新标签"`
	Id           int    `json:"id"`
	CategoryName string `json:"name"`
	Color        string `json:"color"`
}

type UpdateCategoryRes

type UpdateCategoryRes struct {
}

type UpdateMomentReq

type UpdateMomentReq struct {
	g.Meta        `path:"/admin/moment" method:"put" summart:" 更新动态" tags:"更新动态"`
	Authorization string `json:"Authorization" in:"header"  dc:"Authorization"`
	Id            int    `json:"id"`
	Moment
}

type UpdateMomentRes

type UpdateMomentRes struct {
}

type UpdatePublishedStatusReq

type UpdatePublishedStatusReq struct {
	g.Meta        `path:"/admin/moment/published" method:"put" summart:" 修改动态发布状态" tags:"修改动态发布状态"`
	Authorization string `json:"Authorization" in:"header"  dc:"Authorization"`
	Id            int    `json:"Id"`
	Published     bool   `json:"published"`
}

type UpdatePublishedStatusRes

type UpdatePublishedStatusRes struct {
}

type UpdateSiteSettingsReq

type UpdateSiteSettingsReq struct {
	g.Meta        `path:"/admin/siteSettings" method:"post" summart:" 获取站点信息" tags:"获取站点信息"`
	Authorization string     `json:"Authorization" in:"header"  dc:"Authorization"`
	Settings      []Settings `json:"settings"`
	DeleteIds     []int      `json:"deleteIds"`
}

type UpdateSiteSettingsRes

type UpdateSiteSettingsRes struct {
}

type UpdateTagsReq

type UpdateTagsReq struct {
	g.Meta  `path:"/admin/tag" method:"put" summart:"更新标签" tags:"更新标签"`
	Id      int    `json:"id"`
	TagName string `json:"name"`
	Color   string `json:"color"`
}

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

type VisitRecord struct {
	Date []string `json:"date"`
	Uv   []int    `json:"uv"`
	Pv   []int    `json:"pv"`
}

Jump to

Keyboard shortcuts

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