Documentation ¶
Index ¶
- func DeleteArticle(id string) (int64, error)
- func DeleteCusLink(id int) (int64, error)
- func DeleteLink(id string) (int64, error)
- func GetAccount(id int) (*model.Account, error)
- func GetAccountList(page int, size int) (*model.AccountList, error)
- func GetArticle(id string) (*model.Article, error)
- func GetArticleList(page int, size int, search *model.Search) (*model.ArticleList, error)
- 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(id int) (string, error)
- func GetLink(id string) (*model.Link, error)
- func GetLinkCat(id string) (*model.LinkCat, error)
- func GetLinkList(page int, size int, search *model.Search) (*model.LinkList, error)
- func GetLinkUrl(id string) (string, error)
- func IndexLinks() ([]*model.Link, error)
- func InitDb()
- func LinkVisitedCount() (int64, error)
- func ListArticles() ([]*model.Article, error)
- func ListCusLinks() ([]*model.CusLink, error)
- func ListCusLinksByCatId(catid string) ([]*model.CusLink, error)
- func ListLinks(cat_id string) ([]*model.Link, error)
- func Login(user *model.Account) (*model.Account, error)
- func SaveArticle(article *model.Article) (int64, error)
- func SaveCusLink(cuslink *model.CusLink) (int64, error)
- func SaveLink(link *model.Link) (int64, error)
- func TopArticles() ([]*model.Article, error)
- func TopCusLinks() ([]*model.CusLink, error)
- func UpdateArticleVisited(id string) error
- func UpdateCusLinkVisited(id int) error
- func UpdateLinkVisited(id string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteArticle ¶
func DeleteCusLink ¶
func DeleteLink ¶
func GetAccountList ¶
func GetAccountList(page int, size int) (*model.AccountList, error)
func GetArticleList ¶
func GetCatOptions ¶
func GetCusLinkList ¶
func GetCusLinkUrl ¶
func GetLinkList ¶
func GetLinkUrl ¶
func IndexLinks ¶
func LinkVisitedCount ¶
func ListArticles ¶
func ListCusLinks ¶
func TopArticles ¶
func TopCusLinks ¶
func UpdateArticleVisited ¶
func UpdateCusLinkVisited ¶
func UpdateLinkVisited ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.