调整接口
This commit is contained in:
15
api/statistic/statistic.go
Normal file
15
api/statistic/statistic.go
Normal file
@ -0,0 +1,15 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package statistic
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"server/api/statistic/v1"
|
||||
)
|
||||
|
||||
type IStatisticV1 interface {
|
||||
GetOnlineDevice(ctx context.Context, req *v1.GetOnlineDeviceReq) (res *v1.GetOnlineDeviceRes, err error)
|
||||
}
|
||||
11
api/statistic/v1/statistic.go
Normal file
11
api/statistic/v1/statistic.go
Normal file
@ -0,0 +1,11 @@
|
||||
package v1
|
||||
|
||||
import "github.com/gogf/gf/v2/frame/g"
|
||||
|
||||
type GetOnlineDeviceReq struct {
|
||||
g.Meta `path:"/statistic/onlineDevice" method:"get" tags:"Statistic" summary:"获取门店设备在线列表"`
|
||||
NetbarAccount string `json:"netbarAccount" v:"required#网吧网关账号不能为空" dc:"网吧网关账号"`
|
||||
}
|
||||
type GetOnlineDeviceRes struct {
|
||||
Total int64 `json:"total"`
|
||||
}
|
||||
Reference in New Issue
Block a user