common

package
v0.0.0-...-8d187f3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Response

func Response(c *gin.Context, err error, data interface{})

Types

type LcResponse

type LcResponse struct {
	OptStatus    string      `json:"OPT_STATUS"`
	Description  string      `json:"DESCRIPTION"`
	ErrorMessage string      `json:"ERROR_MESSAGE"`
	Data         interface{} `json:"DATA"`
}

func NewReponse

func NewReponse(optStatus string, description string, data interface{}, errorMessage string) *LcResponse

type Message

type Message struct {
	Message string `json:"message,omitempty"`
}

Jump to

Keyboard shortcuts

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