package
Version:
v1.2.1
Opens a new window with list of versions in this module.
Published: Jul 1, 2023
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
author gmfan
date 2023/6/27
author gmfan
date 2023/6/27
type FailResp struct {
Code uint32 `json:"code"`
Msg string `json:"msg"`
}
type Log struct {
Start int64 `json:"start"`
Info any `json:"info"`
IsErr bool `json:"is_err"`
End int64 `json:"end"`
}
type Page struct {
Num int64 `json:"num"`
Size int64 `json:"size"`
Sorts []Sort `json:"sorts"`
}
Page 分页模型,推荐 Num 从第一页开始
type PageResult struct {
}
type Sort struct {
Condition string `json:"condition"`
Order string `json:"order"`
}
type SuccessResp struct {
Code uint32 `json:"code"`
Msg string `json:"msg"`
Data any `json:"data"`
}
type TraceLog struct {
ID string `json:"id"`
Logs []*Log `json:"logs"`
}
TraceLog 链路追踪日志模型
Source Files
¶
Click to show internal directories.
Click to hide internal directories.