feat: Add low resolution character retrieval functionality

This commit is contained in:
2025-11-17 20:20:43 +08:00
parent 27bda316df
commit 5d1e43f88d
4 changed files with 135 additions and 4 deletions

View File

@@ -20,6 +20,15 @@ type CharacterView struct {
Image uint `json:"image"`
}
type LowResCharacterView struct {
CharacterID uint `json:"character_id"`
ResourceID uint `json:"resource_id"`
Name string `json:"name"`
ImageID uint `json:"image_id"`
ImageWidth int `json:"image_width"`
ImageHeight int `json:"image_height"`
}
func (c *Character) ToView() *CharacterView {
var imageID uint
if c.ImageID != nil {