controller

package
v0.0.0-...-90ff682 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EchoJsonList

func EchoJsonList(c *gin.Context, res *ResList, err *error)

func EchoJsonMap

func EchoJsonMap(c *gin.Context, res *ResMap, err *error)

func HospitalAdd

func HospitalAdd(c *gin.Context)

func HospitalDelete

func HospitalDelete(c *gin.Context)

func HospitalList

func HospitalList(c *gin.Context)

Types

type Res

type Res struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type ResList

type ResList struct {
	Res
	Data []interface{} `json:"data"`
}

func BaseListData

func BaseListData(c *gin.Context) (*ResList, *error)

type ResMap

type ResMap struct {
	Res
	Data map[string]interface{} `json:"data"`
}

func BaseMapData

func BaseMapData(c *gin.Context) (*ResMap, *error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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