package
Version:
v0.0.0-...-296515a
Opens a new window with list of versions in this module.
Published: May 7, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func ErrorCtx(ctx iris.Context, code int, data any, msg string)
ErrorCtx 响应失败
func OkCtx(ctx iris.Context, data any)
OkCtx 响应成功
type Resp struct {
Code int `json:"code"`
Data any `json:"data"`
Msg string `json:"msg"`
}
Resp 响应体结构
Source Files
¶
Click to show internal directories.
Click to hide internal directories.