feat(app): update

This commit is contained in:
Yangtao
2025-11-19 14:24:13 +08:00
parent 1eac66d7fd
commit 0c34585649
329 changed files with 10760 additions and 281 deletions

View File

@ -0,0 +1,31 @@
package request
import "github.com/anxpp/beego/context"
type HeaderModel struct {
ClientVersion string
DeviceId string
Platform string
MarketChannel string
DeviceModel string
TimeStamp string
BundleId string
OsVersion string
ApiVersionNum string
}
func GetHeaderModel(ctx *context.Context) HeaderModel {
model := HeaderModel{}
model.ClientVersion = ctx.Input.Header("ClientVersion")
model.DeviceId = ctx.Input.Header("DeviceId")
model.Platform = ctx.Input.Header("Platform")
model.MarketChannel = ctx.Input.Header("MarketChannel")
model.DeviceModel = ctx.Input.Header("DeviceModel")
model.BundleId = ctx.Input.Header("BundleId")
model.OsVersion = ctx.Input.Header("OsVersion")
model.ApiVersionNum = ctx.Input.Header("ApiVersionNum")
model.TimeStamp = ctx.Input.Header("TimeStamp")
return model
}