perbaikan struct update dan create request struct
Some checks failed
Go-test / build (push) Has been cancelled
Some checks failed
Go-test / build (push) Has been cancelled
This commit is contained in:
@@ -198,7 +198,7 @@ type MsRegistrationCounterGetResponse struct {
|
||||
}
|
||||
|
||||
type MsRegistrationCounterCreateRequest struct {
|
||||
Name string `json:"name" validate:"required,min=1"`
|
||||
Name string `json:"name"`
|
||||
Code string `json:"code"`
|
||||
Icon string `json:"icon"`
|
||||
Quota int16 `json:"quota" validate:"min=0"`
|
||||
@@ -215,10 +215,10 @@ type MsRegistrationCounterCreateResponse struct {
|
||||
}
|
||||
|
||||
type MsRegistrationCounterUpdateRequest struct {
|
||||
ID int `json:"id" validate:"required,min=1"`
|
||||
Name string `json:"name" validate:"required,min=1"`
|
||||
Code string `json:"code" validate:"required,min=1"`
|
||||
Icon string `json:"icon" validate:"min=1"`
|
||||
ID int `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Code string `json:"code"`
|
||||
Icon string `json:"icon"`
|
||||
Quota int16 `json:"quota" validate:"min=0"`
|
||||
Active bool `json:"active"`
|
||||
FKRefHealtcareTypeID int32 `json:"fk_ref_healtcare_type_id"`
|
||||
|
||||
Reference in New Issue
Block a user