This commit is contained in:
2026-03-07 03:57:45 +07:00
parent c3e5654ab4
commit 9e0a19d25a
10 changed files with 6 additions and 6 deletions
+5
View File
@@ -0,0 +1,5 @@
package link
type ILinkService interface {
GetTeamClientLink(host string, name string, password string) string
}
+16
View File
@@ -0,0 +1,16 @@
package link
import (
"fmt"
"net/url"
)
type service struct{}
func NewLinkService() ILinkService {
return &service{}
}
func (s *service) GetTeamClientLink(host string, name string, password string) string {
return fmt.Sprintf("%s?name=%s&password=%s", host, url.PathEscape(name), password)
}