service

package
v0.0.0-...-a8c716a Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

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

Response 定义响应 nolint

func ResponseError

func ResponseError(msg string, data any) *Response

func ResponseOK

func ResponseOK(msg string, data any) *Response

func (*Response) JSON

func (resp *Response) JSON() gin.H

type ResponseList

type ResponseList struct {
	Total int `json:"total"`
	List  any `json:"list"`
}

nolint

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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