Files

15 lines
474 B
Go

package v1
import "github.com/gogf/gf/v2/frame/g"
type DiagnosticReq struct {
g.Meta `path:"/worker/diagnostic" method:"post" tags:"Monitor" summary:"Publish Worker diagnostic message"`
Message string `json:"message" v:"required|length:1,200#message is required|message length must be between 1 and 200 characters" dc:"Diagnostic message"`
}
type DiagnosticRes struct {
TraceID string `json:"traceId"`
Queue string `json:"queue"`
SentAt int64 `json:"sentAt"`
}