新增获取终端数量统计,任务统计
This commit is contained in:
30
internal/model/do/store_client_sessions.go
Normal file
30
internal/model/do/store_client_sessions.go
Normal file
@ -0,0 +1,30 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package do
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// StoreClientSessions is the golang structure of table store_client_sessions for DAO operations like Where/Data.
|
||||
type StoreClientSessions struct {
|
||||
g.Meta `orm:"table:store_client_sessions, do:true"`
|
||||
Id interface{} // 记录ID
|
||||
StoreId interface{} // 所属门店ID
|
||||
ClientId interface{} // 客户机ID
|
||||
AreaId interface{} // 所属区域ID
|
||||
XyUserId interface{} // 系统唯一用户ID
|
||||
LevelId interface{} // 会员等级ID(如0表示临时卡)
|
||||
LevelName interface{} // 会员等级名称
|
||||
StartTime *gtime.Time // 上机时间
|
||||
EndTime *gtime.Time // 下机时间
|
||||
UsedTime interface{} // 使用时长(分钟)
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
DeletedAt *gtime.Time // 软删除时间戳
|
||||
AreaName interface{} //
|
||||
UserId interface{} // 用户 id
|
||||
}
|
||||
@ -11,16 +11,14 @@ import (
|
||||
|
||||
// StoreNetfeeAreaLevel is the golang structure of table store_netfee_area_level for DAO operations like Where/Data.
|
||||
type StoreNetfeeAreaLevel struct {
|
||||
g.Meta `orm:"table:store_netfee_area_level, do:true"`
|
||||
Id interface{} // 主键ID
|
||||
StoreId interface{} // 门店ID
|
||||
RewardId interface{} // 奖励ID(rewards表主键)
|
||||
AreaId interface{} // 区域ID(外部系统)
|
||||
AreaName interface{} // 区域名称
|
||||
MemberLevelId interface{} // 会员等级ID(外部系统)
|
||||
MemberLevelName interface{} // 会员等级名称
|
||||
PriceData interface{} // 7x24价格矩阵
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
DeletedAt *gtime.Time // 删除时间
|
||||
g.Meta `orm:"table:store_netfee_area_level, do:true"`
|
||||
Id interface{} // 主键ID
|
||||
StoreId interface{} // 门店ID
|
||||
RewardId interface{} // 奖励ID(rewards表主键)
|
||||
AreaId interface{} // 区域ID(外部系统)
|
||||
MemberLevelId interface{} // 会员等级ID(外部系统)
|
||||
PriceData interface{} // 7x24价格矩阵
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
DeletedAt *gtime.Time // 删除时间
|
||||
}
|
||||
|
||||
28
internal/model/entity/store_client_sessions.go
Normal file
28
internal/model/entity/store_client_sessions.go
Normal file
@ -0,0 +1,28 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package entity
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
)
|
||||
|
||||
// StoreClientSessions is the golang structure for table store_client_sessions.
|
||||
type StoreClientSessions struct {
|
||||
Id int64 `json:"id" orm:"id" description:"记录ID"` // 记录ID
|
||||
StoreId int64 `json:"storeId" orm:"store_id" description:"所属门店ID"` // 所属门店ID
|
||||
ClientId int64 `json:"clientId" orm:"client_id" description:"客户机ID"` // 客户机ID
|
||||
AreaId int64 `json:"areaId" orm:"area_id" description:"所属区域ID"` // 所属区域ID
|
||||
XyUserId string `json:"xyUserId" orm:"xy_user_id" description:"系统唯一用户ID"` // 系统唯一用户ID
|
||||
LevelId int `json:"levelId" orm:"level_id" description:"会员等级ID(如0表示临时卡)"` // 会员等级ID(如0表示临时卡)
|
||||
LevelName string `json:"levelName" orm:"level_name" description:"会员等级名称"` // 会员等级名称
|
||||
StartTime *gtime.Time `json:"startTime" orm:"start_time" description:"上机时间"` // 上机时间
|
||||
EndTime *gtime.Time `json:"endTime" orm:"end_time" description:"下机时间"` // 下机时间
|
||||
UsedTime int `json:"usedTime" orm:"used_time" description:"使用时长(分钟)"` // 使用时长(分钟)
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
|
||||
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:"软删除时间戳"` // 软删除时间戳
|
||||
AreaName string `json:"areaName" orm:"area_name" description:""` //
|
||||
UserId int `json:"userId" orm:"user_id" description:"用户 id"` // 用户 id
|
||||
}
|
||||
@ -10,15 +10,13 @@ import (
|
||||
|
||||
// StoreNetfeeAreaLevel is the golang structure for table store_netfee_area_level.
|
||||
type StoreNetfeeAreaLevel struct {
|
||||
Id int64 `json:"id" orm:"id" description:"主键ID"` // 主键ID
|
||||
StoreId int64 `json:"storeId" orm:"store_id" description:"门店ID"` // 门店ID
|
||||
RewardId int64 `json:"rewardId" orm:"reward_id" description:"奖励ID(rewards表主键)"` // 奖励ID(rewards表主键)
|
||||
AreaId int64 `json:"areaId" orm:"area_id" description:"区域ID(外部系统)"` // 区域ID(外部系统)
|
||||
AreaName string `json:"areaName" orm:"area_name" description:"区域名称"` // 区域名称
|
||||
MemberLevelId int64 `json:"memberLevelId" orm:"member_level_id" description:"会员等级ID(外部系统)"` // 会员等级ID(外部系统)
|
||||
MemberLevelName string `json:"memberLevelName" orm:"member_level_name" description:"会员等级名称"` // 会员等级名称
|
||||
PriceData string `json:"priceData" orm:"price_data" description:"7x24价格矩阵"` // 7x24价格矩阵
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
|
||||
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:"删除时间"` // 删除时间
|
||||
Id int64 `json:"id" orm:"id" description:"主键ID"` // 主键ID
|
||||
StoreId int64 `json:"storeId" orm:"store_id" description:"门店ID"` // 门店ID
|
||||
RewardId int64 `json:"rewardId" orm:"reward_id" description:"奖励ID(rewards表主键)"` // 奖励ID(rewards表主键)
|
||||
AreaId int64 `json:"areaId" orm:"area_id" description:"区域ID(外部系统)"` // 区域ID(外部系统)
|
||||
MemberLevelId int64 `json:"memberLevelId" orm:"member_level_id" description:"会员等级ID(外部系统)"` // 会员等级ID(外部系统)
|
||||
PriceData string `json:"priceData" orm:"price_data" description:"7x24价格矩阵"` // 7x24价格矩阵
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间
|
||||
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:"删除时间"` // 删除时间
|
||||
}
|
||||
|
||||
27
internal/model/statistic.go
Normal file
27
internal/model/statistic.go
Normal file
@ -0,0 +1,27 @@
|
||||
package model
|
||||
|
||||
import "github.com/gogf/gf/v2/os/gtime"
|
||||
|
||||
type StoreClients struct {
|
||||
Id int64 `json:"id" orm:"id" description:"客户机ID"` // 客户机ID
|
||||
StoreId int64 `json:"storeId" orm:"store_id" description:"所属门店ID"` // 所属门店ID
|
||||
ClientName string `json:"clientName" orm:"client_name" description:"客户机名称"` // 客户机名称
|
||||
Status int `json:"status" orm:"status" description:"状态:1=空闲,2=禁用,3=上机中等"` // 状态:1=空闲,2=禁用,3=上机中等
|
||||
AreaId int64 `json:"areaId" orm:"area_id" description:"所属区域ID"` // 所属区域ID
|
||||
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:""` //
|
||||
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:""` //
|
||||
DeletedAt *gtime.Time `json:"deletedAt" orm:"deleted_at" description:""` //
|
||||
}
|
||||
|
||||
type GetOnlineDeviceOut struct {
|
||||
TerminalTotal int64 `json:"terminalTotal"`
|
||||
OnlineTerminalTotal int64 `json:"onlineTerminalTotal"`
|
||||
StartTimes int64 `json:"startTimes"`
|
||||
TaskTimes int64 `json:"taskTimes"`
|
||||
TaskCompletedTotal int64 `json:"taskCompletedTotal"`
|
||||
}
|
||||
|
||||
type GetOnlineDeviceIn struct {
|
||||
NetbarAccount string `json:"netbarAccount"`
|
||||
StoreId int64 `json:"storeId"`
|
||||
}
|
||||
Reference in New Issue
Block a user