You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
2.1 KiB
Go
60 lines
2.1 KiB
Go
package mijia_go_sdk
|
|
|
|
// 小米认证授权信息
|
|
type Authorize struct {
|
|
CUserId string `json:"cUserId"`
|
|
Code int `json:"code"`
|
|
DeviceId string `json:"deviceId"`
|
|
Message string `json:"message"`
|
|
SecurityToken string `json:"securityToken"`
|
|
ServiceToken string `json:"serviceToken"`
|
|
Sid string `json:"sid"`
|
|
UserId int64 `json:"userId"`
|
|
}
|
|
|
|
type HomeList struct {
|
|
Id string `json:"id"`
|
|
Name string `json:"name"`
|
|
Bssid string `json:"bssid"`
|
|
Dids []string `json:"dids"`
|
|
TempDids interface{} `json:"temp_dids"`
|
|
Icon string `json:"icon"`
|
|
Shareflag int `json:"shareflag"`
|
|
PermitLevel int `json:"permit_level"`
|
|
Status int `json:"status"`
|
|
Background string `json:"background"`
|
|
SmartRoomBackground string `json:"smart_room_background"`
|
|
Longitude float64 `json:"longitude"`
|
|
Latitude float64 `json:"latitude"`
|
|
CityId int `json:"city_id"`
|
|
Address string `json:"address"`
|
|
CreateTime int `json:"create_time"`
|
|
Roomlist []RoomList
|
|
Uid int64 `json:"uid"`
|
|
AppearHomeList interface{} `json:"appear_home_list"`
|
|
PopupFlag int `json:"popup_flag"`
|
|
PopupTimeStamp int `json:"popup_time_stamp"`
|
|
CarDid string `json:"car_did"`
|
|
}
|
|
type RoomList struct {
|
|
Id string `json:"id"`
|
|
Name string `json:"name"`
|
|
Bssid string `json:"bssid"`
|
|
Parentid string `json:"parentid"`
|
|
Dids []string `json:"dids"`
|
|
Icon string `json:"icon"`
|
|
Background string `json:"background"`
|
|
Shareflag int `json:"shareflag"`
|
|
CreateTime int `json:"create_time"`
|
|
}
|
|
|
|
type Home struct {
|
|
Code int `json:"code"`
|
|
Message string `json:"message"`
|
|
Result struct {
|
|
Homelist []HomeList `json:"homelist"`
|
|
HasMore bool `json:"has_more"`
|
|
MaxId string `json:"max_id"`
|
|
} `json:"result"`
|
|
}
|