topic

package
v0.0.0-...-a70d403 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(db *sql.DB)

func Delete

func Delete(db *sql.DB, Url string) (bool, error)

func Insert

func Insert(db *sql.DB, t Topic) error

func Update

func Update(db *sql.DB, A Topic, url string) error

Types

type Topic

type Topic struct {
	Id             int
	Name           string
	Url            string
	Articles       []string
	Is_public      bool
	Logo_url       string
	Description    string
	Create_time    time.Time
	Modify_time    time.Time
	ArticleObjects []article.Article
}

func Select

func Select(db *sql.DB, Url string, IsPublic bool) (Topic, error)

func Selects

func Selects(db *sql.DB, IsPublic bool) ([]Topic, error)

func (Topic) String

func (t Topic) String() string

Jump to

Keyboard shortcuts

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