refactor: Enhance texture handling and configuration
- Removed Swagger documentation import from the main server file. - Updated TextureInfo struct to include UploaderUsername for better texture metadata. - Modified texture repository methods to preload Uploader information when fetching textures by hash. - Improved texture service to handle cases where Uploader information is missing, ensuring proper caching and retrieval. - Added Redis configuration options in the environment variable setup for better flexibility.
This commit is contained in:
@@ -32,8 +32,6 @@ import (
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"go.uber.org/zap"
|
||||
|
||||
_ "carrotskin/docs" // Swagger docs
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
||||
Reference in New Issue
Block a user