-
Notifications
You must be signed in to change notification settings - Fork 2
/
types.go
37 lines (33 loc) · 1.01 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package sms
import (
"net/http"
"time"
)
// Basic
type SmsClient struct {
ApiId string `json:"api_id"`
Http *http.Client `json:"-"`
Debug bool `json:"-"`
}
type Response struct {
Status int `json:"status"`
Ids []string `json:"id"`
Cost float32 `json:"cost"`
Count int `json:"count"`
Balance float32 `json:"balance"`
Limit int `json:"limit"`
LimitSent int `json:"limit_sent"`
Senders []string `json:"senders"`
Stoplist map[string]string `json:"stoplist"`
Callbacks []string `json:"callbacks"`
}
type Sms struct {
To string `json:"to"`
Text string `json:"text"`
Translit bool `json:"translit"`
Multi map[string]string `json:"multi"`
From string `json:"from"`
Time time.Time `json:"time"`
Test bool `json:"test"`
PartnerId int `json:"partner_id"`
}