调整日志输出方式,更新数据库日志存储结构;首页查询统计数据接口实现
This commit is contained in:
27
web/models/logs_user_usage.gen.go
Normal file
27
web/models/logs_user_usage.gen.go
Normal file
@@ -0,0 +1,27 @@
|
||||
// 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 TableNameLogsUserUsage = "logs_user_usage"
|
||||
|
||||
// LogsUserUsage mapped from table <logs_user_usage>
|
||||
type LogsUserUsage 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
|
||||
ResourceID int32 `gorm:"column:resource_id;type:integer;not null;comment:套餐ID" json:"resource_id"` // 套餐ID
|
||||
Count_ int32 `gorm:"column:count;type:integer;not null;comment:数量" json:"count"` // 数量
|
||||
Prov *string `gorm:"column:prov;type:character varying(255);comment:省份" json:"prov"` // 省份
|
||||
City *string `gorm:"column:city;type:character varying(255);comment:城市" json:"city"` // 城市
|
||||
Isp *string `gorm:"column:isp;type:character varying(255);comment:运营商" json:"isp"` // 运营商
|
||||
IP string `gorm:"column:ip;type:character varying(45);not null;comment:IP地址" json:"ip"` // IP地址
|
||||
Time orm.LocalDateTime `gorm:"column:time;type:timestamp without time zone;not null;comment:提取时间" json:"time"` // 提取时间
|
||||
}
|
||||
|
||||
// TableName LogsUserUsage's table name
|
||||
func (*LogsUserUsage) TableName() string {
|
||||
return TableNameLogsUserUsage
|
||||
}
|
||||
Reference in New Issue
Block a user