link

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TypeList = []Type{
	Empty,
	Navigation,
	MiniProgram,
}

Functions

This section is empty.

Types

type Link struct {
	Type   Type   `json:"type"`
	Params Params `json:"params"`
}

Link 跳转链接

func (*Link) Scan

func (l *Link) Scan(v interface{}) error

func (Link) Value

func (l Link) Value() (driver.Value, error)

type Params

type Params struct {
	ID         *uint64 `json:"id,omitempty"`
	AppID      *string `json:"app_id,omitempty"`
	Path       *string `json:"path,omitempty"`
	EnvVersion *string `json:"env_version"`
	Point      *Point  `json:"point,omitempty"`
}

Params 链接参数

type Point

type Point struct {
	Name      *string  `json:"name,omitempty"`
	Address   *string  `json:"address,omitempty"`
	Latitude  *float64 `json:"latitude,omitempty"`
	Longitude *float64 `json:"longitude,omitempty"`
}

type Type

type Type string

Type 链接类型

const (
	Empty       Type = "empty"        // 不设置跳转
	Navigation  Type = "navigation"   // 外部导航
	MiniProgram Type = "mini_program" // 小程序
)

Jump to

Keyboard shortcuts

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