po

package
v0.0.0-...-45e8f3b Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type YuArticle

type YuArticle struct {
	Id         int       `json:"id"          db:"id"`          // 文章ID
	Code       string    `json:"code"        db:"code"`        // 文章唯一码
	UserId     int       `json:"userId"      db:"user_id"`     // 用户ID
	Wrapper    string    `json:"wrapper"     db:"wrapper"`     // 头背景
	Title      string    `json:"title"       db:"title"`       // 标题
	Summary    string    `json:"summary"     db:"summary"`     // 摘要/概要
	Content    string    `json:"content"     db:"content"`     // 内容
	IsTop      int       `json:"isTop"       db:"is_top"`      // 是否置顶:1-不置顶;2-置顶
	CategoryId int       `json:"categoryId"  db:"category_id"` // 分类ID
	Kind       int       `json:"kind"        db:"kind"`        // 文章类型:1-普通文章;
	SortNum    int       `json:"sortNum"     db:"sort_num"`    // 排序
	CmntStatus int       `json:"cmntStatus"  db:"cmnt_status"` // 是否开放评论:1-开放;2-不开放
	IsDelete   int       `json:"isDelete"    db:"is_delete"`   // 是否已删除:1-未删除;2-已删除
	Like       int       `json:"like"        db:"like"`        // 赞
	CmntNum    int       `json:"cmntNum"     db:"cmnt_num"`    // 评论量
	Fire       int       `json:"fire"        db:"fire"`        // 浏览量
	CreatedAt  time.Time `json:"createdAt"   db:"created_at"`  // 创建时间
	UpdatedAt  time.Time `json:"updatedAt"   db:"updated_at"`  // 更新时间
}

type YuArticleTag

type YuArticleTag struct {
	Id        int       `json:"id"         db:"id"`
	ArticleId int       `json:"articleId"  db:"article_id"`
	TagId     int       `json:"tagId"      db:"tag_id"`
	CreatedAt time.Time `json:"createdAt"  db:"created_at"`
	UpdatedAt time.Time `json:"updatedAt"  db:"updated_at"`
}

type YuCategory

type YuCategory struct {
	Id        int       `json:"id"         db:"id"`         // 分类ID
	Name      string    `json:"name"       db:"name"`       // 分类名字
	Color     string    `json:"color"      db:"color"`      // 颜色
	IsDelete  int       `json:"isDelete"   db:"is_delete"`  // 是否已删除:1-未删除;2-已删除
	CreatedAt time.Time `json:"createdAt"  db:"created_at"` // 创建时间
	UpdatedAt time.Time `json:"updatedAt"  db:"updated_at"` // 更新时间
}

type YuCmnt

type YuCmnt struct {
	Id        int       `json:"id"         db:"id"`
	ArticleId int       `json:"articleId"  db:"article_id"` // 文章ID
	SortNum   int       `json:"sortNum"    db:"sort_num"`   // 排序
	Floor     int       `json:"floor"      db:"floor"`      // 楼层
	Like      int       `json:"like"       db:"like"`       // 赞
	Content   string    `json:"content"    db:"content"`    // 内容
	IsDelete  int       `json:"isDelete"   db:"is_delete"`  // 删除:1-未删除;2-已删除
	IsCheck   int       `json:"isCheck"    db:"is_check"`   // 审核:1-未审核;2-已审核
	ReplyNum  int       `json:"replyNum"   db:"reply_num"`  // 回复数量
	UserId    int       `json:"userId"     db:"user_id"`    // 用户ID
	CreatedAt time.Time `json:"createdAt"  db:"created_at"`
	UpdatedAt time.Time `json:"updatedAt"  db:"updated_at"`
}

type YuQuanta

type YuQuanta struct {
	Id        int       `json:"id"         db:"id"`         // 主键
	Key       string    `json:"key"        db:"key"`        // key值
	Value     string    `json:"value"      db:"value"`      // value值
	Desc      string    `json:"desc"       db:"desc"`       // 描述
	IsEnable  int       `json:"isEnable"   db:"is_enable"`  // 是否启用:1-启用;2-不启用
	CreatedAt time.Time `json:"createdAt"  db:"created_at"` // 创建时间
	UpdatedAt time.Time `json:"updatedAt"  db:"updated_at"` // 更新时间
}

