调整日志输出方式,更新数据库日志存储结构;首页查询统计数据接口实现
This commit is contained in:
22
web/models/logs_user_bandwidth.gen.go
Normal file
22
web/models/logs_user_bandwidth.gen.go
Normal file
@@ -0,0 +1,22 @@
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
// Code generated by gorm.io/gen. DO NOT EDIT.
|
||||
|
||||
package models
|
||||
|
||||
import "platform/web/globals/orm"
|
||||
|
||||
const TableNameLogsUserBandwidth = "logs_user_bandwidth"
|
||||
|
||||
// LogsUserBandwidth mapped from table <logs_user_bandwidth>
|
||||
type LogsUserBandwidth struct {
|
||||
ID int32 `gorm:"column:id;type:integer;primaryKey;autoIncrement:true;comment:日志ID" json:"id"` // 日志ID
|
||||
UserID int32 `gorm:"column:user_id;type:integer;not null;comment:用户ID" json:"user_id"` // 用户ID
|
||||
Bandwidth int32 `gorm:"column:bandwidth;type:integer;not null;comment:带宽使用量(KB)" json:"bandwidth"` // 带宽使用量(KB)
|
||||
Time orm.LocalDateTime `gorm:"column:time;type:timestamp without time zone;not null;comment:记录时间" json:"time"` // 记录时间
|
||||
}
|
||||
|
||||
// TableName LogsUserBandwidth's table name
|
||||
func (*LogsUserBandwidth) TableName() string {
|
||||
return TableNameLogsUserBandwidth
|
||||
}
|
||||
Reference in New Issue
Block a user