Documentation ¶
Index ¶
- Variables
- type CmdCode
- type CmdID
- type CmdIDStr
- type CmdPage
- type CmdStat
- type CodeName
- type Comparator
- type Err
- type Ext
- type ListMap
- func (domain *ListMap) Get(index int) any
- func (domain *ListMap) GetV(key any) any
- func (domain *ListMap) HasNext() bool
- func (domain *ListMap) Index() int
- func (domain *ListMap) JsonMap(toString func(object any) string) (data map[string]any)
- func (domain *ListMap) Length() int
- func (domain *ListMap) Map() (data map[any]any)
- func (domain *ListMap) Next() any
- func (domain *ListMap) Put(key any, val any)
- func (domain *ListMap) PutExists(key any, val any) bool
- func (domain *ListMap) PutNotFound(key any, val any) bool
- func (domain *ListMap) RestIndex()
- func (domain *ListMap) Set(index int, val any)
- type LocalDatetime
- func (ce LocalDatetime) IsNull() bool
- func (ce *LocalDatetime) MarshalJSON() ([]byte, error)
- func (ce *LocalDatetime) Scan(src any) error
- func (ce LocalDatetime) String() string
- func (ce LocalDatetime) Time() time.Time
- func (ce *LocalDatetime) UnmarshalJSON(data []byte) (err error)
- func (ce LocalDatetime) Value() (driver.Value, error)
- type Pageable
- type Pair
- type Resp
- type SPUser
- type String
- func (domain *String) Bool() bool
- func (domain *String) EqualFold(val string) bool
- func (domain *String) Float32() float32
- func (domain *String) Float64() float64
- func (domain *String) HasPrefix(prefix string) bool
- func (domain *String) HasSuffix(suffix string) bool
- func (domain *String) Index(substr string) int
- func (domain *String) IndexAny(chars string) int
- func (domain *String) Int() int
- func (domain *String) Int16() int16
- func (domain *String) Int32() int32
- func (domain *String) Int64() int64
- func (domain *String) Int8() int8
- func (domain *String) IsEmpty() bool
- func (domain *String) LastIndex(substr string) int
- func (domain *String) LastIndexAny(chars string) int
- func (domain *String) Length() int
- func (domain *String) LocalDateTime() LocalDatetime
- func (domain *String) Scan(src any) error
- func (domain *String) String() string
- func (domain *String) Time() time.Time
- func (domain *String) UnmarshalJSON(data []byte) (err error)
- func (domain *String) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var SToString = func(data any) string { return fmt.Sprintf("%v", data) }
Functions ¶
This section is empty.
Types ¶
type CmdCode ¶ added in v0.0.8
type CmdCode struct {
Code string `json:"code" form:"code" uri:"code" binding:"required"`
}
type CmdID ¶ added in v0.2.9
type CmdID struct {
ID int64 `json:"id" form:"id" uri:"id" binding:"required"`
}
type CmdIDStr ¶ added in v0.2.9
type CmdIDStr struct {
ID string `json:"id" form:"id" uri:"id" binding:"required"`
}
type CmdPage ¶
type Comparator ¶
type Ext ¶ added in v0.2.9
type Ext struct { CreateTime *LocalDatetime `xorm:"datetime comment('创建时间')" json:"createTime"` CreateUserCode string `xorm:"varchar(60) comment('创建人') " json:"createUserCode"` CreateUserName string `xorm:"varchar(100) comment('创建人名称') " json:"createUserName"` UpdateTime *LocalDatetime `xorm:"datetime comment('修改时间') " json:"updateTime"` UpdateUserCode string `xorm:"varchar(60) comment('修改人') " json:"updateUserCode"` UpdateUserName string `xorm:"varchar(100) comment('修改人名称') " json:"updateUserName"` Version int64 `xorm:"version bigint(200) comment('版本号') " json:"version"` Deleted *LocalDatetime `xorm:"deleted datetime comment('删除时间') " json:"deleted"` }
type ListMap ¶ added in v0.3.1
type ListMap struct {
// contains filtered or unexported fields
}
func NewListMap ¶
func (*ListMap) PutNotFound ¶ added in v0.3.1
type LocalDatetime ¶
func NowLocalDateTime ¶
func NowLocalDateTime() *LocalDatetime
func ToLocalDateTime ¶
func ToLocalDateTime(str string) LocalDatetime
func (LocalDatetime) IsNull ¶
func (ce LocalDatetime) IsNull() bool
func (*LocalDatetime) MarshalJSON ¶
func (ce *LocalDatetime) MarshalJSON() ([]byte, error)
func (*LocalDatetime) Scan ¶
func (ce *LocalDatetime) Scan(src any) error
func (LocalDatetime) String ¶
func (ce LocalDatetime) String() string
func (LocalDatetime) Time ¶
func (ce LocalDatetime) Time() time.Time
func (*LocalDatetime) UnmarshalJSON ¶
func (ce *LocalDatetime) UnmarshalJSON(data []byte) (err error)
type Pageable ¶
type String ¶
type String string
func NowLocalDateTimeStr ¶
func NowLocalDateTimeStr() String
func ReadString ¶
func (*String) LastIndexAny ¶
func (*String) LocalDateTime ¶
func (domain *String) LocalDateTime() LocalDatetime
func (*String) UnmarshalJSON ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.