Documentation ¶
Index ¶
Constants ¶
View Source
const (
// PassWordCost 密码加密难度
PassWordCost = 12
)
Variables ¶
View Source
var DB *gorm.DB
DB 数据库链接单例
Functions ¶
Types ¶
type Comment ¶
type Comment struct { gorm.Model TopicID uint ParentID uint CreatorID uint Content string Permission uint }
Comment 评论模型
type Picture ¶
type Picture struct { gorm.Model Title string Info string CreatorID uint Permission uint Key string }
Picture 图片模型
Click to show internal directories.
Click to hide internal directories.