Release CRUD apis

This commit is contained in:
2025-01-09 18:53:32 +08:00
parent f754a6dd57
commit ca44a04b28
4 changed files with 245 additions and 3 deletions

View File

@@ -16,9 +16,10 @@ const (
type ProductRelease struct {
cruda.BaseModel
Version string `json:"version"`
Type ProductReleaseType `json:"type"`
Assets datatypes.JSON `json:"assets"`
Version string `json:"version"`
Type ProductReleaseType `json:"type"`
Channel string `json:"channel"`
Assets datatypes.JSONType[map[string]any] `json:"assets"`
ProductID uint `json:"product_id"`
Meta ProductReleaseMeta `json:"meta" gorm:"foreignKey:ReleaseID"`