refactor: rename fields

This commit is contained in:
mudler 2023-05-18 22:36:50 +02:00
parent 5c8697d08a
commit e88949d9c3
2 changed files with 4 additions and 4 deletions

View file

@ -110,7 +110,7 @@ func (g *galleryApplier) start(c context.Context, cm *ConfigMerger) {
type ApplyGalleryModelRequest struct { type ApplyGalleryModelRequest struct {
URL string `json:"url"` URL string `json:"url"`
Name string `json:"name"` Name string `json:"name"`
AdditionalFiles []gallery.File `json:"file"` AdditionalFiles []gallery.File `json:"files"`
} }
func getOpStatus(g *galleryApplier) func(c *fiber.Ctx) error { func getOpStatus(g *galleryApplier) func(c *fiber.Ctx) error {

View file

@ -51,9 +51,9 @@ type Config struct {
} }
type File struct { type File struct {
Filename string `yaml:"filename"` Filename string `yaml:"filename" json:"filename"`
SHA256 string `yaml:"sha256"` SHA256 string `yaml:"sha256" json:"sha256"`
URI string `yaml:"uri"` URI string `yaml:"uri" json:"uri"`
} }
type PromptTemplate struct { type PromptTemplate struct {