Files
2025-08-13 14:26:14 +07:00

38 lines
696 B
Go

package single
type CreateDto struct {
Code string `json:"code"`
Name string `json:"name"`
Description string `json:"description"`
}
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"`
}
type Updatedto struct {
Id uint `json:"id"`
CreateDto
}
type Deletedto struct {
Id uint `json:"id"`
}
type MetaDto struct {
PageNumber int `json:"page_number"`
PageSize int `json:"page_size"`
Count int64 `json:"count"`
}