Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Forward ¶
type Forward string
Forward Forward
func (*Forward) UnmarshalJSON ¶
UnmarshalJSON UnmarshalJSON
type HandleResult ¶
type HandleResult struct { Forward Forward `json:"forward"` // 跳转方式 Type HandlerType `json:"type"` // 数据类型 Data map[string]interface{} `json:"data"` // 数据 }
HandleResult 二维码处理结果
func NewHandleResult ¶
func NewHandleResult(forward Forward, typ HandlerType, data map[string]interface{}) *HandleResult
NewHandleResult NewHandleResult
type HandlerType ¶
type HandlerType string
HandlerType HandlerType
const ( // HandlerTypeWebView HandlerTypeWebView HandlerTypeWebView HandlerType = "webview" // HandlerTypeGroup 群组 HandlerTypeGroup HandlerType = "group" // HandlerTypeLoginConfirm 扫描登录确认 HandlerTypeLoginConfirm HandlerType = "loginConfirm" // HandlerTypeUserInfo 跳转到用户资料页面 HandlerTypeUserInfo HandlerType = "userInfo" )
func (HandlerType) MarshalJSON ¶
func (q HandlerType) MarshalJSON() ([]byte, error)
MarshalJSON MarshalJSON
func (*HandlerType) UnmarshalJSON ¶
func (q *HandlerType) UnmarshalJSON(b []byte) error
UnmarshalJSON UnmarshalJSON
Click to show internal directories.
Click to hide internal directories.