fix get url arguments passing
chore: update gitignore chore: rename some structures feat: support sdk init
This commit is contained in:
+16
@@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user