Files
stat_center/api/proto/advertiseLoc.go
T
2026-05-20 16:13:58 +08:00

54 lines
2.1 KiB
Go

package proto
import (
"stat/common"
"time"
)
// 广告位置列表请求
type ListAdsLocReq struct {
AppId *int32 `form:"appId" json:"appId" binding:"omitempty"` // appId,过滤条件
common.Page
}
type ListAdsLocRes struct {
Total int64 `json:"total"`
List []AdsLocInfo `json:"list"`
}
type AdsLocInfo 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 AddAdsLocReq 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 UpdateAdsLocReq 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 DelAdsLocReq struct {
Id *int64 `form:"id" json:"id" binding:"required"` // 应用id
}