1
0
mirror of https://github.com/IceWhaleTech/CasaOS.git synced 2025-07-06 23:37:26 +02:00
Files
CasaOS/model/person.go

48 lines
1.2 KiB
Go
Raw Normal View History

2022-02-17 18:43:25 +08:00
package model
import "time"
type PersionModel struct {
Token string `json:"token"`
Ips []string `json:"ips"`
2022-02-18 19:06:03 +08:00
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
2022-02-17 18:43:25 +08: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 19:06:03 +08:00
type MessageModel struct {
Type string `json:"type"`
Data interface{} `json:"data"`
UUId string `json:"uuid"`
2022-02-28 14:14:39 +08:00
From string `json:"from"`
To string `json:"to"`
2022-02-28 14:14:39 +08:00
}
type TranFileModel struct {
Hash string `json:"hash"` //Verify current fragment integrity
Length int `json:"length"`
Index int `json:"index"`
2022-02-28 14:14:39 +08:00
}
//需要获取文件详情
type FileDetailModel struct {
Path string `json:"path"`
}
//返回文件详情
2022-02-28 14:14:39 +08:00
type FileSummaryModel struct {
Hash string `json:"hash"` //Verify file
Name string `json:"name"`
BlockSize int `json:"block_size"`
Length int `json:"length"`
Size int64 `json:"size"`
2022-03-18 11:13:07 +08:00
Message string `json:"message"`
2022-02-18 19:06:03 +08:00
}