Documentation ¶
Index ¶
Constants ¶
View Source
const ( //AppID appid AppID = "main.archive.up-service" //UatToken uat token UatToken = "5f1660060bb011e8865c66d44b23cda7" //TreeID uat treeid TreeID = "15572" )
Variables ¶
This section is empty.
Functions ¶
func ConcatCondition ¶
func ConcatCondition(conditions ...Condition) (conditionStr string, args []interface{}, hasOperator bool)
ConcatCondition concat conditions
Types ¶
type Condition ¶
type Condition struct { Before string Key string Operator string Value interface{} After string // contains filtered or unexported fields }
Condition 生成的condition为 [before] [key] [operator] ? [after] 如
[(] [id] [=] ? [and] [ctime] [>] ? [)] [order by] [time] nil [] //如果value是nil,不会设置placeholder ?
func AndCondition ¶
AndCondition and condition
func OrCondition ¶
OrCondition or condition
Click to show internal directories.
Click to hide internal directories.