This commit is contained in:
oneao committed 2025-08-14 17:28:32 +08:00
1 parent d1b1aafc57
commit 0f1604c709
58 files changed
+15476 -25

No files matched your search

@@ -17,7 +17,7 @@ type Result struct {
Code string `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
Error *ErrorInfo `json:"error,omitempty"`
Error ErrorInfo `json:"error,omitempty"`
}
const (
@@ -92,7 +92,7 @@ func (b *Builder) Data(data interface{}) *Builder {
}
// ErrorInfo 设置错误信息
func (b *Builder) ErrorInfo(err *ErrorInfo) *Builder {
func (b *Builder) ErrorInfo(err ErrorInfo) *Builder {
b.result.Error = err
return b
}