Documentation ¶
Index ¶
- func BytesToInt64(buf []byte) int64
- func CollectFloat64(list interface{}, field string) []float64
- func CollectInt(list interface{}, field string) []int
- func CollectInt64(list interface{}, field string) []int64
- func CollectSetFloat64(list interface{}, field string) []float64
- func CollectSetInt(list interface{}, field string) []int
- func CollectSetInt64(list interface{}, field string) []int64
- func CollectSetString(list interface{}, field string) []string
- func CollectString(list interface{}, field string) []string
- func ContainsInt(list []int, val int) bool
- func ContainsInt64(list []int64, val int64) bool
- func ContainsStr(list []string, str string) bool
- func ContainsUint(list []uint, val uint) bool
- func Int64ToBytes(i int64) []byte
- func IsDigit(str string) bool
- func IsEmail(str string) bool
- func SelectSortInt(arr []int) []int
- func SelectSortSring(arr []string) []string
- type App
- type Auth
- type Config
- type Datasource
- type ElasticSearch
- type EsDate
- type EsTime
- type Etcd
- type Gateway
- type GormWrapper
- func (this *GormWrapper) Eq(field string, val interface{}) *GormWrapper
- func (this *GormWrapper) Ge(field string, val interface{}) *GormWrapper
- func (this *GormWrapper) Gt(field string, val interface{}) *GormWrapper
- func (this *GormWrapper) In(field string, val interface{}) *GormWrapper
- func (this *GormWrapper) InSql(field string, val string) *GormWrapper
- func (this *GormWrapper) Le(field string, val interface{}) *GormWrapper
- func (this *GormWrapper) Like(field string, val interface{}) *GormWrapper
- func (this *GormWrapper) Lt(field string, val interface{}) *GormWrapper
- func (this *GormWrapper) Ne(field string, val interface{}) *GormWrapper
- func (this *GormWrapper) OrderByDesc(field string)
- func (this *GormWrapper) Set(field string, val interface{}) *GormWrapper
- func (this *GormWrapper) SetDb(db *gorm.DB) *gorm.DB
- type Json
- type Nsq
- type Page
- type QueryWrapper
- type R
- type Redis
- type Register
- type XjDate
- func (t *XjDate) GobDecode(data []byte) error
- func (t XjDate) GobEncode() ([]byte, error)
- func (t XjDate) MarshalJSON() ([]byte, error)
- func (t *XjDate) Scan(v interface{}) error
- func (t XjDate) String() string
- func (t XjDate) StringDiy(sFormat string) string
- func (t *XjDate) UnmarshalJSON(data []byte) (err error)
- func (t XjDate) Value() (driver.Value, error)
- type XjTime
- func (t *XjTime) GobDecode(data []byte) error
- func (t XjTime) GobEncode() ([]byte, error)
- func (t XjTime) MarshalJSON() ([]byte, error)
- func (t *XjTime) Scan(v interface{}) error
- func (t XjTime) String() string
- func (t XjTime) StringDiy(sFormat string) string
- func (t *XjTime) UnmarshalJSON(data []byte) (err error)
- func (t XjTime) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToInt64 ¶
func CollectFloat64 ¶ added in v0.4.7
func CollectInt ¶ added in v0.4.7
func CollectInt64 ¶ added in v0.4.7
func CollectSetFloat64 ¶ added in v0.4.7
func CollectSetInt ¶ added in v0.4.7
func CollectSetInt64 ¶ added in v0.4.7
func CollectSetString ¶ added in v0.4.7
func CollectString ¶ added in v0.4.7
func ContainsInt ¶
func ContainsInt64 ¶
func ContainsStr ¶
Contains checks if str is in list.
func ContainsUint ¶ added in v0.7.0
func Int64ToBytes ¶
func SelectSortInt ¶ added in v0.5.8
func SelectSortSring ¶ added in v0.5.8
Types ¶
type GormWrapper ¶ added in v0.3.8
type GormWrapper struct { Where string Args []interface{} Cols string Orderby string Current int Size int Sets map[string]interface{} Debug bool }
func (*GormWrapper) Eq ¶ added in v0.3.8
func (this *GormWrapper) Eq(field string, val interface{}) *GormWrapper
EQ 就是 EQUAL等于
func (*GormWrapper) Ge ¶ added in v0.3.9
func (this *GormWrapper) Ge(field string, val interface{}) *GormWrapper
GREATER THAN OR EQUAL 大于等于
func (*GormWrapper) Gt ¶ added in v0.6.0
func (this *GormWrapper) Gt(field string, val interface{}) *GormWrapper
GREATER THAN大于
func (*GormWrapper) In ¶ added in v0.3.8
func (this *GormWrapper) In(field string, val interface{}) *GormWrapper
func (*GormWrapper) InSql ¶ added in v0.5.8
func (this *GormWrapper) InSql(field string, val string) *GormWrapper
func (*GormWrapper) Le ¶ added in v0.3.9
func (this *GormWrapper) Le(field string, val interface{}) *GormWrapper
LE 就是 LESS THAN OR EQUAL 小于等于
func (*GormWrapper) Like ¶ added in v0.3.9
func (this *GormWrapper) Like(field string, val interface{}) *GormWrapper
func (*GormWrapper) Lt ¶ added in v0.6.0
func (this *GormWrapper) Lt(field string, val interface{}) *GormWrapper
LT 就是 LESS THAN小于
func (*GormWrapper) Ne ¶ added in v0.6.0
func (this *GormWrapper) Ne(field string, val interface{}) *GormWrapper
NE 就是 NOT EQUAL不等于
func (*GormWrapper) OrderByDesc ¶ added in v0.3.9
func (this *GormWrapper) OrderByDesc(field string)
func (*GormWrapper) Set ¶ added in v0.5.0
func (this *GormWrapper) Set(field string, val interface{}) *GormWrapper
type Page ¶
type Page struct { Current int `json:"current""` //当前页 Size int `json:"size"` //每页条数 Total int64 `json:"total"` //总条数 Pages int64 `json:"pages"` //总页数 Records interface{} `json:"records"` //结果集 }
func (*Page) SetPageSize ¶
type QueryWrapper ¶
type R ¶
type XjDate ¶
func (XjDate) MarshalJSON ¶
func (*XjDate) UnmarshalJSON ¶
type XjTime ¶
func (XjTime) MarshalJSON ¶
func (*XjTime) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.