2023-12-25 17:08:19 +00:00
|
|
|
package adminkindboxparam
|
|
|
|
|
2024-07-30 20:30:24 +00:00
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
2023-12-25 17:08:19 +00:00
|
|
|
|
2024-07-30 20:30:24 +00:00
|
|
|
//when kindbox creates, which fields are
|
2023-12-25 17:08:19 +00:00
|
|
|
type KindBoxUpdateRequest struct {
|
2024-07-30 20:30:24 +00:00
|
|
|
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 {
|
2024-07-30 20:30:24 +00:00
|
|
|
FieldErrors map[string]string `json:"field_errors,omitempty"`
|
2023-12-25 17:08:19 +00:00
|
|
|
}
|