sqltype

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2021 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 ConfigurationKey added in v1.0.4

type ConfigurationKey uint64

type CustomerService

type CustomerService struct {
	Photo         string
	Name          string
	Title         string
	Hide          bool
	SocialAccount []SocialAccount
}

type CustomerServiceList

type CustomerServiceList []CustomerService

func (*CustomerServiceList) Scan

func (j *CustomerServiceList) Scan(value interface{}) error

实现 sql.Scanner 接口,Scan 将 value 扫描至 Jsonb

func (CustomerServiceList) Value

func (j CustomerServiceList) Value() (driver.Value, error)

实现 driver.Valuer 接口,Value 返回 json value

type FocusPicture

type FocusPicture struct {
	Url       string
	Title     string
	Introduce string
	Link      string
	Hide      bool
}

type FocusPictureList

type FocusPictureList []FocusPicture

func (*FocusPictureList) Scan

func (j *FocusPictureList) Scan(value interface{}) error

实现 sql.Scanner 接口,Scan 将 value 扫描至 Jsonb

func (FocusPictureList) Value

func (j FocusPictureList) Value() (driver.Value, error)

实现 driver.Valuer 接口,Value 返回 json value

type SocialAccount

type SocialAccount struct {
	Type    SocialType
	Hide    bool
	Account string
}

type SocialAccountList

type SocialAccountList []SocialAccount

func (*SocialAccountList) Scan

func (j *SocialAccountList) Scan(value interface{}) error

实现 sql.Scanner 接口,Scan 将 value 扫描至 Jsonb

func (SocialAccountList) Value

func (j SocialAccountList) Value() (driver.Value, error)

实现 driver.Valuer 接口,Value 返回 json value

type SocialType

type SocialType string
const Email SocialType = "email"
const Facebook SocialType = "facebook"
const Instagram SocialType = "instagram"
const Linkedin SocialType = "linkedin"
const Phone SocialType = "phone"
const Qq SocialType = "qq"
const Skype SocialType = "skype"
const Twitter SocialType = "twitter"
const Wechat SocialType = "wechat"
const Whatsapp SocialType = "whatsapp"

type StringArray

type StringArray []string

func (*StringArray) Scan

func (j *StringArray) Scan(value interface{}) error

实现 sql.Scanner 接口,Scan 将 value 扫描至 Jsonb

func (StringArray) Value

func (j StringArray) Value() (driver.Value, error)

实现 driver.Valuer 接口,Value 返回 json value

Jump to

Keyboard shortcuts

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