almost done, not tested yet
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user