mirror of
https://github.com/wgh136/nysoure.git
synced 2025-12-16 15:51:14 +00:00
feat: Add low resolution resource images retrieval and update functionality
This commit is contained in:
@@ -60,6 +60,14 @@ type ResourceDetailView struct {
|
||||
Characters []CharacterView `json:"characters"`
|
||||
}
|
||||
|
||||
type LowResResourceImageView struct {
|
||||
ResourceID uint `json:"resource_id"`
|
||||
Title string `json:"title"`
|
||||
ImageID uint `json:"image_id"`
|
||||
ImageWidth int `json:"image_width"`
|
||||
ImageHeight int `json:"image_height"`
|
||||
}
|
||||
|
||||
func (r *Resource) ToView() ResourceView {
|
||||
tags := make([]TagView, len(r.Tags))
|
||||
for i, tag := range r.Tags {
|
||||
|
||||
Reference in New Issue
Block a user