feat: improve error handling on create and add search for objects with code and name

This commit is contained in:
dpurbosakti
2025-10-01 16:04:10 +07:00
parent 759b0ef318
commit af090ed7c1
80 changed files with 285 additions and 492 deletions
@@ -19,6 +19,7 @@ type ReadListDto struct {
FilterDto
Includes string `json:"includes"`
Preloads []string `json:"-"`
Search string `json:"search"`
}
type FilterDto struct {
+3 -2
View File
@@ -10,8 +10,9 @@ type CreateDto struct {
}
type ReadListDto struct {
Code string `json:"code"`
Name string `json:"name"`
Code string `json:"code"`
Name string `json:"name"`
Search string `json:"search"`
Page int `json:"page"`
PageSize int `json:"page_size"`
@@ -10,8 +10,9 @@ type CreateDto struct {
}
type ReadListDto struct {
Code string `json:"code"`
Name string `json:"name"`
Code string `json:"code"`
Name string `json:"name"`
Search string `json:"search"`
Page int `json:"page"`
PageSize int `json:"page_size"`
@@ -20,6 +20,7 @@ type ReadListDto struct {
FilterDto
Includes string `json:"includes"`
Preloads []string `json:"-"`
Search string `json:"search"`
}
type FilterDto struct {
@@ -16,6 +16,7 @@ type ReadListDto struct {
FilterDto
Includes string `json:"includes"`
Preloads []string `json:"-"`
Search string `json:"search"`
}
type FilterDto struct {
@@ -17,6 +17,7 @@ type ReadListDto struct {
FilterDto
Includes string `json:"includes"`
Preloads []string `json:"-"`
Search string `json:"search"`
}
type FilterDto struct {
@@ -15,6 +15,7 @@ type ReadListDto struct {
FilterDto
Includes string `json:"includes"`
Preloads []string `json:"-"`
Search string `json:"search"`
}
type FilterDto struct {
@@ -14,6 +14,7 @@ type ReadListDto struct {
Code string `json:"code"`
Name string `json:"name"`
IndName string `json:"indName"`
Search string `json:"search"`
Page int `json:"page"`
PageSize int `json:"page_size"`
+3 -2
View File
@@ -10,8 +10,9 @@ type CreateDto struct {
}
type ReadListDto struct {
Code string `json:"code"`
Name string `json:"name"`
Code string `json:"code"`
Name string `json:"name"`
Search string `json:"search"`
Page int `json:"page"`
PageSize int `json:"page_size"`