http_service

package
v0.0.0-...-5465ba9 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Router *gin.Engine

Functions

func APIOutPut

func APIOutPut(c *gin.Context, code int64, count int, data interface{}, msg string)

APIOutPut 统一接口输出方法

func CreatedTheme

func CreatedTheme(c *gin.Context)

func DelTheme

func DelTheme(c *gin.Context)

func GetDoc

func GetDoc(c *gin.Context)

func GetDocTerm

func GetDocTerm(c *gin.Context)

func GetIP

func GetIP(r *http.Request) (ip string)

func GetTerm

func GetTerm(c *gin.Context)

func GetTheme

func GetTheme(c *gin.Context)

func GetThemeList

func GetThemeList(c *gin.Context)

func HttpMiddleware

func HttpMiddleware(id string) gin.HandlerFunc

HttpMiddleware http中间件

func Index

func Index(c *gin.Context)

func Routers

func Routers(id string) *gin.Engine

func RunHttpService

func RunHttpService()
func Search(c *gin.Context)

func SearchOutPut

func SearchOutPut(c *gin.Context, code int64, count int, data interface{}, msg string)

func SetDoc

func SetDoc(c *gin.Context)

func TermData

func TermData(c *gin.Context)

func UpdateTheme

func UpdateTheme(c *gin.Context)

func V1

func V1(id string)

Types

type ResponseJson

type ResponseJson struct {
	Code int64 `json:"code"`
	//Page      int64       `json:"page"`
	Count     int         `json:"count"`
	Msg       string      `json:"msg"`
	Body      interface{} `json:"body"`
	Take      int64       `json:"took"`
	TakeStr   string      `json:"took_str"`
	TimeStamp int64       `json:"timeStamp"`
}

ResponseJson 统一接口输出

Jump to

Keyboard shortcuts

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