app

package
v1.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2023 License: Zlib Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtInfo

type ExtInfo map[string]interface{}

func (ExtInfo) Decode

func (e ExtInfo) Decode(info string) error

func (ExtInfo) Encode

func (e ExtInfo) Encode() string

type Info

type Info struct {
	AppId    string `form:"appId" binding:"-" json:"appId"`
	Source   string `form:"source" binding:"-" json:"source"` //来自己client ,`如果 server,表示具体服务名
	Terminal string `form:"terminal" binding:"-" json:"terminal"`
	Version  string `form:"version" binding:"-" json:"version"` //应用程序版本
	Channel  string `form:"channel" binding:"-" json:"channel"` //渠道(小米、华为、360、VIVO、OPPO、APPLE)
	ExtInfo  string `form:"extInfo" binding:"-" json:"extInfo"` //base64 json
}

Info 应用app信息

func (Info) HasExtInfo

func (i Info) HasExtInfo() bool

func (Info) HasValid added in v1.0.1

func (i Info) HasValid() bool

type System

type System struct {
	DeviceId string `form:"deviceId" binding:"-" json:"deviceId"`
	SysVer   string `form:"sysVersion" binding:"-" json:"sysVersion"`
	Model    string `form:"model" binding:"-" json:"model"`
	Wifi     string `form:"wifi" binding:"-" json:"wifi"`
}

System 用户系统

func (System) HasValid added in v1.0.1

func (i System) HasValid() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL