1234567891011121314151617181920212223 |
- package model
- const (
- ThumbupLike int8 = 1
- ThumbupLikeCancel int8 = 2
- ThumbupHate int8 = 3
- ThumbupHateCancel int8 = 4
- )
- type ThumbupStat struct {
- Likes int64 `json:"likes"`
- UserLike int8 `json:"user_like"`
- }
- func CheckThumbup(Thumbup int8) bool {
- if Thumbup == ThumbupLikeCancel || Thumbup == ThumbupLike || Thumbup == ThumbupHateCancel || Thumbup == ThumbupHate {
- return true
- }
- return false
- }
|