direction
This commit is contained in:
parent
6621887364
commit
efc5b70c42
6
main.go
6
main.go
@ -40,14 +40,14 @@ type Config struct {
|
|||||||
type MsgDirection string
|
type MsgDirection string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Incoming MsgDirection = `incoming`
|
MsgIncoming string = `incoming`
|
||||||
Outgoing MsgDirection = `outgoing`
|
MsgOutgoing string = `outgoing`
|
||||||
)
|
)
|
||||||
|
|
||||||
type ChatWarsMessage struct {
|
type ChatWarsMessage struct {
|
||||||
MsgID64 int64 `json:"msg_id"`
|
MsgID64 int64 `json:"msg_id"`
|
||||||
UserID64 int64 `json:"user_id"`
|
UserID64 int64 `json:"user_id"`
|
||||||
Direction MsgDirection `json:"direction"`
|
Direction string `json:"direction"`
|
||||||
MsgText string `json:"msg"`
|
MsgText string `json:"msg"`
|
||||||
MsgDate int32 `json:"date"`
|
MsgDate int32 `json:"date"`
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user