refactor: 重构服务层和仓库层
This commit is contained in:
@@ -296,6 +296,11 @@ func (b *CacheKeyBuilder) Texture(textureID int64) string {
|
||||
return fmt.Sprintf("%stexture:id:%d", b.prefix, textureID)
|
||||
}
|
||||
|
||||
// TextureByHash 构建材质hash缓存键
|
||||
func (b *CacheKeyBuilder) TextureByHash(hash string) string {
|
||||
return fmt.Sprintf("%stexture:hash:%s", b.prefix, hash)
|
||||
}
|
||||
|
||||
// TextureList 构建材质列表缓存键
|
||||
func (b *CacheKeyBuilder) TextureList(userID int64, page int) string {
|
||||
return fmt.Sprintf("%stexture:user:%d:page:%d", b.prefix, userID, page)
|
||||
|
||||
Reference in New Issue
Block a user