Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Text = http.StatusText MsgSuccess = map[string]string{"en": "Success", "id": "Sukses"} MsgFailed = map[string]string{"en": "Failed", "id": "Gagal"} )
View Source
var (
ErrInvalidUserType = errors.New("invalid user_type")
)
Functions ¶
This section is empty.
Types ¶
type CaptureError ¶
type CreateUserPayload ¶
type CreateUserPayload struct {
FullName string `json:"fullname"`
PhoneNumber string `json:"phone_number"`
}
func (CreateUserPayload) Validate ¶
func (cup CreateUserPayload) Validate() error
type Response ¶
type Response struct {
Status int `json:"status"`
Message Message `json:"message"`
Errors []CaptureError `json:"errors,omitempty"`
Data interface{} `json:"data,omitempty"`
Meta interface{} `json:"meta,omitempty"`
Header http.Header `json:"header,omitempty"`
Body interface{} `json:"body,omitempty"`
}
func NewResponse ¶
type UpdateUserPayload ¶
type UpdateUserPayload struct {
Fullname string `json:"fullname"`
PhoneNumber string `json:"phone_number"`
UserType string `json:"user_type"`
}
func (UpdateUserPayload) Validate ¶
func (cup UpdateUserPayload) Validate() error
type UpdateUserStatusPayload ¶
Click to show internal directories.
Click to hide internal directories.