调整日志操作人类型命名
This commit is contained in:
parent
3b335785a4
commit
a48afa14b7
@ -30,16 +30,16 @@ type LogInfo struct {
|
|||||||
Title string `json:"title"` // 必填,标题,做什么事情
|
Title string `json:"title"` // 必填,标题,做什么事情
|
||||||
Param interface{} `json:"param,omitempty"` // 参数,请求参数,传指针
|
Param interface{} `json:"param,omitempty"` // 参数,请求参数,传指针
|
||||||
Result interface{} `json:"result,omitempty"` // 结果,返回值,传指针,如果是报错,传err
|
Result interface{} `json:"result,omitempty"` // 结果,返回值,传指针,如果是报错,传err
|
||||||
ErrStr string `json:"err_str,omitempty"` // 错误信息
|
ErrStr string `json:"err_str,omitempty"` // 错误信息,不用传入,自动记录
|
||||||
At string `json:"at"` // 记录时间,不用传入,自动记录
|
At string `json:"at"` // 记录时间,不用传入,自动记录
|
||||||
}
|
}
|
||||||
|
|
||||||
type OperatorType = string
|
type OperatorType = string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
AdminOperatorType OperatorType = "admin" // 管理员
|
OperatorTypeAdmin OperatorType = "admin" // 管理员
|
||||||
MerchantOperatorType OperatorType = "merchant" // 商家
|
OperatorTypeMerchant OperatorType = "merchant" // 商家
|
||||||
UserOperatorType OperatorType = "user" // 用户
|
OperatorTypeUser OperatorType = "user" // 用户
|
||||||
)
|
)
|
||||||
|
|
||||||
type Operator struct {
|
type Operator struct {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user