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 }