Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/crud
This commit is contained in:
@@ -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