forked from ebhomengo/niki
1
0
Fork 0
niki/param/admin/kind_box/update.go

21 lines
769 B
Go
Raw Normal View History

2023-12-25 17:08:19 +00:00
package adminkindboxparam
import (
"time"
)
2023-12-25 17:08:19 +00:00
//when kindbox creates, which fields are
2023-12-25 17:08:19 +00:00
type KindBoxUpdateRequest struct {
KindBoxID uint `json:"-" param:"id" example:"1"` // ID is passed in the URL path
BenefactorID uint `json:"benefactor_id" example:"1"`
ReturnReferTimeID uint `json:"return_refere_time_id" example:"3"`
ReturnReferDate time.Time `json:"return_refer_date" example:"2025-01-02T15:04:05Z"`
ReturnAddressID uint `json:"return_address_id" example:"1"`
ReceiverAgentID uint `json:"receiver_agent_id" example:"23"`
Amount uint `json:"amount" example:"3"`
2023-12-25 17:08:19 +00:00
}
type KindBoxUpdateResponse struct {
FieldErrors map[string]string `json:"field_errors,omitempty"`
2023-12-25 17:08:19 +00:00
}