wip
This commit is contained in:
No files matched your search
@@ -13,6 +13,7 @@ type CreateDto struct {
|
||||
type ReadListDto struct {
|
||||
FilterDto
|
||||
Includes string `json:"includes"`
|
||||
Sort string `json:"sort"`
|
||||
Pagination ecore.Pagination
|
||||
}
|
||||
|
||||
@@ -48,7 +49,7 @@ type ResponseDto struct {
|
||||
Message *string `json:"message"`
|
||||
}
|
||||
|
||||
func (d VClaimSepHist) ToResponse() ResponseDto {
|
||||
func (d VclaimSepHist) ToResponse() ResponseDto {
|
||||
resp := ResponseDto{
|
||||
RequestPayload: d.RequestPayload,
|
||||
ResponseBody: d.ResponseBody,
|
||||
@@ -58,7 +59,7 @@ func (d VClaimSepHist) ToResponse() ResponseDto {
|
||||
return resp
|
||||
}
|
||||
|
||||
func ToResponseList(data []VClaimSepHist) []ResponseDto {
|
||||
func ToResponseList(data []VclaimSepHist) []ResponseDto {
|
||||
resp := make([]ResponseDto, len(data))
|
||||
for i, u := range data {
|
||||
resp[i] = u.ToResponse()
|
||||
|
||||
@@ -11,6 +11,7 @@ type CreateDto struct {
|
||||
type ReadListDto struct {
|
||||
FilterDto
|
||||
Includes string `json:"includes"`
|
||||
Sort string `json:"sort"`
|
||||
Pagination ecore.Pagination
|
||||
}
|
||||
|
||||
@@ -43,7 +44,7 @@ type ResponseDto struct {
|
||||
Counter *uint `json:"counter"`
|
||||
}
|
||||
|
||||
func (d VClaimSepPrint) ToResponse() ResponseDto {
|
||||
func (d VclaimSepPrint) ToResponse() ResponseDto {
|
||||
resp := ResponseDto{
|
||||
VclaimSep_Number: d.VclaimSep_Number,
|
||||
Counter: d.Counter,
|
||||
@@ -52,7 +53,7 @@ func (d VClaimSepPrint) ToResponse() ResponseDto {
|
||||
return resp
|
||||
}
|
||||
|
||||
func ToResponseList(data []VClaimSepPrint) []ResponseDto {
|
||||
func ToResponseList(data []VclaimSepPrint) []ResponseDto {
|
||||
resp := make([]ResponseDto, len(data))
|
||||
for i, u := range data {
|
||||
resp[i] = u.ToResponse()
|
||||
|
||||
@@ -5,13 +5,15 @@ import (
|
||||
)
|
||||
|
||||
type CreateDto struct {
|
||||
Encounter_Id *uint `json:"encounter_id"`
|
||||
Number *string `json:"number" validate:"maxLength=19"`
|
||||
Encounter_Id *uint `json:"encounter_id"`
|
||||
Number *string `json:"number" validate:"maxLength=19"`
|
||||
RequestPayload []byte `json:"requestPayload" validate:"maxLength=1024"`
|
||||
}
|
||||
|
||||
type ReadListDto struct {
|
||||
FilterDto
|
||||
Includes string `json:"includes"`
|
||||
Sort string `json:"sort"`
|
||||
Pagination ecore.Pagination
|
||||
}
|
||||
|
||||
@@ -44,7 +46,7 @@ type ResponseDto struct {
|
||||
Number *string `json:"number"`
|
||||
}
|
||||
|
||||
func (d VClaimSep) ToResponse() ResponseDto {
|
||||
func (d VclaimSep) ToResponse() ResponseDto {
|
||||
resp := ResponseDto{
|
||||
Encounter_Id: d.Encounter_Id,
|
||||
Number: d.Number,
|
||||
@@ -53,7 +55,7 @@ func (d VClaimSep) ToResponse() ResponseDto {
|
||||
return resp
|
||||
}
|
||||
|
||||
func ToResponseList(data []VClaimSep) []ResponseDto {
|
||||
func ToResponseList(data []VclaimSep) []ResponseDto {
|
||||
resp := make([]ResponseDto, len(data))
|
||||
for i, u := range data {
|
||||
resp[i] = u.ToResponse()
|
||||
|
||||
@@ -125,7 +125,7 @@ type ResponseDto struct {
|
||||
AdmDischargeEducation *string `json:"admDischargeEducation"`
|
||||
DischargeReason *string `json:"dischargeReason"`
|
||||
Status_Code erc.DataStatusCode `json:"status_code"`
|
||||
VclaimSep *evs.VClaimSep `json:"vclaimSep,omitempty"`
|
||||
VclaimSep *evs.VclaimSep `json:"vclaimSep,omitempty"`
|
||||
}
|
||||
|
||||
func (d Encounter) ToResponse() ResponseDto {
|
||||
|
||||
Reference in New Issue
Block a user