model

package
v0.0.0-...-bb55b62 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Extend

type Extend map[string]string

扩展数据

func (*Extend) Scan

func (t *Extend) Scan(value any) error

Scan 读取数据的时候转换为json

func (Extend) Value

func (t Extend) Value() (driver.Value, error)

Value 存储数据的时候转换为字符串

type Object

type Object map[string]any

JSON 对象

func (*Object) Scan

func (t *Object) Scan(value any) error

Scan 读取数据的时候转换为json(解决uint64类型数据精度丢失问题)

func (Object) Value

func (t Object) Value() (driver.Value, error)

Value 存储数据的时候转换为字符串

type ResultList

type ResultList []service.Result

JSON 对象

func (*ResultList) Scan

func (t *ResultList) Scan(value any) error

Scan 读取数据的时候转换为json(解决uint64类型数据精度丢失问题)

func (ResultList) Value

func (t ResultList) Value() (driver.Value, error)

Value 存储数据的时候转换为字符串

Jump to

Keyboard shortcuts

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