7
0
gaore-common-sdk-go/services/jedi/client.go

31 lines
678 B
Go
Raw Normal View History

2020-08-03 20:48:58 +08:00
package jedi
import "golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk"
2020-08-04 12:23:34 +08:00
const (
2020-08-06 15:41:02 +08:00
HOST = "jedi"
2020-08-04 12:23:34 +08:00
VERSION = "2020-08-04"
)
2020-08-03 20:48:58 +08:00
type Client struct {
sdk.Client
}
2020-08-04 12:23:34 +08:00
func (c *Client) SendSms(req *SendSmsRequest) (response *SendSmsResponse, err error) {
response = CreateSendSmsResponse()
err = c.DoAction(req, response)
return
}
2020-08-06 16:04:44 +08:00
func (c *Client) Test(req *DemoTestRequest) (response *DemoTestResponse, err error) {
response = CreateDemoTestResponse()
err = c.DoAction(req, response)
return
}
2020-08-04 12:23:34 +08:00
func NewClientWithAccessKey(accesskey, secrect, source string) (client *Client, err error) {
client = &Client{}
2020-08-04 21:14:06 +08:00
err = client.InitWithAccessKey(accesskey, secrect, source)
2020-08-04 12:23:34 +08:00
return
2020-08-03 20:48:58 +08:00
}