app-cloudep-tweeting-service/internal/domain/const.go

25 lines
300 B
Go
Raw Permalink Normal View History

2024-08-29 09:33:57 +00:00
package domain
type AdType int32
func (a AdType) ToInt32() int32 {
return int32(a)
}
const (
AdTypeAll AdType = iota
AdTypeOnlyAd
AdTypeOnlyNotAd
)
2024-08-29 13:26:01 +00:00
type LikeType int8
2024-08-29 14:49:42 +00:00
func (l LikeType) ToInt8() int8 {
2024-08-29 13:26:01 +00:00
return int8(l)
}
const (
LikeTypeLike LikeType = iota + 1 // 按揍
LikeTypeDisLike
)