-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.go
40 lines (34 loc) · 1.06 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
38
39
40
package shared
import (
"time"
)
type UserSignupData struct {
Email string `json:"email"`
Password string `json:"password"`
ConfirmPassword string `json:"confirmPassword"`
}
type ErrorResponse struct {
StatusCode int `json:"statusCode"`
Message string `json:"message"`
Errors interface{} `json:"errors"`
}
type Response struct {
StatusCode int `json:"statusCode"`
Message string `json:"message"`
Data interface{} `json:"data"`
}
type AuthData struct {
}
type Message struct {
MsgType string `json:"msgType"`
ClientID string `json:"clientID"`
ClientCount int `json:"clientCount"`
ClientsList map[string]string `json:"clientsList"`
Action string `json:"action"`
Message string `json:"message"`
Sender string `json:"sender"`
Private bool `json:"private"`
To []string `json:"to"`
Mentioned bool `json:"mentioned"`
Date time.Time `json:"date"`
}