Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrorCodeAdapterHTTPWallet = domainerrors.ErrorCodeAdapter + domainerrors.ErrorCodeAdapterHTTP + domainerrors.ErrorCodeAdapterWallet + iota ErrorCodeExecuteUsecase ErrorCodeBindJSON ErrorCodeCopyToInput ErrorCodeBindQuery ErrorCodeValidateInput ErrorCodeBindURI )
Variables ¶
This section is empty.
Functions ¶
func NewWalletRoutes ¶
func NewWalletRoutes(handler *gin.RouterGroup, u application_wallet.IService, l pwlogger.Interface)
Types ¶
type BalancesResponse ¶
type CreatedRequest ¶
type CreatedRequest struct { Name string `json:"name" binding:"required" example:"admin"` Description string `json:"description" binding:"required" example:"this is for admin wallet"` Chain entity.Chain `json:"chain" binding:"required" example:"Polygon"` UserID string `json:"userId" binding:"required" example:"abcdef2nopabcdef2nop"` }
type DeletedRequest ¶
type DeletedRequest struct {
ID string `json:"id" uri:"id" binding:"required"`
}
type DetailGotRequest ¶
type DetailGotRequest struct {
ID string `json:"id" uri:"id" binding:"required"`
}
type ErrorEvent ¶
type ErrorEvent struct {
// contains filtered or unexported fields
}
func (ErrorEvent) MarshalZerologObject ¶
func (a ErrorEvent) MarshalZerologObject(e *zerolog.Event)
type ListGotRequest ¶
type Response ¶
type Response struct { ID string `json:"id"` Name string `json:"name"` Description string `json:"description"` Chain entity.Chain `json:"chain" binding:"required" example:"Polygon"` UserID string `json:"userId" binding:"required" example:"abcd-efgh-ijkl-mnop"` WalletBalances []BalancesResponse `json:"walletBalances"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` DeletedAt time.Time `json:"deletedAt"` }
func NewResponse ¶
func NewResponse(model *application_wallet.Output) Response
type ResponseList ¶
type ResponseList struct { Offset int64 `json:"offset"` Limit int64 `json:"limit"` Total int64 `json:"total"` Items []Response `json:"items"` }
func NewResponseList ¶
func NewResponseList(modelList *application_wallet.OutputList) ResponseList
type UpdatedRequest ¶
type UpdatedRequest struct { Name string `json:"name" binding:"required" example:"admin"` Description string `json:"description" binding:"required" example:"this is for admin wallet"` Chain entity.Chain `json:"chain" binding:"required" example:"Polygon"` UserID string `json:"userId" binding:"required" example:"abcd-efgh-ijkl-mnop"` }
Click to show internal directories.
Click to hide internal directories.