Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTags ¶
func GetTags(target interface{}) []string
GetTags parse a object and get the all tags
func SetValueToMapStrByTags ¶
SetValueToMapStrByTags convert a struct to MapStr by tags
func SetValueToStructByTags ¶
SetValueToStructByTags set the struct object field value by tags
Types ¶
type Condition ¶
type Condition interface {
SetStart(start int)
GetStart() int
SetLimit(limit int)
GetLimit() int
SetSort(sort string)
GetSort() string
Field(fieldName string) Field
ToMapStr() types.MapStr
}
Condition condition interface
type Field ¶
type Field interface {
Eq(val interface{}) Condition
NotEq(val interface{}) Condition
Like(val interface{}) Condition
In(val interface{}) Condition
NotIn(val interface{}) Condition
Lt(val interface{}) Condition
Lte(val interface{}) Condition
Gt(val interface{}) Condition
Gte(val interface{}) Condition
ToMapStr() types.MapStr
}
Field create a field
Click to show internal directories.
Click to hide internal directories.