package
Version:
v0.0.0-...-a203ad5
Opens a new window with list of versions in this module.
Published: Oct 31, 2024
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func SuccessResponse(c *gin.Context, status int, payload interface{})
type Error struct {
ErrorCode string `json:"errorCode"`
Message string `json:"message"`
Details interface{} `json:"details"`
RequestId string `json:"request_id"`
Timestamp time.Time `json:"timestamp"`
}
type Response struct {
Code int `json:"code"`
Message string `json:"message" example:"Success"`
Data interface{} `json:"data" example:"JSON information" swaggerignore:"true"`
}
Response
@Description response information.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.