mirror of
https://github.com/cloudreve/Cloudreve.git
synced 2026-11-17 14:57:09 +00:00
Feat: move files/directories
This commit is contained in:
1 parent
081c92067f
commit
fd02425547
9 files changed
+189
-14
No files matched your search
@@ -56,3 +56,13 @@ func BuildRegexp(search []string, prefix, suffix, condition string) string {
|
||||
}
|
||||
return res
|
||||
}
|
||||
|
||||
// BuildConcat 根据数据库类型构建字符串连接表达式
|
||||
func BuildConcat(str1, str2 string, DBType string) string {
|
||||
switch DBType {
|
||||
case "mysql":
|
||||
return "CONCAT(" + str1 + "," + str2 + ")"
|
||||
default:
|
||||
return str1 + "||" + str2
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user