domain

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteArticle

func DeleteArticle(id string) (int64, error)
func DeleteCusLink(id int) (int64, error)
func DeleteLink(id string) (int64, error)

func GetAccount

func GetAccount(id int) (*model.Account, error)

func GetAccountList

func GetAccountList(page int, size int) (*model.AccountList, error)

func GetArticle

func GetArticle(id string) (*model.Article, error)

func GetArticleList

func GetArticleList(page int, size int, search *model.Search) (*model.ArticleList, error)

func GetCatOptions

func GetCatOptions() ([]*model.LinkCat, error)
func GetCusLink(id int) (*model.CusLink, error)
func GetCusLinkList(page int, size int, search *model.Search) (*model.CusLinkList, error)

func GetCusLinkUrl

func GetCusLinkUrl(id int) (string, error)
func GetLink(id string) (*model.Link, error)

func GetLinkCat

func GetLinkCat(id string) (*model.LinkCat, error)
func GetLinkList(page int, size int, search *model.Search) (*model.LinkList, error)

func GetLinkUrl

func GetLinkUrl(id string) (string, error)
func IndexLinks() ([]*model.Link, error)

func InitDb

func InitDb()

func LinkVisitedCount

func LinkVisitedCount() (int64, error)

func ListArticles

func ListArticles() ([]*model.Article, error)
func ListCusLinks() ([]*model.CusLink, error)

func ListCusLinksByCatId

func ListCusLinksByCatId(catid string) ([]*model.CusLink, error)
func ListLinks(cat_id string) ([]*model.Link, error)

func Login

func Login(user *model.Account) (*model.Account, error)

func SaveArticle

func SaveArticle(article *model.Article) (int64, error)
func SaveCusLink(cuslink *model.CusLink) (int64, error)
func SaveLink(link *model.Link) (int64, error)

func TopArticles

func TopArticles() ([]*model.Article, error)
func TopCusLinks() ([]*model.CusLink, error)

func UpdateArticleVisited

func UpdateArticleVisited(id string) error

func UpdateCusLinkVisited

func UpdateCusLinkVisited(id int) error

func UpdateLinkVisited

func UpdateLinkVisited(id string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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