Files
hjsq_server/common/top/top.go
T
2026-10-08 16:50:13 +08:00

25 lines
569 B
Go

package topser
import "fmt"
type TopName string
const (
//TypeMovie TopName = "movie"
//TypePics TopName = "pics"
//TypePost TopName = "post"
//TypeCollections TopName = "collections"
//TypeActress TopName = "actress"
typeMedia = "media:%v"
typeVideo = "video:%v"
TypeRecommendUser TopName = "RecommendUser"
)
func TypeMedia(mediaType string) TopName {
return TopName(fmt.Sprintf(typeMedia, mediaType))
}
func TypeVideo(newsType string) TopName {
return TopName(fmt.Sprintf(typeVideo, newsType))
}