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:
@@ -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"`
|
||||||
|
|||||||
Reference in New Issue
Block a user