type YuRecord

type YuRecord struct {
	Id           int       `json:"id"            db:"id"`
	UserId       int       `json:"userId"        db:"user_id"`       // 用户ID
	BusinessId   int       `json:"businessId"    db:"business_id"`   // 目标Id
	Content      string    `json:"content"       db:"content"`       // 内容
	BusinessKind int       `json:"businessKind"  db:"business_kind"` // 1.系统操作;2.错误日志;3.用户登录;4.全站浏览;5.文章浏览;6.文章赞;7.文章踩;8.文章评论;9.评论赞;10.评论踩;11.评论回复;12.回复赞;13.回复踩
	Agent        string    `json:"agent"         db:"agent"`
	Ip           string    `json:"ip"            db:"ip"` // IP地址
	CreatedAt    time.Time `json:"createdAt"     db:"created_at"`
	UpdatedAt    time.Time `json:"updatedAt"     db:"updated_at"`
}

type YuReply

type YuReply struct {
	Id        int       `json:"id"         db:"id"`
	ArticleId int       `json:"articleId"  db:"article_id"` // 文章ID
	CmntId    int       `json:"cmntId"     db:"cmnt_id"`    // 评论ID
	SortNum   int       `json:"sortNum"    db:"sort_num"`   // 排序
	Floor     int       `json:"floor"      db:"floor"`      // 回复楼层
	Like      int       `json:"like"       db:"like"`       // 赞
	IsDelete  int       `json:"isDelete"   db:"is_delete"`  // 删除:1-未删除;2-已删除
	IsCheck   int       `json:"isCheck"    db:"is_check"`   // 审核:1-未审核;2-已审核
	Content   string    `json:"content"    db:"content"`    // 内容
	AtUserId  int       `json:"atUserId"   db:"at_user_id"` // 艾特用户ID
	AtFloor   int       `json:"atFloor"    db:"at_floor"`   // 艾特楼层
	CreatedAt time.Time `json:"createdAt"  db:"created_at"`
	UpdatedAt time.Time `json:"updatedAt"  db:"updated_at"`
}

type YuTag

type YuTag struct {
	Id        int       `json:"id"         db:"id"`         // 标签ID
	Name      string    `json:"name"       db:"name"`       // 标签名字
	IsDelete  int       `json:"isDelete"   db:"is_delete"`  // 是否已删除:1-未删除;2-已删除
	CreatedAt time.Time `json:"createdAt"  db:"created_at"` // 创建时间
	UpdatedAt time.Time `json:"updatedAt"  db:"updated_at"` // 修改时间
}

type YuUser

type YuUser struct {
	Id        int       `json:"id"         db:"id"`         // 用户id
	ThirdId   int       `json:"thirdId"    db:"third_id"`   // 第三方登录返回的ID
	Role      int       `json:"role"       db:"role"`       // 1-游客;2-普通;3-观察者;8-管理员;9-系统管理员
	From      int       `json:"from"       db:"from"`       // 来源:1-github;2-gitee
	Status    int       `json:"status"     db:"status"`     // 用户状态:1-正常;2-已删除;3-黑名单(禁止发言)
	AvatarUrl string    `json:"avatarUrl"  db:"avatar_url"` // 用户头像
	UserUrl   string    `json:"userUrl"    db:"user_url"`   // 用户地址
	UserName  string    `json:"userName"   db:"user_name"`  // 用户名字
	Bio       string    `json:"bio"        db:"bio"`        // 个性签名
	Sign      string    `json:"sign"       db:"sign"`       // 个性图片
	Ip        string    `json:"ip"         db:"ip"`         // ip
	LastLogin time.Time `json:"lastLogin"  db:"last_login"` // 最近访问
	CreatedAt time.Time `json:"createdAt"  db:"created_at"` // 创建时间
	UpdatedAt time.Time `json:"updatedAt"  db:"updated_at"` // 更新时间
}

Jump to

Keyboard shortcuts

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