app

package
v1.21.3 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 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" yaml:"appId" xml:"appId"`
	Source   string `form:"source" binding:"-" json:"source" yaml:"source" xml:"source"` //来自己client ,`如果 server,表示具体服务名
	Terminal string `form:"terminal" binding:"-" json:"terminal" yaml:"terminal" xml:"terminal"`
	Version  string `form:"version" binding:"-" json:"version" yaml:"version" xml:"version"` //应用程序版本
	Channel  string `form:"channel" binding:"-" json:"channel" yaml:"channel" xml:"channel"` //渠道(小米、华为、360、VIVO、OPPO、APPLE)
	ExtInfo  string `form:"extInfo" binding:"-" json:"extInfo" yaml:"extInfo" xml:"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" yaml:"deviceId"`
	SysVer   string `form:"sysVersion" binding:"-" json:"sysVersion" yaml:"sysVer"`
	Model    string `form:"model" binding:"-" json:"model" yaml:"model"`
	Wifi     string `form:"wifi" binding:"-" json:"wifi" yaml:"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