Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type About ¶
type About struct { Id int64 `json:"id" description:""` NameEn string `json:"nameEn" description:""` NameZh string `json:"nameZh" description:""` Value string `json:"value" description:""` }
About is the golang structure for table about.
type Blog ¶
type Blog struct { Id int64 `json:"id" description:""` Title string `json:"title" description:"文章标题"` FirstPicture string `json:"firstPicture" description:"文章首图,用于随机文章展示"` Content string `json:"content" description:"文章正文"` Description string `json:"description" description:"描述"` IsPublished int `json:"isPublished" description:"公开或私密"` IsRecommend int `json:"isRecommend" description:"推荐开关"` IsAppreciation int `json:"isAppreciation" description:"赞赏开关"` IsCommentEnabled int `json:"isCommentEnabled" description:"评论开关"` CreateTime *gtime.Time `json:"createTime" description:"创建时间"` UpdateTime *gtime.Time `json:"updateTime" description:"更新时间"` Views int `json:"views" description:"浏览次数"` Words int `json:"words" description:"文章字数"` ReadTime int `json:"readTime" description:"阅读时长(分钟)"` CategoryId int64 `json:"categoryId" description:"文章分类"` IsTop int `json:"isTop" description:"是否置顶"` Password string `json:"password" description:"密码保护"` UserId int64 `json:"userId" description:"文章作者"` }
Blog is the golang structure for table blog.
type BlogTag ¶
type BlogTag struct { BlogId int64 `json:"blogId" description:""` TagId int64 `json:"tagId" description:""` }
BlogTag is the golang structure for table blog_tag.
type Category ¶
type Category struct { Id int64 `json:"id" description:""` CategoryName string `json:"categoryName" description:""` }
Category is the golang structure for table category.
type CityVisitor ¶
type CityVisitor struct { City string `json:"city" description:"城市名称"` Uv int `json:"uv" description:"独立访客数量"` }
CityVisitor is the golang structure for table city_visitor.
type Comment ¶
type Comment struct { Id int64 `json:"id" description:""` Nickname string `json:"nickname" description:"昵称"` Email string `json:"email" description:"邮箱"` Content string `json:"content" description:"评论内容"` Avatar string `json:"avatar" description:"头像(图片路径)"` CreateTime *gtime.Time `json:"createTime" description:"评论时间"` Ip string `json:"ip" description:"评论者ip地址"` IsPublished int `json:"isPublished" description:"公开或回收站"` IsAdminComment int `json:"isAdminComment" description:"博主回复"` Page int `json:"page" description:"0普通文章,1关于我页面,2友链页面"` IsNotice int `json:"isNotice" description:"接收邮件提醒"` BlogId int64 `json:"blogId" description:"所属的文章"` ParentCommentId int64 `json:"parentCommentId" description:"父评论id,-1为根评论"` Website string `json:"website" description:"个人网站"` Qq string `` /* 147-byte string literal not displayed */ }
Comment is the golang structure for table comment.
type ExceptionLog ¶
type ExceptionLog struct { Id int64 `json:"id" description:""` Uri string `json:"uri" description:"请求接口"` Method string `json:"method" description:"请求方式"` Param string `json:"param" description:"请求参数"` Description string `json:"description" description:"操作描述"` Error string `json:"error" description:"异常信息"` Ip string `json:"ip" description:"ip"` IpSource string `json:"ipSource" description:"ip来源"` Os string `json:"os" description:"操作系统"` Browser string `json:"browser" description:"浏览器"` CreateTime *gtime.Time `json:"createTime" description:"操作时间"` UserAgent string `json:"userAgent" description:"user-agent用户代理"` }
ExceptionLog is the golang structure for table exception_log.
type Friend ¶
type Friend struct { Id int64 `json:"id" description:""` Nickname string `json:"nickname" description:"昵称"` Description string `json:"description" description:"描述"` Website string `json:"website" description:"站点"` Avatar string `json:"avatar" description:"头像"` IsPublished int `json:"isPublished" description:"公开或隐藏"` Views int `json:"views" description:"点击次数"` CreateTime *gtime.Time `json:"createTime" description:"创建时间"` }
Friend is the golang structure for table friend.
type LoginLog ¶
type LoginLog struct { Id int64 `json:"id" description:""` Username string `json:"username" description:"用户名称"` Ip string `json:"ip" description:"ip"` IpSource string `json:"ipSource" description:"ip来源"` Os string `json:"os" description:"操作系统"` Browser string `json:"browser" description:"浏览器"` Status int `json:"status" description:"登录状态"` Description string `json:"description" description:"操作描述"` CreateTime *gtime.Time `json:"createTime" description:"登录时间"` UserAgent string `json:"userAgent" description:"user-agent用户代理"` }
LoginLog is the golang structure for table login_log.
type Moment ¶
type Moment struct { Id int64 `json:"id" description:""` Content string `json:"content" description:"动态内容"` CreateTime *gtime.Time `json:"createTime" description:"创建时间"` Likes int `json:"likes" description:"点赞数量"` IsPublished int `json:"isPublished" description:"是否公开"` }
Moment is the golang structure for table moment.
type OperationLog ¶
type OperationLog struct { Id int64 `json:"id" description:""` Username string `json:"username" description:"操作者用户名"` Uri string `json:"uri" description:"请求接口"` Method string `json:"method" description:"请求方式"` Param string `json:"param" description:"请求参数"` Description string `json:"description" description:"操作描述"` Ip string `json:"ip" description:"ip"` IpSource string `json:"ipSource" description:"ip来源"` Os string `json:"os" description:"操作系统"` Browser string `json:"browser" description:"浏览器"` Times int `json:"times" description:"请求耗时(毫秒)"` CreateTime *gtime.Time `json:"createTime" description:"操作时间"` UserAgent string `json:"userAgent" description:"user-agent用户代理"` }
OperationLog is the golang structure for table operation_log.
type ScheduleJob ¶
type ScheduleJob struct { JobId int64 `json:"jobId" description:"任务id"` BeanName string `json:"beanName" description:"spring bean名称"` MethodName string `json:"methodName" description:"方法名"` Params string `json:"params" description:"参数"` Cron string `json:"cron" description:"cron表达式"` Status int `json:"status" description:"任务状态"` Remark string `json:"remark" description:"备注"` CreateTime *gtime.Time `json:"createTime" description:"创建时间"` }
ScheduleJob is the golang structure for table schedule_job.
type ScheduleJobLog ¶
type ScheduleJobLog struct { LogId int64 `json:"logId" description:"任务日志id"` JobId int64 `json:"jobId" description:"任务id"` BeanName string `json:"beanName" description:"spring bean名称"` MethodName string `json:"methodName" description:"方法名"` Params string `json:"params" description:"参数"` Status int `json:"status" description:"任务执行结果"` Error string `json:"error" description:"异常信息"` Times int `json:"times" description:"耗时(单位:毫秒)"` CreateTime *gtime.Time `json:"createTime" description:"创建时间"` }
ScheduleJobLog is the golang structure for table schedule_job_log.
type SiteSetting ¶
type SiteSetting struct { Id int64 `json:"id" description:""` NameEn string `json:"nameEn" description:""` NameZh string `json:"nameZh" description:""` Value string `json:"value" description:""` Type int `json:"type" description:"1基础设置,2页脚徽标,3资料卡,4友链信息"` }
SiteSetting is the golang structure for table site_setting.
type Tag ¶
type Tag struct { Id int64 `json:"id" description:""` TagName string `json:"tagName" description:""` Color string `json:"color" description:"标签颜色(可选)"` }
Tag is the golang structure for table tag.
type User ¶
type User struct { Id int64 `json:"id" description:""` Username string `json:"username" description:"用户名"` Password string `json:"password" description:"密码"` Nickname string `json:"nickname" description:"昵称"` Avatar string `json:"avatar" description:"头像地址"` Email string `json:"email" description:"邮箱"` CreateTime *gtime.Time `json:"createTime" description:"创建时间"` UpdateTime *gtime.Time `json:"updateTime" description:"更新时间"` Role string `json:"role" description:"角色访问权限"` }
User is the golang structure for table user.
type VisitLog ¶
type VisitLog struct { Id int64 `json:"id" description:""` Uuid string `json:"uuid" description:"访客标识码"` Uri string `json:"uri" description:"请求接口"` Method string `json:"method" description:"请求方式"` Param string `json:"param" description:"请求参数"` Behavior string `json:"behavior" description:"访问行为"` Content string `json:"content" description:"访问内容"` Remark string `json:"remark" description:"备注"` Ip string `json:"ip" description:"ip"` IpSource string `json:"ipSource" description:"ip来源"` Os string `json:"os" description:"操作系统"` Browser string `json:"browser" description:"浏览器"` Times int `json:"times" description:"请求耗时(毫秒)"` CreateTime *gtime.Time `json:"createTime" description:"访问时间"` UserAgent string `json:"userAgent" description:"user-agent用户代理"` }
VisitLog is the golang structure for table visit_log.
type VisitRecord ¶
type VisitRecord struct { Id int64 `json:"id" description:""` Pv int `json:"pv" description:"访问量"` Uv int `json:"uv" description:"独立用户"` Date string `json:"date" description:"日期\"02-23\""` }
VisitRecord is the golang structure for table visit_record.
type Visitor ¶
type Visitor struct { Id int64 `json:"id" description:""` Uuid string `json:"uuid" description:"访客标识码"` Ip string `json:"ip" description:"ip"` IpSource string `json:"ipSource" description:"ip来源"` Os string `json:"os" description:"操作系统"` Browser string `json:"browser" description:"浏览器"` CreateTime *gtime.Time `json:"createTime" description:"首次访问时间"` LastTime *gtime.Time `json:"lastTime" description:"最后访问时间"` Pv int `json:"pv" description:"访问页数统计"` UserAgent string `json:"userAgent" description:"user-agent用户代理"` }
Visitor is the golang structure for table visitor.