response

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

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

Go to latest
Published: Feb 18, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package response - Admin Response 처리 기능 제공 패키지

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errorf

func Errorf(rw http.ResponseWriter, req *http.Request, code int, err error)

Errorf - 오류 발생 시 반환 처리

func Write

func Write(rw http.ResponseWriter, req *http.Request, data interface{})

Write - 정상 처리 시 반환 처리

Types

type ReturnData

type ReturnData struct {
	Error   bool        `json:"error"`
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
}

ReturnData - Response 데이터 구조

Jump to

Keyboard shortcuts

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