-
Notifications
You must be signed in to change notification settings - Fork 1
/
type.go
35 lines (29 loc) · 1.24 KB
/
type.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
package whatsauth
type LoginInfo struct {
Userid string `json:"user_id,omitempty" bson:"user_id,omitempty"`
Username string `json:"user_name,omitempty" bson:"user_name,omitempty"`
Password string `json:"user_pass,omitempty" bson:"user_pass,omitempty"`
Phone string `json:"phone,omitempty" bson:"phone,omitempty"`
Login string `json:"login,omitempty" bson:"login,omitempty"`
Uuid string `json:"uuid,omitempty" bson:"uuid,omitempty"`
}
type Whatsauth struct {
Uuid string `json:"uuid"`
}
type WhatsauthRequest struct {
Uuid string `json:"uuid,omitempty" bson:"uuid,omitempty"`
Phonenumber string `json:"phonenumber,omitempty" bson:"phonenumber,omitempty"`
Delay uint32 `json:"delay,omitempty" bson:"delay,omitempty"`
}
type WhatsauthMessage struct {
Id string `json:"id,omitempty" bson:"id,omitempty"`
Message LoginInfo `json:"message,omitempty" bson:"message,omitempty"`
}
type WhatsauthStatus struct {
Status string `json:"status,omitempty" bson:"status,omitempty"`
}
type WhatsAuthRoles struct {
Uuid string `json:"uuid,omitempty" bson:"uuid,omitempty"`
Phonenumber string `json:"phonenumber,omitempty" bson:"phonenumber,omitempty"`
Roles string `json:"roles,omitempty" bson:"roles,omitempty"`
}