vo

package
v0.0.0-...-adf2ced Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(c *gin.Context, code int, msg string)

func Success

func Success(c *gin.Context, data interface{})

成功响应

Types

type PageVO

type PageVO struct {
	Total int64 `json:"total"`
	List  any   `json:"list"`
}

type Response

type Response struct {
	Code    int         `json:"code"`
	Message string      `json:"msg"`
	Data    interface{} `json:"data"`
}

响应结果

Jump to

Keyboard shortcuts

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