mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-03 06:40:26 +08:00
33 lines
1.0 KiB
Go
33 lines
1.0 KiB
Go
package models
|
||
|
||
// 操作日志
|
||
type Log struct {
|
||
Id uint32 `field:"id"` // ID
|
||
Level string `field:"level"` // 级别
|
||
Description string `field:"description"` // 描述
|
||
CreatedAt uint32 `field:"createdAt"` // 创建时间
|
||
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
|
||
}
|
||
|
||
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
|
||
}
|
||
|
||
func NewLogOperator() *LogOperator {
|
||
return &LogOperator{}
|
||
}
|