Documentation ¶
Index ¶
- Constants
- type Address
- type BaseResponse
- type Complaint
- type PasswordChangeRequest
- type Pharmacy
- type PharmacyBlockRequest
- type PharmacyComplaintsResponse
- type PharmacyGetAllProductsResponse
- func (m *PharmacyGetAllProductsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *PharmacyGetAllProductsResponse) MarshalBinary() ([]byte, error)
- func (m *PharmacyGetAllProductsResponse) UnmarshalBinary(b []byte) error
- func (m *PharmacyGetAllProductsResponse) Validate(formats strfmt.Registry) error
- type PharmacyGetAllResponse
- func (m *PharmacyGetAllResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *PharmacyGetAllResponse) MarshalBinary() ([]byte, error)
- func (m *PharmacyGetAllResponse) UnmarshalBinary(b []byte) error
- func (m *PharmacyGetAllResponse) Validate(formats strfmt.Registry) error
- type PharmacyUsersResponse
- type Products
- type PurchaseAddRequest
- type PurchaseConfirmRequest
- func (m *PurchaseConfirmRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *PurchaseConfirmRequest) MarshalBinary() ([]byte, error)
- func (m *PurchaseConfirmRequest) UnmarshalBinary(b []byte) error
- func (m *PurchaseConfirmRequest) Validate(formats strfmt.Registry) error
- type PurchaseShowResponse
- type PurchaseShowResponseItemsItems0
- func (m *PurchaseShowResponseItemsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *PurchaseShowResponseItemsItems0) MarshalBinary() ([]byte, error)
- func (m *PurchaseShowResponseItemsItems0) UnmarshalBinary(b []byte) error
- func (m *PurchaseShowResponseItemsItems0) Validate(formats strfmt.Registry) error
- type RegisterRequest
- type RequestPasswordChangeRequest
- func (m *RequestPasswordChangeRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *RequestPasswordChangeRequest) MarshalBinary() ([]byte, error)
- func (m *RequestPasswordChangeRequest) UnmarshalBinary(b []byte) error
- func (m *RequestPasswordChangeRequest) Validate(formats strfmt.Registry) error
- type User
- type UserAllResponse
- type UserBlockRequest
- type UserLoginRequest
- type UserLoginResponse
- type UserRefreshRequest
- type UserResponse
Constants ¶
const ( // UserRoleAdmin captures enum value "admin" UserRoleAdmin string = "admin" // UserRoleApothecary captures enum value "apothecary" UserRoleApothecary string = "apothecary" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { // city City string `json:"city"` // house House string `json:"house"` // street Street string `json:"street"` }
Address address
swagger:model Address
func (*Address) ContextValidate ¶
ContextValidate validates this address based on context it is used
func (*Address) MarshalBinary ¶
MarshalBinary interface implementation
func (*Address) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type BaseResponse ¶
type BaseResponse struct { // error Error string `json:"error"` // success Success bool `json:"success"` }
BaseResponse base response
swagger:model BaseResponse
func (*BaseResponse) ContextValidate ¶
ContextValidate validates this base response based on context it is used
func (*BaseResponse) MarshalBinary ¶
func (m *BaseResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*BaseResponse) UnmarshalBinary ¶
func (m *BaseResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Complaint ¶
type Complaint struct { // complaint Complaint string `json:"complaint,omitempty"` // email // Format: email Email strfmt.Email `json:"email,omitempty"` // name Name string `json:"name,omitempty"` // worker name WorkerName string `json:"worker_name,omitempty"` }
Complaint complaint
swagger:model Complaint
func (*Complaint) ContextValidate ¶
ContextValidate validates this complaint based on context it is used
func (*Complaint) MarshalBinary ¶
MarshalBinary interface implementation
func (*Complaint) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type PasswordChangeRequest ¶
type PasswordChangeRequest struct { // code // Required: true Code *string `json:"code"` // email // Required: true // Format: email Email *strfmt.Email `json:"email"` // new password // Required: true // Min Length: 8 NewPassword *string `json:"new_password"` }
PasswordChangeRequest password change request
swagger:model PasswordChangeRequest
func (*PasswordChangeRequest) ContextValidate ¶
ContextValidate validates this password change request based on context it is used
func (*PasswordChangeRequest) MarshalBinary ¶
func (m *PasswordChangeRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PasswordChangeRequest) UnmarshalBinary ¶
func (m *PasswordChangeRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Pharmacy ¶
type Pharmacy struct { // address Address *Address `json:"address,omitempty"` // id ID int64 `json:"id"` // name Name string `json:"name"` }
Pharmacy pharmacy
swagger:model Pharmacy
func (*Pharmacy) ContextValidate ¶
ContextValidate validate this pharmacy based on the context it is used
func (*Pharmacy) MarshalBinary ¶
MarshalBinary interface implementation
func (*Pharmacy) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type PharmacyBlockRequest ¶
type PharmacyBlockRequest struct { // pharmacy name PharmacyName string `json:"pharmacy_name"` }
PharmacyBlockRequest pharmacy block request
swagger:model PharmacyBlockRequest
func (*PharmacyBlockRequest) ContextValidate ¶
ContextValidate validates this pharmacy block request based on context it is used
func (*PharmacyBlockRequest) MarshalBinary ¶
func (m *PharmacyBlockRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PharmacyBlockRequest) UnmarshalBinary ¶
func (m *PharmacyBlockRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PharmacyComplaintsResponse ¶
type PharmacyComplaintsResponse []*Complaint
PharmacyComplaintsResponse pharmacy complaints response
swagger:model PharmacyComplaintsResponse
func (PharmacyComplaintsResponse) ContextValidate ¶
func (m PharmacyComplaintsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this pharmacy complaints response based on the context it is used
type PharmacyGetAllProductsResponse ¶
type PharmacyGetAllProductsResponse struct { // products Products []*Products `json:"products"` }
PharmacyGetAllProductsResponse pharmacy get all products response
swagger:model PharmacyGetAllProductsResponse
func (*PharmacyGetAllProductsResponse) ContextValidate ¶
func (m *PharmacyGetAllProductsResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this pharmacy get all products response based on the context it is used
func (*PharmacyGetAllProductsResponse) MarshalBinary ¶
func (m *PharmacyGetAllProductsResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PharmacyGetAllProductsResponse) UnmarshalBinary ¶
func (m *PharmacyGetAllProductsResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PharmacyGetAllResponse ¶
type PharmacyGetAllResponse struct { // pharmacys Pharmacys []*Pharmacy `json:"pharmacys"` }
PharmacyGetAllResponse pharmacy get all response
swagger:model PharmacyGetAllResponse
func (*PharmacyGetAllResponse) ContextValidate ¶
func (m *PharmacyGetAllResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this pharmacy get all response based on the context it is used
func (*PharmacyGetAllResponse) MarshalBinary ¶
func (m *PharmacyGetAllResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PharmacyGetAllResponse) UnmarshalBinary ¶
func (m *PharmacyGetAllResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PharmacyUsersResponse ¶
type PharmacyUsersResponse []*User
PharmacyUsersResponse pharmacy users response
swagger:model PharmacyUsersResponse
func (PharmacyUsersResponse) ContextValidate ¶
ContextValidate validate this pharmacy users response based on the context it is used
type Products ¶
type Products struct { // count Count int64 `json:"count,omitempty"` // name Name string `json:"name,omitempty"` // need recepi NeedRecepi bool `json:"need_recepi,omitempty"` // position Position string `json:"position,omitempty"` // price Price int64 `json:"price,omitempty"` }
Products products
swagger:model Products
func (*Products) ContextValidate ¶
ContextValidate validates this products based on context it is used
func (*Products) MarshalBinary ¶
MarshalBinary interface implementation
func (*Products) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type PurchaseAddRequest ¶
type PurchaseAddRequest struct { // position Position string `json:"position,omitempty"` // product name ProductName string `json:"product_name,omitempty"` // purchase uuid PurchaseUUID string `json:"purchase_uuid,omitempty"` }
PurchaseAddRequest purchase add request
swagger:model PurchaseAddRequest
func (*PurchaseAddRequest) ContextValidate ¶
ContextValidate validates this purchase add request based on context it is used
func (*PurchaseAddRequest) MarshalBinary ¶
func (m *PurchaseAddRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PurchaseAddRequest) UnmarshalBinary ¶
func (m *PurchaseAddRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PurchaseConfirmRequest ¶
type PurchaseConfirmRequest struct { // is social card IsSocialCard bool `json:"is_social_card,omitempty"` // purchase uuid // Format: uuid PurchaseUUID strfmt.UUID `json:"purchase_uuid,omitempty"` }
PurchaseConfirmRequest purchase confirm request
swagger:model PurchaseConfirmRequest
func (*PurchaseConfirmRequest) ContextValidate ¶
func (m *PurchaseConfirmRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this purchase confirm request based on context it is used
func (*PurchaseConfirmRequest) MarshalBinary ¶
func (m *PurchaseConfirmRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PurchaseConfirmRequest) UnmarshalBinary ¶
func (m *PurchaseConfirmRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PurchaseShowResponse ¶
type PurchaseShowResponse struct { // items Items []*PurchaseShowResponseItemsItems0 `json:"items"` // price Price int64 `json:"price,omitempty"` }
PurchaseShowResponse purchase show response
swagger:model PurchaseShowResponse
func (*PurchaseShowResponse) ContextValidate ¶
ContextValidate validate this purchase show response based on the context it is used
func (*PurchaseShowResponse) MarshalBinary ¶
func (m *PurchaseShowResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PurchaseShowResponse) UnmarshalBinary ¶
func (m *PurchaseShowResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PurchaseShowResponseItemsItems0 ¶
type PurchaseShowResponseItemsItems0 struct { // count Count int64 `json:"count,omitempty"` // name Name string `json:"name,omitempty"` // price Price int64 `json:"price,omitempty"` }
PurchaseShowResponseItemsItems0 purchase show response items items0
swagger:model PurchaseShowResponseItemsItems0
func (*PurchaseShowResponseItemsItems0) ContextValidate ¶
func (m *PurchaseShowResponseItemsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this purchase show response items items0 based on context it is used
func (*PurchaseShowResponseItemsItems0) MarshalBinary ¶
func (m *PurchaseShowResponseItemsItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PurchaseShowResponseItemsItems0) UnmarshalBinary ¶
func (m *PurchaseShowResponseItemsItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RegisterRequest ¶
type RegisterRequest struct { // default pharmacy id DefaultPharmacyID int64 `json:"default_pharmacy_id,omitempty"` // email // Required: true // Format: email Email *strfmt.Email `json:"email"` // name Name string `json:"name,omitempty"` // password // Required: true // Min Length: 8 Password *string `json:"password"` // role // Required: true Role *string `json:"role"` // surname Surname string `json:"surname,omitempty"` }
RegisterRequest register request
swagger:model RegisterRequest
func (*RegisterRequest) ContextValidate ¶
ContextValidate validates this register request based on context it is used
func (*RegisterRequest) MarshalBinary ¶
func (m *RegisterRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RegisterRequest) UnmarshalBinary ¶
func (m *RegisterRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RequestPasswordChangeRequest ¶
type RequestPasswordChangeRequest struct { // email // Required: true // Format: email Email *strfmt.Email `json:"email"` }
RequestPasswordChangeRequest request password change request
swagger:model RequestPasswordChangeRequest
func (*RequestPasswordChangeRequest) ContextValidate ¶
func (m *RequestPasswordChangeRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this request password change request based on context it is used
func (*RequestPasswordChangeRequest) MarshalBinary ¶
func (m *RequestPasswordChangeRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RequestPasswordChangeRequest) UnmarshalBinary ¶
func (m *RequestPasswordChangeRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type User ¶
type User struct { // default pharmacy id DefaultPharmacyID int64 `json:"default_pharmacy_id"` // email // Format: email Email strfmt.Email `json:"email"` // id ID int64 `json:"id"` // name Name string `json:"name"` // role // Enum: [admin apothecary] Role string `json:"role"` // surname Surname string `json:"surname"` }
User user
swagger:model User
func (*User) ContextValidate ¶
ContextValidate validates this user based on context it is used
func (*User) MarshalBinary ¶
MarshalBinary interface implementation
func (*User) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type UserAllResponse ¶
type UserAllResponse []*User
UserAllResponse user all response
swagger:model UserAllResponse
func (UserAllResponse) ContextValidate ¶
ContextValidate validate this user all response based on the context it is used
type UserBlockRequest ¶
type UserBlockRequest struct { // email Email string `json:"email"` }
UserBlockRequest user block request
swagger:model UserBlockRequest
func (*UserBlockRequest) ContextValidate ¶
ContextValidate validates this user block request based on context it is used
func (*UserBlockRequest) MarshalBinary ¶
func (m *UserBlockRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UserBlockRequest) UnmarshalBinary ¶
func (m *UserBlockRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UserLoginRequest ¶
type UserLoginRequest struct { // email // Required: true // Format: email Email *strfmt.Email `json:"email"` // password // Required: true // Min Length: 8 Password *string `json:"password"` }
UserLoginRequest user login request
swagger:model UserLoginRequest
func (*UserLoginRequest) ContextValidate ¶
ContextValidate validates this user login request based on context it is used
func (*UserLoginRequest) MarshalBinary ¶
func (m *UserLoginRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UserLoginRequest) UnmarshalBinary ¶
func (m *UserLoginRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UserLoginResponse ¶
type UserLoginResponse struct { // refresh token RefreshToken string `json:"refresh_token,omitempty"` // token Token string `json:"token,omitempty"` }
UserLoginResponse user login response
swagger:model UserLoginResponse
func (*UserLoginResponse) ContextValidate ¶
ContextValidate validates this user login response based on context it is used
func (*UserLoginResponse) MarshalBinary ¶
func (m *UserLoginResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UserLoginResponse) UnmarshalBinary ¶
func (m *UserLoginResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UserRefreshRequest ¶
type UserRefreshRequest struct { // token // Required: true Token *string `json:"token"` }
UserRefreshRequest user refresh request
swagger:model UserRefreshRequest
func (*UserRefreshRequest) ContextValidate ¶
ContextValidate validates this user refresh request based on context it is used
func (*UserRefreshRequest) MarshalBinary ¶
func (m *UserRefreshRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UserRefreshRequest) UnmarshalBinary ¶
func (m *UserRefreshRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UserResponse ¶
type UserResponse struct { // token Token string `json:"token,omitempty"` }
UserResponse user response
swagger:model UserResponse
func (*UserResponse) ContextValidate ¶
ContextValidate validates this user response based on context it is used
func (*UserResponse) MarshalBinary ¶
func (m *UserResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UserResponse) UnmarshalBinary ¶
func (m *UserResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
Source Files ¶
- address.go
- base_response.go
- complaint.go
- password_change_request.go
- pharmacy.go
- pharmacy_block_request.go
- pharmacy_complaints_response.go
- pharmacy_get_all_products_response.go
- pharmacy_get_all_response.go
- pharmacy_users_response.go
- products.go
- purchase_add_request.go
- purchase_confirm_request.go
- purchase_show_response.go
- register_request.go
- request_password_change_request.go
- user.go
- user_all_response.go
- user_block_request.go
- user_login_request.go
- user_login_response.go
- user_refresh_request.go
- user_response.go