2020-07-22 22:17:53 +08:00
|
|
|
|
package models
|
|
|
|
|
|
|
|
|
|
|
|
// 操作日志
|
|
|
|
|
|
type Log struct {
|
|
|
|
|
|
Id uint32 `field:"id"` // ID
|
|
|
|
|
|
Level string `field:"level"` // 级别
|
|
|
|
|
|
Description string `field:"description"` // 描述
|
2020-09-23 10:12:57 +08:00
|
|
|
|
CreatedAt uint64 `field:"createdAt"` // 创建时间
|
2020-07-22 22:17:53 +08:00
|
|
|
|
Action string `field:"action"` // 动作
|
|
|
|
|
|
UserId uint32 `field:"userId"` // 用户ID
|
|
|
|
|
|
AdminId uint32 `field:"adminId"` // 管理员ID
|
|
|
|
|
|
ProviderId uint32 `field:"providerId"` // 供应商ID
|
|
|
|
|
|
Ip string `field:"ip"` // IP地址
|
|
|
|
|
|
Type string `field:"type"` // 类型:admin, user
|
2020-11-20 16:36:07 +08:00
|
|
|
|
Day string `field:"day"` // 日期
|
2020-12-11 21:39:10 +08:00
|
|
|
|
BillId uint32 `field:"billId"` // 账单ID
|
2020-07-22 22:17:53 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type LogOperator struct {
|
|
|
|
|
|
Id interface{} // ID
|
|
|
|
|
|
Level interface{} // 级别
|
|
|
|
|
|
Description interface{} // 描述
|
|
|
|
|
|
CreatedAt interface{} // 创建时间
|
|
|
|
|
|
Action interface{} // 动作
|
|
|
|
|
|
UserId interface{} // 用户ID
|
|
|
|
|
|
AdminId interface{} // 管理员ID
|
|
|
|
|
|
ProviderId interface{} // 供应商ID
|
|
|
|
|
|
Ip interface{} // IP地址
|
|
|
|
|
|
Type interface{} // 类型:admin, user
|
2020-11-20 16:36:07 +08:00
|
|
|
|
Day interface{} // 日期
|
2020-12-11 21:39:10 +08:00
|
|
|
|
BillId interface{} // 账单ID
|
2020-07-22 22:17:53 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func NewLogOperator() *LogOperator {
|
|
|
|
|
|
return &LogOperator{}
|
|
|
|
|
|
}
|