fonchain-fiee/pkg/serializer/common.go

28 lines
783 B
Go
Raw Normal View History

2025-05-26 08:31:38 +00:00
package serializer
2025-06-12 09:07:49 +00:00
import "fonchain-fiee/pkg/e"
2025-05-26 08:31:38 +00:00
// Response 基础序列化器
type Response struct {
2025-06-12 09:07:49 +00:00
Status int `json:"status"`
Data interface{} `json:"data"`
Msg string `json:"msg"`
Code e.ErrorCodeType `json:"code"`
Error error `json:"error"`
Err string `json:"err"`
Keys []string `json:"keys"`
Mark string `json:"mark,omitempty"`
Page *PageInfo `json:"page,omitempty"`
Positions interface{} `json:"positions"`
2025-05-26 08:31:38 +00:00
}
type PageInfo struct {
Page int32 `json:"page" query:"page"`
PageSize int32 `json:"pageSize" query:"pageSize"`
Total int32 `json:"total"`
}
type UseFaceClockIn struct {
Result int `json:"Result"`
Msg string `json:"Msg"`
}