2022-11-24 23:37:34 +08:00
|
|
|
// Package common
|
|
|
|
// @Link https://github.com/bufanyun/hotgo
|
2023-02-23 17:53:04 +08:00
|
|
|
// @Copyright Copyright (c) 2023 HotGo CLI
|
2022-11-24 23:37:34 +08:00
|
|
|
// @Author Ms <133814250@qq.com>
|
|
|
|
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
|
|
|
|
package common
|
|
|
|
|
|
|
|
import "github.com/gogf/gf/v2/frame/g"
|
|
|
|
|
|
|
|
// ConsoleStatReq 控制台统计
|
|
|
|
type ConsoleStatReq struct {
|
|
|
|
g.Meta `path:"/console/stat" method:"get" tags:"控制台" summary:"综合数据统计"`
|
|
|
|
}
|
2023-06-05 20:14:57 +08:00
|
|
|
|
2022-11-24 23:37:34 +08:00
|
|
|
type ConsoleStatRes struct {
|
|
|
|
Visits struct {
|
|
|
|
DayVisits float64 `json:"dayVisits"`
|
|
|
|
Rise float64 `json:"rise"`
|
|
|
|
Decline float64 `json:"decline"`
|
|
|
|
Amount float64 `json:"amount"`
|
|
|
|
} `json:"visits"`
|
|
|
|
Saleroom struct {
|
|
|
|
WeekSaleroom float64 `json:"weekSaleroom"`
|
|
|
|
Amount float64 `json:"amount"`
|
|
|
|
Degree float64 `json:"degree"`
|
|
|
|
} `json:"saleroom"`
|
|
|
|
OrderLarge struct {
|
|
|
|
WeekLarge float64 `json:"weekLarge"`
|
|
|
|
Rise float64 `json:"rise"`
|
|
|
|
Decline float64 `json:"decline"`
|
|
|
|
Amount float64 `json:"amount"`
|
|
|
|
} `json:"orderLarge"`
|
|
|
|
Volume struct {
|
|
|
|
WeekLarge float64 `json:"weekLarge"`
|
|
|
|
Rise float64 `json:"rise"`
|
|
|
|
Decline float64 `json:"decline"`
|
|
|
|
Amount float64 `json:"amount"`
|
|
|
|
} `json:"volume"`
|
|
|
|
}
|