You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package post
|
|
|
|
|
|
|
|
const (
|
|
|
|
// PostDraft means the post is in draft phase
|
|
|
|
PostDraft = 1
|
|
|
|
// PostPublished means the post already published
|
|
|
|
PostPublished = 2
|
|
|
|
// PostDelete means the post has been deleted
|
|
|
|
PostDelete = 3
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
// ArticleType means the post is an ariticle
|
|
|
|
ArticleType = 1
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
// OpCommentLike means a user like a post
|
|
|
|
OpCommentLike = 1
|
|
|
|
// OpCommentDislike means a user dislike a post
|
|
|
|
OpCommentDislike = 2
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
// OpUpdate is the update operation
|
|
|
|
OpUpdate = 1
|
|
|
|
// OpDelete is the delete operation
|
|
|
|
OpDelete = 2
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
// StatusNormal means post is in normal status
|
|
|
|
StatusNormal = 0
|
|
|
|
// StatusDeleted means post is deleted
|
|
|
|
StatusDeleted = 1
|
|
|
|
)
|