This commit is contained in:
oneao committed 2025-12-03 17:31:28 +08:00
1 parent e81f605999
commit cf9b01e633
26 files changed
+860 -935

No files matched your search

@@ -11,7 +11,7 @@ import (
type Result struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
Data interface{} `json:"data"`
TrackId string `json:"trackId,omitempty"`
}
@@ -76,9 +76,9 @@ func (b *Builder) Data(data interface{}) *Builder {
// Send 发送响应
func (b *Builder) Send() {
if b.result.Data == nil {
b.result.Data = ""
}
//if b.result.Data == nil {
// b.result.Data = ""
//}
reqID := requestid.Get(b.c)
b.result.TrackId = reqID