Documentation
¶
Index ¶
- type AboutMe
- type AccountArea
- type AccountLoginHistory
- type AccountQuery
- type AdminHomeInfo
- type AlbumBackDTO
- type AlbumNewReq
- type AlbumQuery
- type ApiBackDTO
- type ApiNewReq
- type ApiQuery
- type ArticleBackDTO
- type ArticleNewReq
- type ArticleQuery
- type ArticleRecycleReq
- type ArticleStatisticsDTO
- type ArticleTopReq
- type ArticleViewRankDTO
- type BannerBackDTO
- type BannerNewReq
- type BannerQuery
- type BatchResp
- type BlogHomeInfo
- type CategoryBackDTO
- type CategoryDTO
- type CategoryNewReq
- type CategoryQuery
- type CommentBackDTO
- type CommentQuery
- type CommentReviewReq
- type EmptyReq
- type EmptyResp
- type FileBackDTO
- type FileFolderNewReq
- type FileQuery
- type FriendBackDTO
- type FriendNewReq
- type FriendQuery
- type IdReq
- type IdsReq
- type LoginReq
- type LoginResp
- type MenuBackDTO
- type MenuMeta
- type MenuMetaParams
- type MenuNewReq
- type MenuQuery
- type MultiUploadFileReq
- type OperationLogBackDTO
- type OperationLogQuery
- type PageDTO
- type PageQuery
- type PageResp
- type PhotoBackDTO
- type PhotoNewReq
- type PhotoQuery
- type PingReq
- type PingResp
- type RemarkBackDTO
- type RemarkNewReq
- type RemarkQuery
- type Response
- type RestHeader
- type RoleBackDTO
- type RoleNewReq
- type RoleQuery
- type RoleResourcesResp
- type Server
- type SyncApiReq
- type SyncMenuReq
- type TagBackDTO
- type TagDTO
- type TagNewReq
- type TagQuery
- type TalkBackDTO
- type TalkNewReq
- type TalkQuery
- type Token
- type UniqueViewDTO
- type UpdateAccountRolesReq
- type UpdateAccountStatusReq
- type UpdateRoleApisReq
- type UpdateRoleMenusReq
- type UploadFileReq
- type UserApi
- type UserApisResp
- type UserInfoExt
- type UserInfoReq
- type UserInfoResp
- type UserLoginHistory
- type UserLoginHistoryQuery
- type UserMenu
- type UserMenuMeta
- type UserMenusResp
- type UserRole
- type UserRoleLabel
- type UserRolesResp
- type WebsiteConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountArea ¶
type AccountLoginHistory ¶
type AccountLoginHistory struct {
Id int64 `json:"id,optional"`
Username string `json:"username"` // 用户名
Nickname string `json:"nickname"` // 用户昵称
Avatar string `json:"avatar"` // 用户头像
LoginType string `json:"login_type"` // 登录类型
Agent string `json:"agent"` // 代理
IpAddress string `json:"ip_address"` // ip host
IpSource string `json:"ip_source"` // ip 源
LoginAt int64 `json:"login_at"` // 登录时间
LogoutAt int64 `json:"logout_out"` // 登出时间
}
type AccountQuery ¶
type AdminHomeInfo ¶
type AdminHomeInfo struct {
ViewsCount int64 `json:"views_count"` // 访问量
MessageCount int64 `json:"message_count"` // 留言量
UserCount int64 `json:"user_count"` // 用户量
ArticleCount int64 `json:"article_count"` // 文章量
CategoryList []*CategoryDTO `json:"category_list"` // 分类列表
TagList []*TagDTO `json:"tag_list"` // 标签列表
ArticleViewRankList []*ArticleViewRankDTO `json:"article_view_rank_list"` // 文章浏览量排行
ArticleStatisticsList []*ArticleStatisticsDTO `json:"article_statistics_list"` // 每日文章生产量
UniqueViewList []*UniqueViewDTO `json:"unique_view_list"` // 每日用户访问量
}
type AlbumBackDTO ¶
type AlbumBackDTO struct {
Id int64 `json:"id,optional"` // 主键
AlbumName string `json:"album_name"` // 相册名
AlbumDesc string `json:"album_desc"` // 相册描述
AlbumCover string `json:"album_cover"` // 相册封面
IsDelete int64 `json:"is_delete"` // 是否删除
Status int64 `json:"status"` // 状态值 1公开 2私密
CreatedAt int64 `json:"created_at"` // 创建时间
UpdatedAt int64 `json:"updated_at"` // 更新时间
PhotoCount int64 `json:"photo_count"` // 照片数量
}
type AlbumNewReq ¶
type AlbumQuery ¶
type ApiBackDTO ¶
type ApiBackDTO struct {
Id int64 `json:"id,optional"` // 主键id
ParentId int64 `json:"parent_id"` // 分组id
Name string `json:"name"` // api名称
Path string `json:"path"` // api路径
Method string `json:"method"` // api请求方法
Traceable int64 `json:"traceable"` // 是否追溯操作记录 0需要,1是
IsDisable int64 `json:"is_disable,optional"` // 是否禁用 0否 1是
CreatedAt int64 `json:"created_at"` // 创建时间
UpdatedAt int64 `json:"updated_at"` // 更新时间
Children []*ApiBackDTO `json:"children"`
}
type ApiNewReq ¶
type ApiNewReq struct {
Id int64 `json:"id,optional"` // 主键id
ParentId int64 `json:"parent_id"` // 分组id
Name string `json:"name"` // api名称
Path string `json:"path"` // api路径
Method string `json:"method"` // api请求方法
Traceable int64 `json:"traceable"` // 是否追溯操作记录 0需要,1是
IsDisable int64 `json:"is_disable,optional"` // 是否禁用 0否 1是
}
type ArticleBackDTO ¶
type ArticleBackDTO struct {
Id int64 `json:"id,optional"` // 文章ID
ArticleCover string `json:"article_cover"` // 文章缩略图
ArticleTitle string `json:"article_title"` // 标题
ArticleContent string `json:"article_content"` // 内容
ArticleType int64 `json:"article_type"` // 文章类型 1原创 2转载 3翻译
OriginalUrl string `json:"original_url"` // 原文链接
IsTop int64 `json:"is_top"` // 是否置顶
IsDelete int64 `json:"is_delete"` // 是否删除
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 ArticleNewReq ¶
type ArticleNewReq struct {
Id int64 `json:"id,optional"` // id
ArticleCover string `json:"article_cover"` // 文章缩略图
ArticleTitle string `json:"article_title"` // 标题
ArticleContent string `json:"article_content"` // 内容
ArticleType int64 `json:"article_type"` // 文章类型 1原创 2转载 3翻译
OriginalUrl string `json:"original_url"` // 原文链接
Status int64 `json:"status"` // 状态值 1 公开 2 私密 3 草稿 4 已删除
CategoryName string `json:"category_name,optional"` // 文章分类名
TagNameList []string `json:"tag_name_list,optional"` // 文章标签列表
}
type ArticleQuery ¶
type ArticleQuery struct {
PageQuery
ArticleTitle string `json:"article_title,optional"` // 标题
ArticleType int64 `json:"article_type,optional"` // 文章类型 1原创 2转载 3翻译
IsTop int64 `json:"is_top,optional"` // 是否置顶
IsDelete int64 `json:"is_delete,optional"` // 是否删除
Status int64 `json:"status,optional"` // 状态值 1 公开 2 私密 3 草稿 4 已删除
CategoryName string `json:"category_name,optional"` // 文章分类名
TagName string `json:"tag_name,optional"`
}
type ArticleRecycleReq ¶
type ArticleStatisticsDTO ¶
type ArticleTopReq ¶
type ArticleViewRankDTO ¶
type BannerBackDTO ¶
type BannerNewReq ¶
type BannerQuery ¶
type BlogHomeInfo ¶
type BlogHomeInfo struct {
ArticleCount int64 `json:"article_count"` // 文章数量
CategoryCount int64 `json:"category_count"` // 分类数量
TagCount int64 `json:"tag_count"` // 标签数量
ViewsCount string `json:"views_count"` // 访问量
WebsiteConfig WebsiteConfig `json:"website_config"` // 网站配置
PageList []*PageDTO `json:"page_list"` // 页面列表
}
type CategoryBackDTO ¶
type CategoryDTO ¶
type CategoryNewReq ¶
type CategoryQuery ¶
type CommentBackDTO ¶
type CommentBackDTO struct {
Id int64 `json:"id"` // 评论ID
Type int64 `json:"type"` // 评论类型 1.文章 2.友链 3.说说
TopicTitle string `json:"topic_title"` // 评论主题
Avatar string `json:"avatar"` // 用户头像
Nickname string `json:"nickname"` // 用户昵称
ToNickname string `json:"to_nickname"` // 被回复人昵称
CommentContent string `json:"comment_content"` // 评论内容
IsReview int64 `json:"is_review"` // 是否审核 0.未审核 1.已审核
CreatedAt int64 `json:"created_at"` // 创建时间
}
type CommentQuery ¶
type CommentReviewReq ¶
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 FileFolderNewReq ¶
type FriendBackDTO ¶
type FriendBackDTO struct {
Id int64 `json:"id,optional"` // 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 FriendNewReq ¶
type FriendQuery ¶
type MenuBackDTO ¶
type MenuBackDTO struct {
Id int64 `json:"id,optional"` // 主键
ParentId int64 `json:"parent_id,optional"` // 父id
Path string `json:"path,optional"` // 路由地址
Name string `json:"name,optional"` // 路由名字
Component string `json:"component,optional"` // Layout组件
Redirect string `json:"redirect,optional"` // 路由重定向
MenuMeta
Children []*MenuBackDTO `json:"children,optional"`
CreatedAt int64 `json:"created_at"` // 创建时间
UpdatedAt int64 `json:"updated_at"` // 更新时间
}
type MenuMeta ¶
type MenuMeta struct {
Type int64 `json:"type,optional"` // 菜单类型(0代表目录、1代表菜单、2代表按钮、3代表外链)
Title string `json:"title,optional"` // 菜单标题
Icon string `json:"icon,optional"` // 菜单图标
Rank int64 `json:"rank,optional"` // 排序
Perm string `json:"perm,optional"` // 权限标识
Params []*MenuMetaParams `json:"params,optional"` // 参数
KeepAlive int64 `json:"keep_alive,optional"` // 是否缓存
AlwaysShow int64 `json:"always_show,optional"` // 是否一直显示菜单
IsHidden int64 `json:"is_hidden,optional"` // 是否隐藏
IsDisable int64 `json:"is_disable,optional"` // 是否禁用
}
type MenuMetaParams ¶
type MenuNewReq ¶
type MenuNewReq struct {
Id int64 `json:"id,optional"` // 主键
ParentId int64 `json:"parent_id,optional"` // 父id
Path string `json:"path,optional"` // 路由地址
Name string `json:"name,optional"` // 路由名字
Component string `json:"component,optional"` // Layout组件
Redirect string `json:"redirect,optional"` // 路由重定向
MenuMeta
Children []*MenuNewReq `json:"children,optional"`
}
type MultiUploadFileReq ¶
type MultiUploadFileReq struct {
Files []interface{} `form:"files,optional"` // 文件列表
FilePath string `form:"file_path,optional"` // 文件路径
}
type OperationLogBackDTO ¶
type OperationLogBackDTO struct {
Id int64 `json:"id,optional"` // 主键id
UserId string `json:"user_id"` // 用户id
Nickname string `json:"nickname"` // 用户昵称
IpAddress string `json:"ip_address"` // 操作ip
IpSource string `json:"ip_source"` // 操作地址
OptModule string `json:"opt_module"` // 操作模块
OptDesc string `json:"opt_desc"` // 操作描述
RequestUrl string `json:"request_url"` // 请求地址
RequestMethod string `json:"request_method"` // 请求方式
RequestHeader string `json:"request_header"` // 请求头参数
RequestData string `json:"request_data"` // 请求参数
ResponseData string `json:"response_data"` // 返回数据
ResponseStatus int64 `json:"response_status"` // 响应状态码
Cost string `json:"cost"` // 耗时(ms)
CreatedAt int64 `json:"created_at"` // 创建时间
UpdatedAt int64 `json:"updated_at"` // 更新时间
}
type OperationLogQuery ¶
type OperationLogQuery struct {
PageQuery
}
type PhotoBackDTO ¶
type PhotoBackDTO struct {
Id int64 `json:"id,optional"` // 主键
AlbumId int64 `json:"album_id"` // 相册id
PhotoName string `json:"photo_name"` // 照片名
PhotoDesc string `json:"photo_desc"` // 照片描述
PhotoSrc string `json:"photo_src"` // 照片地址
IsDelete int64 `json:"is_delete"` // 是否删除
CreatedAt int64 `json:"created_at"` // 创建时间
UpdatedAt int64 `json:"updated_at"` // 更新时间
}
type PhotoNewReq ¶
type PhotoQuery ¶
type RemarkBackDTO ¶
type RemarkBackDTO 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"` // 用户地址
Time int64 `json:"time"` // 弹幕速度
IsReview int64 `json:"is_review"` // 是否审核
CreatedAt int64 `json:"created_at"` // 发布时间
UpdatedAt int64 `json:"updated_at"` // 更新时间
}
type RemarkNewReq ¶
type RemarkQuery ¶
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 RoleBackDTO ¶
type RoleBackDTO struct {
Id int64 `json:"id,optional"` // 主键id
ParentId int64 `json:"parent_id"` // 父角色id
RoleName string `json:"role_name"` // 角色名
RoleLabel string `json:"role_label"` // 角色标签
RoleComment string `json:"role_comment"` // 角色备注
IsDisable int64 `json:"is_disable"` // 是否禁用 0否 1是
IsDefault int64 `json:"is_default"` // 是否默认角色 0否 1是
CreatedAt int64 `json:"created_at"` // 创建时间
UpdatedAt int64 `json:"updated_at"` // 更新时间
}
type RoleNewReq ¶
type RoleNewReq struct {
Id int64 `json:"id,optional"` // 主键id
ParentId int64 `json:"parent_id"` // 父角色id
RoleName string `json:"role_name"` // 角色名
RoleLabel string `json:"role_label"` // 角色标签
RoleComment string `json:"role_comment"` // 角色备注
IsDisable int64 `json:"is_disable"` // 是否禁用 0否 1是
IsDefault int64 `json:"is_default"` // 是否默认角色 0否 1是
}
type RoleResourcesResp ¶
type Server ¶
type Server struct {
Os interface{} `json:"os"`
Cpu interface{} `json:"cpu"`
Ram interface{} `json:"ram"`
Disk interface{} `json:"disk"`
}
type SyncApiReq ¶
type SyncApiReq struct {
ApiFilePath string `json:"api_file_path"` // api文件路径
}
type SyncMenuReq ¶
type SyncMenuReq struct {
Menus []*MenuNewReq `json:"menus"`
}
type TagBackDTO ¶
type TalkBackDTO ¶
type TalkBackDTO struct {
Id int64 `json:"id,optional"` // 说说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 TalkNewReq ¶
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 UniqueViewDTO ¶
type UpdateAccountRolesReq ¶
type UpdateAccountStatusReq ¶
type UpdateRoleApisReq ¶
type UpdateRoleMenusReq ¶
type UploadFileReq ¶
type UploadFileReq struct {
File interface{} `form:"file,optional"` // 文件
FilePath string `form:"file_path,optional"` // 文件路径
}
type UserApi ¶
type UserApi struct {
Id int64 `json:"id,optional"` // 主键id
ParentId int64 `json:"parent_id"` // 父id
Name string `json:"name"` // api名称
Path string `json:"path"` // api路径
Method string `json:"method"` // api请求方法
CreatedAt int64 `json:"created_at"` // 创建时间
UpdatedAt int64 `json:"updated_at"` // 更新时间
Children []*UserApi `json:"children"`
}
type UserApisResp ¶
type UserApisResp struct {
List []*UserApi `json:"list"`
}
type UserInfoExt ¶
type UserInfoReq ¶
type UserInfoReq struct {
Nickname string `json:"nickname"` // 昵称
Avatar string `json:"avatar"` // 头像
UserInfoExt
}
type UserInfoResp ¶
type UserInfoResp struct {
UserId string `json:"user_id"` // 用户id
Username string `json:"username"` // 用户名
Nickname string `json:"nickname"` // 用户昵称
Avatar string `json:"avatar"` // 用户头像
Email string `json:"email"` // 用户邮箱
Phone string `json:"phone"` // 用户手机号
Status int64 `json:"status"` // 状态
LoginType string `json:"login_type"` // 登录方式
IpAddress string `json:"ip_address"` // ip host
IpSource string `json:"ip_source"` // ip 源
CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"`
Roles []*UserRoleLabel `json:"roles"`
Perms []*UserApi `json:"perms"`
UserInfoExt
}
type UserLoginHistory ¶
type UserLoginHistory struct {
Id int64 `json:"id,optional"`
LoginType string `json:"login_type"` // 登录类型
Agent string `json:"agent"` // 代理
IpAddress string `json:"ip_address"` // ip host
IpSource string `json:"ip_source"` // ip 源
LoginAt int64 `json:"login_at"` // 登录时间
LogoutAt int64 `json:"login_out"` // 登出时间
}
type UserLoginHistoryQuery ¶
type UserLoginHistoryQuery struct {
PageQuery
}
type UserMenu ¶
type UserMenu struct {
Id int64 `json:"id,optional"` // 主键
ParentId int64 `json:"parent_id"` // 父id
Path string `json:"path"` // 路由地址
Name string `json:"name"` // 路由名字
Component string `json:"component"` // Layout组件
Redirect string `json:"redirect"` // 路由重定向
Meta UserMenuMeta `json:"meta"` // meta配置
Children []*UserMenu `json:"children,optional"`
CreatedAt int64 `json:"created_at"` // 创建时间
UpdatedAt int64 `json:"updated_at"` // 更新时间
}
type UserMenuMeta ¶
type UserMenuMeta struct {
Title string `json:"title,optional"`
Icon string `json:"icon,optional"`
Hidden bool `json:"hidden,optional"`
AlwaysShow bool `json:"alwaysShow,optional"`
Affix bool `json:"affix,optional"`
KeepAlive bool `json:"keepAlive,optional"`
Breadcrumb bool `json:"breadcrumb,optional"`
}
type UserMenusResp ¶
type UserMenusResp struct {
List []*UserMenu `json:"list"`
}
type UserRoleLabel ¶
type UserRolesResp ¶
type UserRolesResp struct {
List []*UserRole `json:"list"`
}
type WebsiteConfig ¶
type WebsiteConfig 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.