2022-02-17 10:43:25 +00:00
|
|
|
package model
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
type PersionModel struct {
|
|
|
|
Token string `json:"token"`
|
|
|
|
Ips []string `json:"ips"`
|
2022-02-18 11:06:03 +00:00
|
|
|
CreatedAt time.Time `json:"created_at"`
|
|
|
|
UpdatedAt time.Time `json:"updated_at"`
|
2022-02-17 10:43:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//记录链接状态
|
|
|
|
type ConnectState struct {
|
|
|
|
From string `json:"from"`
|
|
|
|
To string `json:"to"`
|
|
|
|
Type string `json:"type"` //current state 1:ready 2:ok
|
|
|
|
CreatedAt time.Time `json:"created_at"`
|
|
|
|
UUId string `json:"uuid"` //对接标识
|
|
|
|
}
|
2022-02-18 11:06:03 +00:00
|
|
|
type MessageModel struct {
|
|
|
|
Type string `json:"type"`
|
|
|
|
Data interface{} `json:"data"`
|
|
|
|
UUId string `json:"uuid"`
|
|
|
|
}
|