modified: main_dc/yalarba/api_yal/internal/models/feedback.go
upgrade feedback.go, add Platform type and score atributs
This commit is contained in:
@@ -14,6 +14,12 @@ type Feedback struct {
|
||||
ObjectID uint `gorm:"not null;index" json:"object_id"`
|
||||
Object Object `gorm:"foreignKey:ObjectID;references:ID" json:"object,omitempty"`
|
||||
|
||||
// enterprener / tourist
|
||||
Platform PlatformType `json:"platform"`
|
||||
|
||||
// 1 - 5
|
||||
Score int `json:"score"`
|
||||
|
||||
// Основная информация
|
||||
Text string `json:"text"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user