Merge branch 'migration' of github.com:dikstub-rssa/simrs-be into feat/crud

This commit is contained in:
dpurbosakti
2025-08-29 15:38:38 +07:00
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -11,7 +11,7 @@ type CreateDto struct {
Code string `json:"code"`
Name string `json:"name"`
InfraGroup_Code ero.InfraGroupCode `json:"infraGroup_code"`
Parent_Id *int16 `json:"parent_id"`
Parent_Id *uint16 `json:"parent_id"`
Item_Id *uint `json:"item_id"`
}
@@ -19,7 +19,7 @@ type ReadListDto struct {
Code string `json:"code"`
Name string `json:"name"`
InfraGroup_Code ero.InfraGroupCode `json:"infraGroup_code"`
Parent_Id *int16 `json:"parent_id"`
Parent_Id *uint16 `json:"parent_id"`
Item_Id *uint `json:"item_id"`
Page int `json:"page"`
@@ -32,7 +32,7 @@ type ReadDetailDto struct {
Code string `json:"code"`
Name string `json:"name"`
InfraGroup_Code ero.InfraGroupCode `json:"infraGroup_code"`
Parent_Id *int16 `json:"parent_id"`
Parent_Id *uint16 `json:"parent_id"`
Item_Id *uint `json:"item_id"`
}
@@ -56,7 +56,7 @@ type ResponseDto struct {
Code string `json:"code"`
Name string `json:"name"`
InfraGroup_Code ero.InfraGroupCode `json:"infraGroup_code"`
Parent_Id *int16 `json:"parent_id"`
Parent_Id *uint16 `json:"parent_id"`
Item_Id *uint `json:"item_id"`
Item *ei.Item `json:"item,omitempty"`
}
@@ -12,7 +12,7 @@ type Infra struct {
Code string `json:"code" gorm:"unique;size:10"`
Name string `json:"name" gorm:"size:50"`
InfraGroup_Code ero.InfraGroupCode `json:"infraGroup_code" gorm:"size:10"`
Parent_Id *int16 `json:"parent_id"`
Parent_Id *uint16 `json:"parent_id"`
Item_Id *uint `json:"item_id"`
Item *ei.Item `json:"item,omitempty" gorm:"foreignKey:Item_Id;references:Id"`
}