article

package
v0.0.0-...-eb64f0e Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddArticle

func AddArticle(this *server.Context) error

AddArticle - add article.

func AddCategory

func AddCategory(this *server.Context) error

AddCategory add category.

func AddCollection

func AddCollection(this *server.Context) error

AddCollection - add collection.

func AddComment

func AddComment(this *server.Context) error

AddComment create comment.

func AddTag

func AddTag(this *server.Context) error

AddTag add tag.

func AllCategories

func AllCategories(this *server.Context) error

AllCategories returns all categories.

func CommentInfo

func CommentInfo(this *server.Context) error

CommentInfo return comment's information.

func DeleteArt

func DeleteArt(this *server.Context) error

DeleteArt deletes article.

func DeleteCategory

func DeleteCategory(this *server.Context) error

DeleteCategory delete category.

func DeleteComment

func DeleteComment(this *server.Context) error

DeleteComment delete comment.

func DeleteTag

func DeleteTag(this *server.Context) error

DeleteTag delete tag.

func GetByArtID

func GetByArtID(this *server.Context) error

GetByArtID gets articles by ArtID.

func GetByArticle

func GetByArticle(this *server.Context) error

GetByArticle return comments by articleId.

func GetByCategoryID

func GetByCategoryID(this *server.Context) error

GetByCategoryID gets articles by CategoryID.

func GetByTagID

func GetByTagID(this *server.Context) error

GetByTagID - gets articles by TagID.

func GetByUser

func GetByUser(this *server.Context) error

func GetByUserID

func GetByUserID(this *server.Context) error

GetByUserID - gets articles by userID.

func HistoryMessage

func HistoryMessage(this *server.Context) error

HistoryMessage return the message which is read by userid.

func ListRecommend

func ListRecommend(this *server.Context) error

ListRecommend return recommended category.

func ListTags

func ListTags(this *server.Context) error

ListTags return all tags.

func MessageRead

func MessageRead(this *server.Context) error

MessageRead change the status of the message which is read.

func Recommend

func Recommend(this *server.Context) error

Recommend return popular articles.

func Reply

func Reply(info ...article.Article) ([]*replyInfo, error)

Reply return a struct of replyInfo.

func SearchByTitle

func SearchByTitle(this *server.Context) error

SearchByTitle - gets articles by title.

func UnCollection

func UnCollection(this *server.Context) error

UnCollection - cancel collecting.

func UnreadMessage

func UnreadMessage(this *server.Context) error

UnreadMessage return the unread message by userid.

func UpdateCategoryVisit

func UpdateCategoryVisit(this *server.Context) error

UpdateCategoryVisit updates CategoryVisit.

func UpdateVisit

func UpdateVisit(this *server.Context) error

UpdateVisit update visitNum.

func UserReply

func UserReply(this *server.Context) error

UserReply return the information about someone's reply.

Types

This section is empty.

Jump to

Keyboard shortcuts

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