add rating methods

This commit is contained in:
diPhantxm
2023-03-14 00:30:45 +03:00
parent d1565b9d00
commit a763342d11
3 changed files with 313 additions and 0 deletions

View File

@@ -83,6 +83,10 @@ func getDefaultValues(v interface{}) (map[string]string, error) {
func buildRawQuery(req *http.Request, v interface{}) (string, error) {
query := req.URL.Query()
if v == nil {
return query.Encode(), nil
}
values, err := getDefaultValues(v)
if err != nil {
return "", err