almost done, not tested yet

This commit is contained in:
dpurbosakti
2025-10-14 16:39:28 +07:00
parent d3f441dd56
commit 3e4ce7d1bf
15 changed files with 221 additions and 48 deletions
@@ -5,9 +5,9 @@ import (
)
type CreateDto struct {
RequestPayload *string `json:"requestPayload"`
ResponseBody *string `json:"responseBody"`
Message *string `json:"message"`
RequestPayload string `json:"requestPayload"`
ResponseBody string `json:"responseBody"`
Message string `json:"message"`
}
type ReadListDto struct {
@@ -25,7 +25,8 @@ type FilterDto struct {
}
type ReadDetailDto struct {
Id uint `json:"id"`
Id uint `json:"id"`
Number *string `json:"number"`
}
type UpdateDto struct {
@@ -34,7 +35,8 @@ type UpdateDto struct {
}
type DeleteDto struct {
Id uint `json:"id"`
Id uint `json:"id"`
Number *string `json:"number"`
}
type MetaDto struct {
@@ -65,3 +67,7 @@ func ToResponseList(data []VclaimSep) []ResponseDto {
}
return resp
}
func (c CreateDto) IsMessageSuccess() bool {
return c.VclaimSepHist.Message == "Sukses"
}