书籍列表接口新增参数
This commit is contained in:
15
api/ads/ads.go
Normal file
15
api/ads/ads.go
Normal file
@ -0,0 +1,15 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package ads
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"server/api/ads/v1"
|
||||
)
|
||||
|
||||
type IAdsV1 interface {
|
||||
Upload(ctx context.Context, req *v1.UploadReq) (res *v1.UploadRes, err error)
|
||||
}
|
||||
16
api/ads/v1/ads.go
Normal file
16
api/ads/v1/ads.go
Normal file
@ -0,0 +1,16 @@
|
||||
package v1
|
||||
|
||||
import "github.com/gogf/gf/v2/frame/g"
|
||||
|
||||
// UploadReq 广告数据上传请求
|
||||
type UploadReq struct {
|
||||
g.Meta `path:"/ads/upload" tags:"APP/Ads" method:"post" summary:"广告数据上传"`
|
||||
NodeUid string `json:"node_uid" dc:"节点ID" v:"required"`
|
||||
DeviceCode string `json:"device_code" dc:"设备编号" v:"required"`
|
||||
Data string `json:"data" dc:"广告数据" v:"required"`
|
||||
}
|
||||
|
||||
// UploadRes 广告数据上传响应
|
||||
type UploadRes struct {
|
||||
Success bool `json:"success" dc:"是否成功"`
|
||||
}
|
||||
Reference in New Issue
Block a user