Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListDataResponse ¶
func OneDataResponse ¶
func OneDataResponse(c echo.Context, data interface{}) error
func OperateSuccess ¶
func OperateSuccess(c echo.Context) error
Types ¶
type DataResponse ¶
type ErrorResponse ¶ added in v1.0.2
type ErrorResponse struct {
Code int `json:"code"` // 业务错误码
Message string `json:"message"` // 错误消息
RequestID string `json:"request_id"` // 请求ID(用于追踪)
Timestamp int64 `json:"timestamp"` // 错误发生时间戳
}
ErrorResponse 统一错误响应结构
type ListResponse ¶
Click to show internal directories.
Click to hide internal directories.