fix get url arguments passing

chore: update gitignore
chore: rename some structures
feat: support sdk init
This commit is contained in:
XingfenD
2026-08-03 15:21:01 +08:00
parent 2605bf350c
commit 5604a3f2f0
7 changed files with 57 additions and 12 deletions
+16
View File
@@ -1 +1,17 @@
package sdk
import (
"github.com/XingfenD/rainyun_api_go_sdk/apis"
"github.com/XingfenD/rainyun_api_go_sdk/apis/public"
)
type RainyunSDK struct {
public.PublicService
}
func New(apiKey string) *RainyunSDK {
c := apis.NewRyClient(apiKey)
return &RainyunSDK{
PublicService: *public.NewPublicService(c),
}
}