json output fix
This commit is contained in:
@@ -4,10 +4,10 @@ import "gorm.io/gorm"
|
||||
|
||||
type Release struct {
|
||||
gorm.Model
|
||||
SoftwareID uint `gorm:"index" json:"software_id"`
|
||||
SoftwareID uint `gorm:"index" json:"softwareId"`
|
||||
Version string `gorm:"size:64" json:"version"`
|
||||
CartridgePath string `gorm:"size:255" json:"-"`
|
||||
SourcePath string `gorm:"size:255" json:"-"`
|
||||
HTMLFolderPath string `gorm:"size:255" json:"-"`
|
||||
DocsFolderPath string `gorm:"size:255" json:"-"`
|
||||
CartridgePath string `gorm:"size:255" json:"cartridgePath"`
|
||||
SourcePath string `gorm:"size:255" json:"sourcePath"`
|
||||
HTMLFolderPath string `gorm:"size:255" json:"htmlFolderPath"`
|
||||
DocsFolderPath string `gorm:"size:255" json:"docsFolderPath"`
|
||||
}
|
||||
|
||||
@@ -11,14 +11,14 @@ type SoftwareListDTO struct {
|
||||
}
|
||||
|
||||
type SoftwareDetaildListDTO struct {
|
||||
Softwares []SoftwareShowData
|
||||
Softwares []SoftwareShowData `json:"softwares"`
|
||||
}
|
||||
|
||||
type SoftwareShowData struct {
|
||||
Software *Software
|
||||
Releases []Release
|
||||
LatestRelease *Release
|
||||
WebPlayableRelease *Release
|
||||
Software *Software `json:"software"`
|
||||
Releases []Release `json:"releases"`
|
||||
LatestRelease *Release `json:"latestRelease"`
|
||||
WebPlayableRelease *Release `json:"webPlayableRelease"`
|
||||
}
|
||||
|
||||
type SoftwareServiceInterface interface {
|
||||
|
||||
Reference in New Issue
Block a user