Files
huangguo_server/common/top/top.go
T
rootandClaude Opus 5 8679200f41 Initial commit
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-15 13:57:10 +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))
}