Versions in this module Expand all Collapse all v1 v1.0.2 Apr 8, 2022 Changes in this version + const Accurate + const Bwt + const Fuzzy + const In + const Larger + const LargerOrEqual + const Not + const NotIn + const Smaller + const SmallerOrEqual + func BuildCondition(scons []SqlCondition, fcons []FieldCondition) (string, []interface{}, error) + func GetString(key string) (string, error) + func HGet(key string, field string) (string, error) + func HGetAll(key string) (map[string]string, error) + func HSet(key string, field string, value string) error + func SetNx(key string, value string) (bool, error) + func TTL(key string) (int, error) + type FieldCondition struct + Field string + MatchType string + TableName string + Value string + type PageCondition struct + Conditions []FieldCondition + PageNo int + PageSize int + type SearchModelResult struct + Items interface{} + TotalCount int64 + func PagerModel(tableName string, scons []SqlCondition, fcons []FieldCondition, pageSize int64, ...) (SearchModelResult, error) + type SearchResult struct + Items []map[string]interface{} + TotalCount int64 + func Pager(tableName string, scons []SqlCondition, fcons []FieldCondition, pageSize int64, ...) (SearchResult, error) + type SqlCondition struct + Sql string + Values []string