Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/crud
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
h1:MjDAKEJK5Xf8q46mZR+EV6dJDBnGujQZyg98WDs/oJM=
|
||||
h1:NHJkMhPA1vP9q0CThwWTfKyvuE9V0Cn7WN+gtrIMw/8=
|
||||
20250825054027.sql h1:zRUeuuP4bDLf96Cb38D/l9ivBAQC745XRao0rxbzdVI=
|
||||
20250825060522.sql h1:NiE1fVzydcg8Y8ytSHgt0DkkauQFveNXv42BoG5m+bI=
|
||||
20250825102900.sql h1:OAUnj87Wz7mrHykX14idePckUmRYa5UH0LylYDL76RI=
|
||||
@@ -9,4 +9,4 @@ h1:MjDAKEJK5Xf8q46mZR+EV6dJDBnGujQZyg98WDs/oJM=
|
||||
20250827072230.sql h1:BfdTcToEYC8d30BS+1Su5Pz5Ecz8bh74F2j+Bh/r2BM=
|
||||
20250827083322.sql h1:2MErE7W1JTjcxtgKJs/1iEF8kgV6vrcGrDVx/m6LwHQ=
|
||||
20250828061151.sql h1:CxTT3e9ZJ+Rp4UXE40SuFswVedlagKqDneFkg4BZkRs=
|
||||
20250828070941.sql h1:IFzr/lvd99yOUdNXuW8wJNjBkXPhrHfMR2Ilx9+2MqE=
|
||||
20250828070941.sql h1:Tr4Nal4jB9vFY6lpN2b9VIDKej91DWIgjD3K/dA69kc=
|
||||
|
||||
@@ -9,13 +9,13 @@ import (
|
||||
type CreateDto struct {
|
||||
Item_Id *uint `json:"item_id"`
|
||||
Price float64 `json:"price"`
|
||||
InsuranceCompany_Code *uint16 `json:"insuranceCompany_code"`
|
||||
InsuranceCompany_Code *string `json:"insuranceCompany_code"`
|
||||
}
|
||||
|
||||
type ReadListDto struct {
|
||||
Item_Id *uint `json:"item_id"`
|
||||
Price float64 `json:"price"`
|
||||
InsuranceCompany_Code *uint16 `json:"insuranceCompany_code"`
|
||||
InsuranceCompany_Code *string `json:"insuranceCompany_code"`
|
||||
|
||||
Page int `json:"page"`
|
||||
PageSize int `json:"page_size"`
|
||||
@@ -26,7 +26,7 @@ type ReadDetailDto struct {
|
||||
Id uint16 `json:"id"`
|
||||
Item_Id *uint `json:"item_id"`
|
||||
Price float64 `json:"price"`
|
||||
InsuranceCompany_Code *uint16 `json:"insuranceCompany_code"`
|
||||
InsuranceCompany_Code *string `json:"insuranceCompany_code"`
|
||||
}
|
||||
|
||||
type UpdateDto struct {
|
||||
@@ -49,7 +49,7 @@ type ResponseDto struct {
|
||||
Item_Id *uint `json:"item_id"`
|
||||
Item *ei.Item `json:"item,omitempty"`
|
||||
Price float64 `json:"price"`
|
||||
InsuranceCompany_Code *uint16 `json:"insuranceCompany_code"`
|
||||
InsuranceCompany_Code *string `json:"insuranceCompany_code"`
|
||||
InsuranceCompany *eic.InsuranceCompany `json:"insuranceCompany,omitempty"`
|
||||
}
|
||||
|
||||
|
||||
@@ -11,6 +11,6 @@ type ItemPrice struct {
|
||||
Item_Id *uint `json:"item_id"`
|
||||
Item *ei.Item `json:"item,omitempty" gorm:"foreignKey:Item_Id;references:Id"`
|
||||
Price float64 `json:"price"`
|
||||
InsuranceCompany_Code *uint16 `json:"insuranceCompany_code" gorm:"size:20"`
|
||||
InsuranceCompany_Code *string `json:"insuranceCompany_code" gorm:"size:20"`
|
||||
InsuranceCompany *eic.InsuranceCompany `json:"insuranceCompany,omitempty" gorm:"foreignKey:InsuranceCompany_Code;references:Code"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user