2024-12-11 18:53:32 +08:00

22 lines
724 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package common_structure
import "time"
type LogInfoType = string
const (
LogInfoTypeOrder LogInfoType = "order"
LogInfoTypeProduct LogInfoType = "product"
)
type LogInfo struct {
InfoType LogInfoType `json:"info_type"` // 类型
ID int `json:"id"` // ID订单ID商品ID商品SKUID之类的id
Operator interface{} `json:"operator"` // 操作人
Title string `json:"title"` // 标题,做什么事情
Param interface{} `json:"param"` // 参数,请求参数,函数、方法就是参数
Result interface{} `json:"result"` // 结果,返回值
Err error `json:"err"` // 错误
At time.Time `json:"at"` // 记录时间
}