Discover Packages
github.com/destafajri/golang-fiber
internal
model
package
Version:
v0.0.0-...-723d331
Opens a new window with list of versions in this module.
Published: Apr 6, 2023
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type CreateProductRequest struct {
Id string `json:"id"`
Name string `json:"name"`
Price int64 `json:"price"`
Quantity int32 `json:"quantity"`
}
type CreateProductResponse struct {
Id string `json:"id"`
Name string `json:"name"`
Price int64 `json:"price"`
Quantity int32 `json:"quantity"`
}
type GetProductResponse struct {
Id string `json:"id"`
Name string `json:"name"`
Price int64 `json:"price"`
Quantity int32 `json:"quantity"`
}
type GetUserPayload struct {
Phone string `json:"phone"`
}
type GetUserResponse struct {
ID string `json:"id"`
Name string `json:"name"`
Phone string `json:"phone"`
Role string `json:"role"`
Password string `json:"password"`
}
type LoginPayload struct {
Phone string `json:"phone"`
Password string `json:"password"`
}
type LoginResponse struct {
Token string `json:"token"`
}
type RegisterUserPayload struct {
Name string `json:"name"`
Phone string `json:"phone"`
Role string `json:"role"`
}
type RegisterUserResponse struct {
ID string `json:"id"`
Name string `json:"name"`
Phone string `json:"phone"`
Role string `json:"role"`
Password string `json:"password"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.