pre-dev: wip crud template

This commit is contained in:
dpurbosakti
2025-08-11 13:13:29 +07:00
parent 5a950b5fe9
commit 4b3090d788
3 changed files with 224 additions and 27 deletions

No files matched your search

+11
View File
@@ -9,9 +9,14 @@ type Createdto struct {
type ReadListDto struct {
Code string `json:"code"`
Name string `json:"name"`
Page int `json:"page"`
PageSize int `json:"page_size"`
NoPagination int `json:"no_pagination"`
}
type ReadDetailDto struct {
Id uint `json:"id"`
Code string `json:"code"`
Name string `json:"name"`
}
@@ -24,3 +29,9 @@ type Updatedto struct {
type Deletedto struct {
Id uint `json:"id"`
}
type MetaDto struct {
PageNumber int `json:"page_number"`
PageSize int `json:"page_size"`
Count int64 `json:"count"`
}