Documentation ¶
Index ¶
- type FileURL
- type Hashes
- type ImageURL
- type JNumbers
- type JStrings
- func (t JStrings) Contains(s string) bool
- func (t JStrings) Intersectant(s JStrings) bool
- func (t JStrings) MarshalJSON() ([]byte, error)
- func (t JStrings) MarshalYAML() ([]byte, error)
- func (t JStrings) Remove(s string) JStrings
- func (t JStrings) SAdd(s string) JStrings
- func (t *JStrings) Scan(src interface{}) error
- func (t JStrings) String() string
- func (t JStrings) Sub(s Strings) JStrings
- func (t JStrings) Union(s JStrings) JStrings
- func (t *JStrings) UnmarshalJSON(data []byte) error
- func (t *JStrings) UnmarshalYAML(data []byte) error
- func (t JStrings) Value() (driver.Value, error)
- type Numbers
- type Strings
- func (t Strings) Contains(s string) bool
- func (t Strings) Exists(s string) bool
- func (t Strings) Intersectant(s Strings) bool
- func (t Strings) MarshalJSON() ([]byte, error)
- func (t Strings) MarshalYAML() ([]byte, error)
- func (t Strings) Remove(s string) Strings
- func (t Strings) SAdd(s string) Strings
- func (t *Strings) Scan(src interface{}) error
- func (t Strings) String() string
- func (t Strings) Sub(s Strings) Strings
- func (t Strings) Union(s Strings) Strings
- func (t *Strings) UnmarshalJSON(data []byte) error
- func (t *Strings) UnmarshalYAML(data []byte) error
- func (t Strings) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileURL ¶
type FileURL string
FileURL ================文件链接================
func (FileURL) MarshalJSON ¶
MarshalJSON 转换为json类型 加域名
func (*FileURL) UnmarshalJSON ¶
UnmarshalJSON 不做处理
type Hashes ¶
type Hashes []uint64
Hashes ===========哈希列表===========
type ImageURL ¶
type ImageURL string
ImageURL ===============图片链接===============
func (ImageURL) MarshalJSON ¶
MarshalJSON 转换为json类型 加域名
func (*ImageURL) UnmarshalJSON ¶
UnmarshalJSON 前端提交的如果是URL,那只保留path
type JNumbers ¶
type JNumbers []int
JNumbers ===========数字列表===========
func (*JNumbers) UnmarshalJSON ¶
UnmarshalJSON 不做处理
type JStrings ¶
type JStrings []string
新版的列表字段,存往 mysql 数据库的时候,将存储成 json 类型,用以支持 json 查询语法 JStrings ===========字符串列表===========
func (*JStrings) UnmarshalJSON ¶
UnmarshalJSON 不做处理
func (*JStrings) UnmarshalYAML ¶
UnmarshalYAML 不做处理
type Numbers ¶
type Numbers []int
Numbers ===========数字列表===========
func (Numbers) MarshalJSON ¶
MarshalJSON 转换为json类型 加域名
func (*Numbers) UnmarshalJSON ¶
UnmarshalJSON 不做处理
type Strings ¶
type Strings []string
Strings ===========字符串列表===========
func (*Strings) UnmarshalJSON ¶
UnmarshalJSON 不做处理
func (*Strings) UnmarshalYAML ¶
UnmarshalYAML 不做处理
Click to show internal directories.
Click to hide internal directories.