api

package
v0.0.0-...-179e57f Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

* @Description: * @Author: gphper * @Date: 2021-07-15 21:51:07

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseController

type BaseController struct {
}

func (BaseController) Error

func (Base BaseController) Error(c *gin.Context, err error)

func (BaseController) FormBind

func (Base BaseController) FormBind(c *gin.Context, obj interface{}) error

func (BaseController) Success

func (Base BaseController) Success(c *gin.Context, obj interface{})

type DefaultResponse

type DefaultResponse struct {
	Code uint   `json:"code"` //code 为1表示正常 0表示业务请求错误
	Msg  string `json:"msg"`  //错误提示信息
}

type SuccessResponse

type SuccessResponse struct {
	DefaultResponse
	Data interface{} `json:"data" swaggertype:"object"` //接口返回的业务数据
}

Directories

Path Synopsis
* @Description: * @Author: gphper * @Date: 2021-04-18 19:07:39
* @Description: * @Author: gphper * @Date: 2021-04-18 19:07:39

Jump to

Keyboard shortcuts

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