Exemple #1
0
func AddGuest(content string, userID uint32) int64 {
	query := "INSERT content set content=?,userID=?"
	return sqlmodel.NonQuery(query, content, userID)
}
Exemple #2
0
func DelGuest(contentID int) int64 {
	query := "DELETE FROM content WHERE id=?"
	return sqlmodel.NonQuery(query, contentID)
}