39 lines
789 B
Go
39 lines
789 B
Go
package user
|
|
|
|
import erc "simrs-vx/internal/domain/references/common"
|
|
|
|
type CreateDto struct {
|
|
Name string `json:"name"`
|
|
Password string `json:"password"`
|
|
Status_Code erc.StatusCode `json:"status_code"`
|
|
}
|
|
|
|
type ReadListDto struct {
|
|
Name string `json:"name"`
|
|
Status_Code erc.StatusCode `json:"status_code"`
|
|
|
|
Page int `json:"page"`
|
|
PageSize int `json:"page_size"`
|
|
NoPagination int `json:"no_pagination"`
|
|
}
|
|
|
|
type ReadDetailDto struct {
|
|
Id uint `json:"id"`
|
|
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"`
|
|
}
|