base

package
v0.0.0-...-edd4e79 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CodeClientNotExists = 1000 + iota
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Page

type Page struct {
	Total    int `json:"total"`
	Page     int `json:"page"`
	PageSize int `json:"page_size"`
}

type Response

type Response struct {
	Code    int    `json:"code"`
	Msg     string `json:"msg,omitempty"`
	Success bool   `json:"success"`
}

func WithCode

func WithCode(code int) *Response

func WithError

func WithError(err error) *Response

func WithSuccess

func WithSuccess() *Response

Jump to

Keyboard shortcuts

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