rest

package
v0.0.0-...-74225ed Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPEmptyResp

type HTTPEmptyResp struct {
	Meta entity.Meta `json:"metadata"`
}

type HTTPErrResp

type HTTPErrResp struct {
	Meta entity.Meta `json:"metadata"`
}

type REST

type REST interface{}

REST rest interface

func Init

func Init(router *mux.Router, uc *usecase.Usecase) REST

type ResponseAnswerForQuestion

type ResponseAnswerForQuestion struct {
	Meta entity.Meta   `json:"metadata"`
	Data entity.Answer `json:"data"`
}

type ResponseCreateAccount

type ResponseCreateAccount struct {
	Meta entity.Meta            `json:"metadata"`
	Data entity.MerchantAccount `json:"data"`
}

type ResponseCreateMember

type ResponseCreateMember struct {
	Meta entity.Meta           `json:"metadata"`
	Data entity.MerchantMember `json:"data"`
}

type ResponseGetAccounts

type ResponseGetAccounts struct {
	Meta       entity.Meta              `json:"metadata"`
	Data       []entity.MerchantAccount `json:"data"`
	Pagination entity.Pagination        `json:"pagination"`
}

type ResponseGetMembers

type ResponseGetMembers struct {
	Meta       entity.Meta                 `json:"metadata"`
	Data       []entity.MerchantMemberData `json:"data"`
	Pagination entity.Pagination           `json:"pagination"`
}

type ResponseGetPredefineQuestionForAuthentication

type ResponseGetPredefineQuestionForAuthentication struct {
	Meta entity.Meta                        `json:"metadata"`
	Data []entity.QuestionForAuthentication `json:"data"`
}

type ResponseGetPredefineQuestionForBusiness

type ResponseGetPredefineQuestionForBusiness struct {
	Meta entity.Meta       `json:"metadata"`
	Data []entity.Question `json:"data"`
}

type ResponseSuccessNonPagination

type ResponseSuccessNonPagination struct {
	Meta entity.Meta `json:"metadata"`
	Data interface{} `json:"data"`
}

type ResponseSuccessPagination

type ResponseSuccessPagination struct {
	Meta       entity.Meta       `json:"metadata"`
	Data       interface{}       `json:"data"`
	Pagination entity.Pagination `json:"pagination"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL