On branch main

modified:   internal/domain/appeal/dto.go
	new file:   internal/domain/appeal/handler.go
	modified:   internal/domain/appeal/router.go
	modified:   internal/domain/appeal/service.go
	modified:   internal/models/appeal.go
	modified:   internal/router/router.go
fix bag with no embeded the Base into appeal
This commit is contained in:
2026-05-21 05:04:34 +05:00
parent ba2e3b9545
commit 318075d686
6 changed files with 1300 additions and 10 deletions
@@ -106,7 +106,7 @@ type Appeal struct {
// AppealHistory записывает историю изменений статуса обращения
type AppealHistory struct {
Base Base `gorm:"embedded"`
Base `gorm:"embedded"`
AppealID uint `gorm:"not null;index" json:"appeal_id"`
Appeal Appeal `gorm:"foreignKey:AppealID;references:ID" json:"appeal,omitempty"`