43 lines
1.2 KiB
Go
43 lines
1.2 KiB
Go
|
|
package model
|
||
|
|
|
||
|
|
import "time"
|
||
|
|
|
||
|
|
// OTA 固件升级记录
|
||
|
|
type OTA struct {
|
||
|
|
ID int `json:"id"`
|
||
|
|
VerCode int `json:"verCode"`
|
||
|
|
VerName string `json:"verName"`
|
||
|
|
URL string `json:"url"`
|
||
|
|
MD5 string `json:"md5"`
|
||
|
|
Force int `json:"force"`
|
||
|
|
Desc *string `json:"desc,omitempty"`
|
||
|
|
Model *string `json:"model,omitempty"`
|
||
|
|
HW int `json:"hw"`
|
||
|
|
Target int `json:"target"`
|
||
|
|
Beta int `json:"beta"`
|
||
|
|
PawVerCode int `json:"pawVerCode"`
|
||
|
|
PawVerName string `json:"pawVerName"`
|
||
|
|
PawURL string `json:"pawUrl"`
|
||
|
|
PawMD5 string `json:"pawMd5"`
|
||
|
|
StartTime *time.Time `json:"startTime,omitempty"`
|
||
|
|
EndTime *time.Time `json:"endTime,omitempty"`
|
||
|
|
Status int `json:"status"`
|
||
|
|
}
|
||
|
|
|
||
|
|
// BlackList OTA 黑名单
|
||
|
|
type BlackList struct {
|
||
|
|
ID int `json:"id"`
|
||
|
|
OTAID int `json:"ota_id"`
|
||
|
|
Mac string `json:"mac"`
|
||
|
|
CreateAt time.Time `json:"create_at"`
|
||
|
|
}
|
||
|
|
|
||
|
|
// OTATargetDevice OTA 定向设备
|
||
|
|
type OTATargetDevice struct {
|
||
|
|
ID int `json:"id"`
|
||
|
|
OTAID int `json:"ota_id"`
|
||
|
|
MacAddr string `json:"mac_addr"`
|
||
|
|
Type int `json:"type"`
|
||
|
|
CreateAt time.Time `json:"create_at"`
|
||
|
|
}
|