feat: query_parser support new one filter parse pattern.

This commit is contained in:
Bobo
2025-06-24 10:48:26 +08:00
parent b9665d4f9b
commit bed43b3576
4 changed files with 299 additions and 12 deletions

13
query_parser/utils.go Normal file
View File

@@ -0,0 +1,13 @@
package query_parser
import "net/url"
// EncodeSpecialCharacters 对字符串进行编码
func EncodeSpecialCharacters(input string) string {
return url.QueryEscape(input)
}
// DecodeSpecialCharacters 对字符串进行解码
func DecodeSpecialCharacters(input string) (string, error) {
return url.QueryUnescape(input)
}