new file: 2

modified:   main_dc/yalarba/api_yal/internal/models/rating.go
fix sicle links for VoteBreakdown struct and rating
This commit is contained in:
2026-02-12 04:29:41 +05:00
parent f40d3c92d0
commit 9f9986dbdb
2 changed files with 10 additions and 2 deletions
+10
View File
@@ -0,0 +1,10 @@
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch main
# Your branch is up to date with 'origin/main'.
#
# Changes to be committed:
modified: main_dc/yalarba/api_yal/internal/models/rating.go
fix bag with cicle links into rating.go struct
@@ -43,8 +43,6 @@ type VoteBreakdown struct {
// RatingID - идентификатор рейтинга, к которому относится детализация // RatingID - идентификатор рейтинга, к которому относится детализация
RatingID uint `json:"rating_id"` RatingID uint `json:"rating_id"`
// Rating - рейтинг, связанный по RatingID
Rating Rating `gorm:"foreignKey:RatingID;references:ID" json:"rating"`
// Score1 - количество оценок "1" // Score1 - количество оценок "1"
Score1 int `json:"score_1"` Score1 int `json:"score_1"`