Documentation
¶
Index ¶
- type Album
- type AlbumQueryReq
- type ArticleArchivesQueryReq
- type ArticleClassifyQueryReq
- type ArticleDeatils
- type ArticleHome
- type ArticleHomeQueryReq
- type ArticlePreview
- type Banner
- type BannerQueryReq
- type BatchResp
- type BindUserEmailReq
- type Category
- type CategoryQueryReq
- type ChatMessage
- type ChatMessageQueryReq
- type ChatMsgReq
- type ChatMsgResp
- type Comment
- type CommentNewReq
- type CommentQueryReq
- type CommentReply
- type CommentUserInfo
- type EmptyReq
- type EmptyResp
- type FileBackDTO
- type Friend
- type FriendQueryReq
- type GetAboutMeReq
- type GetAboutMeResp
- type GetBlogHomeInfoReq
- type GetBlogHomeInfoResp
- type IdReq
- type IdsReq
- type LoginReq
- type LoginResp
- type MultiUploadFileReq
- type OauthLoginReq
- type OauthLoginUrlResp
- type PageDTO
- type PageQuery
- type PageResp
- type Photo
- type PhotoQueryReq
- type PingReq
- type PingResp
- type RegisterReq
- type Remark
- type RemarkNewReq
- type RemarkQueryReq
- type ResetPasswordReq
- type Response
- type RestHeader
- type Tag
- type TagQueryReq
- type Talk
- type TalkQueryReq
- type Token
- type UpdateUserAvatarReq
- type UpdateUserInfoReq
- type UploadFileReq
- type UserEmailReq
- type UserInfoExt
- type UserInfoResp
- type UserLikeResp
- type WebSocketMsg
- type WebsiteConfigDTO
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlbumQueryReq ¶
type AlbumQueryReq struct {
PageQuery
}
type ArticleArchivesQueryReq ¶
type ArticleArchivesQueryReq struct {
PageQuery
}
type ArticleClassifyQueryReq ¶
type ArticleDeatils ¶
type ArticleDeatils struct {
ArticleHome
LastArticle *ArticlePreview `json:"last_article"` // 上一篇文章
NextArticle *ArticlePreview `json:"next_article"` // 下一篇文章
RecommendArticleList []*ArticlePreview `json:"recommend_article_list"` // 推荐文章列表
NewestArticleList []*ArticlePreview `json:"newest_article_list"` // 最新文章列表
}
type ArticleHome ¶
type ArticleHome struct {
Id int64 `json:"id"` // 文章ID
ArticleCover string `json:"article_cover"` // 文章缩略图
ArticleTitle string `json:"article_title"` // 标题
ArticleContent string `json:"article_content"` // 内容
ArticleType int64 `json:"article_type"` // 文章类型
OriginalUrl string `json:"original_url"` // 原文链接
IsTop int64 `json:"is_top"` // 是否置顶
Status int64 `json:"status"` // 状态值 1 公开 2 私密 3 草稿 4 已删除
CreatedAt int64 `json:"created_at"` // 发表时间
UpdatedAt int64 `json:"updated_at"` // 更新时间
CategoryName string `json:"category_name"` // 文章分类名
TagNameList []string `json:"tag_name_list"` // 文章标签列表
LikeCount int64 `json:"like_count"` // 点赞量
ViewsCount int64 `json:"views_count"` // 浏览量
}
type ArticleHomeQueryReq ¶
type ArticlePreview ¶
type BannerQueryReq ¶
type BannerQueryReq struct {
PageQuery
}
type BindUserEmailReq ¶
type CategoryQueryReq ¶
type ChatMessage ¶
type ChatMessage struct {
Id int64 `json:"id"` // 主键
UserId string `json:"user_id"` // 用户id
Nickname string `json:"nickname"` // 昵称
Avatar string `json:"avatar"` // 头像
ChatContent string `json:"chatContent"` // 消息内容
IpAddress string `json:"ip_address"` // ip地址
IpSource string `json:"ip_source"` // ip来源
Type string `json:"type"` // 类型
CreatedAt int64 `json:"created_at"` // 创建时间
UpdatedAt int64 `json:"updated_at"` // 更新时间
}
type ChatMessageQueryReq ¶
type ChatMessageQueryReq struct {
After int64 `json:"after,optional"` // 起始时间
Before int64 `json:"before,optional"` // 结束时间
Limit int64 `json:"limit,optional"` // 限制数量
UserId string `json:"user_id,optional"` // 用户id
TopicId string `json:"topic_id,optional"` // 聊天室id
Keyword string `json:"keyword,optional"` // 关键字
Type string `json:"type,optional"` // 类型
}
type ChatMsgReq ¶
type ChatMsgResp ¶
type ChatMsgResp struct {
Id int64 `json:"id"` // 主键
UserId string `json:"user_id"` // 用户id
DeviceId string `json:"device_id"` // 设备id
Nickname string `json:"nickname"` // 昵称
Avatar string `json:"avatar"` // 头像
ChatContent string `json:"chat_content"` // 消息内容
IpAddress string `json:"ip_address"` // ip地址
IpSource string `json:"ip_source"` // ip来源
Type string `json:"type"` // 类型
CreatedAt int64 `json:"created_at"` // 创建时间
UpdatedAt int64 `json:"updated_at"` // 更新时间
}
type Comment ¶
type Comment struct {
Id int64 `json:"id"` // 评论id
TopicId int64 `json:"topic_id"` // 主题id
ParentId int64 `json:"parent_id"` // 父评论id
ReplyMsgId int64 `json:"reply_msg_id"` // 会话id
UserId string `json:"user_id"` // 用户id
ReplyUserId string `json:"reply_user_id"` // 被回复用户id
CommentContent string `json:"comment_content"` // 评论内容
Type int64 `json:"type"` // 评论类型 1.文章 2.友链 3.说说
CreatedAt int64 `json:"created_at"` // 评论时间
LikeCount int64 `json:"like_count"` // 点赞数
User *CommentUserInfo `json:"user"` // 评论用户
ReplyUser *CommentUserInfo `json:"reply_user"` // 被回复评论用户
ReplyCount int64 `json:"reply_count"` // 回复量
CommentReplyList []*CommentReply `json:"comment_reply_list"` // 评论回复列表
}
type CommentNewReq ¶
type CommentNewReq struct {
TopicId int64 `json:"topic_id,optional"` // 主题id
ParentId int64 `json:"parent_id,optional"` // 父评论id
ReplyMsgId int64 `json:"reply_msg_id,optional"` // 会话id
ReplyUserId string `json:"reply_user_id,optional"` // 回复用户id
CommentContent string `json:"comment_content,optional"` // 评论内容
Type int64 `json:"type,optional"` // 评论类型 1.文章 2.友链 3.说说
}
type CommentQueryReq ¶
type CommentReply ¶
type CommentReply struct {
Id int64 `json:"id"` // 评论id
TopicId int64 `json:"topic_id"` // 主题id
ParentId int64 `json:"parent_id"` // 父评论id
ReplyMsgId int64 `json:"reply_msg_id"` // 会话id
UserId string `json:"user_id"` // 用户id
ReplyUserId string `json:"reply_user_id"` // 被回复用户id
CommentContent string `json:"comment_content"` // 评论内容
Type int64 `json:"type"` // 评论类型 1.文章 2.友链 3.说说
CreatedAt int64 `json:"created_at"` // 评论时间
LikeCount int64 `json:"like_count"` // 点赞数
User *CommentUserInfo `json:"user"` // 评论用户
ReplyUser *CommentUserInfo `json:"reply_user"` // 被回复评论用户
}
type CommentUserInfo ¶
type FileBackDTO ¶
type FileBackDTO struct {
Id int64 `json:"id,optional"` // 文件目录ID
UserId string `json:"user_id"` // 用户id
FilePath string `json:"file_path"` // 文件路径
FileName string `json:"file_name"` // 文件名称
FileType string `json:"file_type"` // 文件类型
FileSize int64 `json:"file_size"` // 文件大小
FileMd5 string `json:"file_md5"` // 文件md5值
FileUrl string `json:"file_url"` // 上传路径
CreatedAt int64 `json:"created_at"` // 创建时间
UpdatedAt int64 `json:"updated_at"` // 更新时间
}
type Friend ¶
type Friend struct {
Id int64 `json:"id"` // id
LinkName string `json:"link_name"` // 链接名
LinkAvatar string `json:"link_avatar"` // 链接头像
LinkAddress string `json:"link_address"` // 链接地址
LinkIntro string `json:"link_intro"` // 链接介绍
CreatedAt int64 `json:"created_at"` // 创建时间
UpdatedAt int64 `json:"updated_at"` // 更新时间
}
type FriendQueryReq ¶
type FriendQueryReq struct {
PageQuery
}
type GetAboutMeReq ¶
type GetAboutMeReq struct {
}
type GetAboutMeResp ¶
type GetAboutMeResp struct {
Content string `json:"content"`
}
type GetBlogHomeInfoReq ¶
type GetBlogHomeInfoReq struct {
}
type GetBlogHomeInfoResp ¶
type GetBlogHomeInfoResp struct {
ArticleCount int64 `json:"article_count"` // 文章数量
CategoryCount int64 `json:"category_count"` // 分类数量
TagCount int64 `json:"tag_count"` // 标签数量
ViewsCount int64 `json:"views_count"` // 访问量
WebsiteConfig WebsiteConfigDTO `json:"website_config"` // 网站配置
PageList []*PageDTO `json:"page_list"` // 页面列表
}
type MultiUploadFileReq ¶
type MultiUploadFileReq struct {
Files []interface{} `form:"files,optional"` // 文件列表
FilePath string `form:"file_path,optional"` // 文件路径
}
type OauthLoginReq ¶
type OauthLoginUrlResp ¶
type OauthLoginUrlResp struct {
Url string `json:"url"` // 授权地址
}
type PhotoQueryReq ¶
type PhotoQueryReq struct {
AlbumId int64 `json:"album_id"` // 相册ID
}
type RegisterReq ¶
type Remark ¶
type Remark struct {
Id int64 `json:"id,optional"` // 主键id
Nickname string `json:"nickname"` // 昵称
Avatar string `json:"avatar"` // 头像
MessageContent string `json:"message_content"` // 留言内容
IpAddress string `json:"ip_address"` // 用户ip
IpSource string `json:"ip_source"` // 用户地址
IsReview int64 `json:"is_review"` // 是否审核
CreatedAt int64 `json:"created_at"` // 发布时间
UpdatedAt int64 `json:"updated_at"` // 更新时间
}
type RemarkNewReq ¶
type RemarkQueryReq ¶
type RemarkQueryReq struct {
PageQuery
}
type ResetPasswordReq ¶
type RestHeader ¶
type RestHeader struct {
HeaderCountry string `header:"Country,optional"`
HeaderLanguage string `header:"Language,optional"`
HeaderTimezone string `header:"Timezone,optional"`
HeaderAppName string `header:"App-name,optional"`
HeaderXUserId string `header:"X-User-Id,optional"`
HeaderXAuthToken string `header:"X-Auth-Token,optional"`
HeaderTerminalId string `header:"X-Terminal-Id,optional"`
}
type TagQueryReq ¶
type Talk ¶
type Talk struct {
Id int64 `json:"id"` // 说说ID
UserId string `json:"user_id"` // 用户ID
Nickname string `json:"nickname"` // 用户昵称
Avatar string `json:"avatar"` // 用户头像
Content string `json:"content"` // 评论内容
ImgList []string `json:"img_list"` // 图片URL列表
IsTop int64 `json:"is_top"` // 是否置顶
Status int64 `json:"status"` // 状态 1.公开 2.私密
LikeCount int64 `json:"like_count"` // 点赞量
CommentCount int64 `json:"comment_count"` // 评论量
CreatedAt int64 `json:"created_at"` // 创建时间
UpdatedAt int64 `json:"updated_at"` // 更新时间
}
type TalkQueryReq ¶
type TalkQueryReq struct {
PageQuery
}
type Token ¶
type Token struct {
UserId string `json:"user_id"` // 用户id
TokenType string `json:"token_type"` // token类型,Bearer
AccessToken string `json:"access_token"` // 访问token,过期时间较短。2h
ExpiresIn int64 `json:"expires_in"` // 访问token过期时间
RefreshToken string `json:"refresh_token"` // 刷新token,过期时间较长。30d
RefreshExpiresIn int64 `json:"refresh_expires_in"` // 刷新token过期时间
Scope string `json:"scope"` // 作用域
}
type UpdateUserAvatarReq ¶
type UpdateUserAvatarReq struct {
Avatar string `json:"avatar"` // 头像
}
type UpdateUserInfoReq ¶
type UpdateUserInfoReq struct {
Nickname string `json:"nickname,optional"` // 昵称
Avatar string `json:"avatar,optional"` // 头像
UserInfoExt
}
type UploadFileReq ¶
type UploadFileReq struct {
File interface{} `form:"file,optional"` // 文件
FilePath string `form:"file_path,optional"` // 文件路径
}
type UserEmailReq ¶
type UserEmailReq struct {
Username string `json:"username"`
}
type UserInfoExt ¶
type UserInfoResp ¶
type UserLikeResp ¶
type WebSocketMsg ¶
type WebsiteConfigDTO ¶
type WebsiteConfigDTO struct {
AdminUrl string `json:"admin_url"` // 后台地址
AlipayQrCode string `json:"alipay_qr_code"` // 支付宝二维码
Gitee string `json:"gitee"` // Gitee
Github string `json:"github"` // Github
IsChatRoom int64 `json:"is_chat_room"` // 是否开启聊天室
IsCommentReview int64 `json:"is_comment_review"` // 是否开启评论审核
IsEmailNotice int64 `json:"is_email_notice"` // 是否开启邮件通知
IsMessageReview int64 `json:"is_message_review"` // 是否开启留言审核
IsMusicPlayer int64 `json:"is_music_player"` // 是否开启音乐播放器
IsReward int64 `json:"is_reward"` // 是否开启打赏
Qq string `json:"qq"` // QQ
SocialLoginList []string `json:"social_login_list"` // 社交登录列表
SocialUrlList []string `json:"social_url_list"` // 社交地址列表
TouristAvatar string `json:"tourist_avatar"` // 游客头像
UserAvatar string `json:"user_avatar"` // 用户头像
WebsiteAuthor string `json:"website_author"` // 网站作者
WebsiteAvatar string `json:"website_avatar"` // 网站头像
WebsiteCreateTime string `json:"website_create_time"` // 网站创建时间
WebsiteIntro string `json:"website_intro"` // 网站介绍
WebsiteName string `json:"website_name"` // 网站名称
WebsiteNotice string `json:"website_notice"` // 网站公告
WebsiteRecordNo string `json:"website_record_no"` // 网站备案号
WebsocketUrl string `json:"websocket_url"` // websocket地址
WeixinQrCode string `json:"weixin_qr_code"` // 微信二维码
}
Click to show internal directories.
Click to hide internal directories.