common

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PageR

type PageR struct {
	R
	Total int64 `json:"total"`
}

func PageEmpty

func PageEmpty() PageR

func PageFail

func PageFail(msg string) PageR

func PageSuccess

func PageSuccess(data interface{}, total int64) PageR

type R

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

func Fail

func Fail(msg string) R

func FailCode

func FailCode(code int, msg string) R

func Success

func Success(data interface{}) R

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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