54 lines
2.1 KiB
Go
54 lines
2.1 KiB
Go
package proto
|
|
|
|
import (
|
|
"stat/common"
|
|
"time"
|
|
)
|
|
|
|
// 广告位置列表请求
|
|
type ListAppLocReq struct {
|
|
AppId *int32 `form:"appId" json:"appId" binding:"omitempty"` // appId,过滤条件
|
|
common.Page
|
|
}
|
|
|
|
type ListAppLocRes struct {
|
|
Total int64 `json:"total"`
|
|
List []AppLocInfo `json:"list"`
|
|
}
|
|
|
|
type AppLocInfo struct {
|
|
Id int64 `json:"id"` // 唯一id
|
|
AppId int32 `json:"appId"` // 应用id
|
|
AppName string `json:"appName"` // 应用名称
|
|
LocId int32 `json:"locId"` // 位置id
|
|
Name string `json:"name"` // 位置名称
|
|
ImgSizeDesc string `json:"imgSizeDesc"` // 图片尺寸描述
|
|
Remark string `json:"remark"` // 备注
|
|
CreatedAt time.Time `json:"createAt"` // 创建时间
|
|
UpdatedAt time.Time `json:"updatedAt"` // 更新时间
|
|
}
|
|
|
|
// 添加广告位置信息请求
|
|
type AddAppLocReq struct {
|
|
AppId *int32 `form:"appId" json:"appId" binding:"required"` // 应用Id
|
|
LocId *int32 `form:"locId" json:"locId" binding:"required"` // 位置id
|
|
Name *string `form:"name" json:"name" binding:"required"` // 位置名称
|
|
ImgSizeDesc string `form:"imgSizeDesc" json:"imgSizeDesc" binding:"omitempty"` // 图片尺寸描述
|
|
Remark string `form:"remark" json:"remark" binding:"omitempty"` // 备注
|
|
}
|
|
|
|
// 更新广告位置信息请求
|
|
type UpdateAppLocReq struct {
|
|
Id *int64 `form:"id" json:"id" binding:"required"` // id
|
|
AppId *int32 `form:"appId" json:"appId" binding:"omitempty"` // 应用id
|
|
LocId *int32 `form:"locId" json:"locId" binding:"omitempty"` // 位置id
|
|
Name *string `form:"name" json:"name" binding:"omitempty"` // 位置名称
|
|
ImgSizeDesc *string `form:"imgSizeDesc" json:"imgSizeDesc" binding:"omitempty"` // 图片尺寸描述
|
|
Remark *string `form:"remark" json:"remark" binding:"omitempty"` // 备注
|
|
}
|
|
|
|
// 删除广告位置信息请求
|
|
type DelAppLocReq struct {
|
|
Id *int64 `form:"id" json:"id" binding:"required"` // 应用id
|
|
}
|