Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Router ¶
func Router(app *fiber.App, path string, service interface{}) *goddMicroService.MicroService
Router Func
Types ¶
type ResponseDataList ¶
type ResponseDataList struct { Success bool `json:"success" swaggertype:"boolean"` Message string `json:"message" swaggertype:"string"` Data interface{} `json:"data,omitempty" swaggertype:"object"` ResponsePagination *ResponsePagination `json:"pagination,omitempty" swaggertype:"object"` ResponseError *ResponseError `json:"error,omitempty" swaggertype:"object"` }
ResponseDataList for Send Response Message to Encode Response
type ResponseError ¶
type ResponseError struct { Message string `json:"message" swaggertype:"string"` Validate *map[string]ResponseErrorValidate `json:"validate,omitempty" swaggertype:"object"` }
ResponseError Struct
type ResponseErrorValidate ¶
type ResponseErrorValidate struct { Reason string `json:"reason"` Message string `json:"message"` Param string `json:"param,omitempty"` }
ResponseErrorValidate struct
type ResponsePagination ¶
type ResponsePagination struct { Page int `json:"page" swaggertype:"integer"` PageSize int `json:"page_size" swaggertype:"integer"` PageCount int `json:"page_count" swaggertype:"integer"` ItemCount int `json:"item_count" swaggertype:"integer"` TotalCount int `json:"total_count" swaggertype:"integer"` }
ResponsePagination Struct
Click to show internal directories.
Click to hide internal directories.