调整接口
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"`
|
||||
}
|
||||
@ -19,4 +19,5 @@ type IStoreV1 interface {
|
||||
DeleteIp(ctx context.Context, req *v1.DeleteIpReq) (res *v1.DeleteIpRes, err error)
|
||||
UpdateIp(ctx context.Context, req *v1.UpdateIpReq) (res *v1.UpdateIpRes, err error)
|
||||
GetIpList(ctx context.Context, req *v1.GetIpListReq) (res *v1.GetIpListRes, err error)
|
||||
Detail(ctx context.Context, req *v1.DetailReq) (res *v1.DetailRes, err error)
|
||||
}
|
||||
|
||||
@ -86,3 +86,10 @@ type GetIpListRes struct {
|
||||
List interface{} `json:"list" dc:"IP列表"`
|
||||
Total int64 `json:"total" dc:"总数"`
|
||||
}
|
||||
type DetailReq struct {
|
||||
g.Meta `path:"/store/detail" method:"get" tags:"Store" summary:"(系统、商户门店后台)门店详情"`
|
||||
NetbarAccount string `json:"netbarAccount" v:"required" dc:"门店账号"`
|
||||
}
|
||||
type DetailRes struct {
|
||||
Id int64 `json:"id" dc:"门店ID"`
|
||||
}
|
||||
|
||||
@ -3,11 +3,12 @@ package v1
|
||||
import "github.com/gogf/gf/v2/frame/g"
|
||||
|
||||
type RankingReq struct {
|
||||
g.Meta `path:"/task/ranking" method:"get" tags:"Task" summary:"(PC)任务排行榜"`
|
||||
StoreId int `json:"storeId" v:"required#请选择店铺" dc:"门店id"`
|
||||
Page int `json:"page" dc:"页数"`
|
||||
Size int `json:"size" dc:"条数"`
|
||||
Type int `json:"type" v:"required#请选择排行榜类型" dc:"排行榜类型"`
|
||||
g.Meta `path:"/task/ranking" method:"get" tags:"Task" summary:"(PC)任务排行榜"`
|
||||
StoreId int `json:"storeId" dc:"门店id"`
|
||||
NetBarAccount string `json:"netBarAccount" dc:"网关账号"`
|
||||
Page int `json:"page" dc:"页数"`
|
||||
Size int `json:"size" dc:"条数"`
|
||||
Type int `json:"type" v:"required#请选择排行榜类型" dc:"排行榜类型"`
|
||||
}
|
||||
|
||||
type RankingRes struct {
|
||||
@ -73,11 +74,12 @@ type SelectorRes struct {
|
||||
|
||||
// GetTaskReq 添加任务记录
|
||||
type GetTaskReq struct {
|
||||
g.Meta `path:"/task/get" method:"post" tags:"Task" summary:"(PC)任务领取"`
|
||||
TaskId int `json:"taskId" v:"required#任务id不能为空" dc:"任务id"`
|
||||
StoreId int `json:"storeId" v:"required#门店 id不能为空" dc:"门店 id"`
|
||||
GameId int `json:"gid" v:"required#游戏唯一id不能为空" dc:"游戏唯一id"`
|
||||
TaskName string `json:"taskName" v:"required#任务名称不能为空" dc:"任务名称"`
|
||||
g.Meta `path:"/task/get" method:"post" tags:"Task" summary:"(PC)任务领取"`
|
||||
TaskId int `json:"taskId" v:"required#任务id不能为空" dc:"任务id"`
|
||||
StoreId int `json:"storeId" dc:"门店 id、网关账号必传一个"`
|
||||
NetBarAccount string `json:"netBarAccount" dc:"门店 id、网关账号必传一个"`
|
||||
GameId int `json:"gid" v:"required#游戏唯一id不能为空" dc:"游戏唯一id"`
|
||||
TaskName string `json:"taskName" v:"required#任务名称不能为空" dc:"任务名称"`
|
||||
}
|
||||
|
||||
type GetTaskRes struct {
|
||||
|
||||
Reference in New Issue
Block a user