refactor user service methods, implement OIDC login and user management features, and enhance token handling

This commit is contained in:
2025-07-22 20:45:05 +08:00
parent f07200b0b9
commit cbe73121f2
17 changed files with 655 additions and 126 deletions

20
pkg/utils/url.go Normal file
View File

@ -0,0 +1,20 @@
package utils
import "net/url"
type urlUtils struct{}
var Url = &urlUtils{}
func (u *urlUtils) BuildUrl(baseUrl string, queryParams map[string]string) string {
newUrl, err := url.Parse(baseUrl)
if err != nil {
return baseUrl
}
q := newUrl.Query()
for key, value := range queryParams {
q.Set(key, value)
}
newUrl.RawQuery = q.Encode()
return newUrl.String()
}