Documentation ¶
Index ¶
- Variables
- func DelPostByID(id int64) error
- func DelUserByID(id int64) error
- func NewPost(userID int64, content string) (int64, error)
- func NewUser(username, password string) (int64, error)
- func Setup() error
- func UpdPostByID(id int64, content string) error
- func UpdUserByID(id int64, username, password string) error
- func VerifyUserByUsernameAndPassword(username, password string) (int64, error)
- type Post
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
func DelPostByID ¶
func DelUserByID ¶
func UpdPostByID ¶
func UpdUserByID ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.