post

package
v0.0.0-...-31439ab Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: GPL-3.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 AssPostsLike

type AssPostsLike struct {
	basemodel.Model

	Uid uint `gorm:"index:,unique,composite:AssPostsLike"`
	Pid uint `gorm:"index:,unique,composite:AssPostsLike"`
}

type AssTopicLike

type AssTopicLike struct {
	basemodel.Model

	Uid uint `gorm:"index:,unique,composite:AssTopicLike"`
	Tid uint `gorm:"index:,unique,composite:AssTopicLike"`
}

type Forum

type Forum struct {
	basemodel.Model

	Name   string `gorm:"column:name"`
	Remark string `gorm:"column:remark"` // 备注
}

Forum 板块表

type Notification

type Notification struct {
	basemodel.Model

	Title          string `gorm:"column:title" json:"title"`                      // 标题
	Short          string `gorm:"column:short" json:"short"`                      // 简短
	Type           string `gorm:"column:type" json:"type"`                        // 通知类型
	Top            bool   `gorm:"column:top" json:"top"`                          // 是否置顶
	Fixed          bool   `gorm:"column:fixed" json:"fixed"`                      // 是否侧边
	Content        string `gorm:"column:content" json:"content,omitempty"`        // markdown
	CreateBy       string `gorm:"column:create_by" json:"createBy"`               // 创建人
	CreateByUserID uint   `gorm:"column:create_by_user_id" json:"createByUserID"` // 创建人ID
	Remark         string `gorm:"column:remark" json:"remark,omitempty"`          // 备注
}

type Posts

type Posts struct {
	basemodel.Model

	Tid      uint   `gorm:"column:tid"`       // 帖子id
	Uid      uint   `gorm:"column:uid"`       // 用户id
	UserName string `gorm:"column:user_name"` // 用户名
	ReplyPid uint   `gorm:"column:reply_pid"` // 回复的pid

	ToName string `gorm:"column:to_name"` // 回复名
	ToId   uint   `gorm:"column:to_id"`   // 回复的id

	Content string `gorm:"column:content"` // 回复内容
	IP      string `gorm:"column:ip"`      // ip地址
}

Posts 回复内容

type Topic

type Topic struct {
	basemodel.Model

	Fid            uint   `gorm:"column:fid"`               // 板块id
	CreateBy       string `gorm:"column:create_by"`         // 创建人
	CreateByUserID uint   `gorm:"column:create_by_user_id"` // 创建人ID
	CreateIp       string `gorm:"column:create_ip"`         // ip地址
	UpdateIp       string `gorm:"column:update_ip"`         // 更新的ip地址

	Status     TopicStatus `gorm:"column:status"`            // 发布状态
	Title      string      `gorm:"column:title"`             // 标题
	Short      string      `gorm:"column:short"`             // 简短说明
	Content    string      `gorm:"column:content"`           // md
	Tags       string      `gorm:"column:tags;index:,"`      // tags
	Type       string      `gorm:"column:type"`              // 类型
	TopImage   string      `gorm:"column:top_img"`           // 头图
	IsOriginal bool        `gorm:"column:is_original"`       // 是否原创
	Original   string      `gorm:"column:original"`          // 原创
	KeyWords   string      `gorm:"column:key_words;index:,"` // 关键词

	Ban bool `gorm:"column:ban"` // 是否封禁
}

Topic 主题帖

type TopicStatus

type TopicStatus int
const (
	TopicStatusRelease       TopicStatus = iota + 1 //发布
	TopicStatusUnpublished                          //未发布
	TopicStatusBan                                  //封禁
	TopicStatusPendingReview                        //待审核
	TopicStatusReviewField
)

Jump to

Keyboard shortcuts

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