Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommonResp ¶
func (CommonResp) GetCode ¶
func (v CommonResp) GetCode() int
func (CommonResp) GetMessage ¶
func (v CommonResp) GetMessage() string
type EquipmentInfo ¶
type EquipmentInfo struct {
Id string `json:"id"`
EquipmentType int `json:"equipmentType"`
HouseCode string `json:"houseCode"`
MeterOnOff int `json:"meterOnOff"`
NoPowerOff int `json:"noPowerOff"`
MeterAddr string `json:"meterAddr"`
MeterInstallAddr string `json:"meterInstallAddr"`
Surplus string `json:"surplus"` // 余量
SurplusAmount string `json:"surplusAmout"` // 余额
UnitPrice float64 `json:"unitPrice"` // 单价
OperateTime string `json:"operateTime"`
LastReadTime string `json:"lastReadTime"` // 上次读表时间
}
type GetLatestAPKResp ¶
type GetLatestAPKResp struct {
CommonResp
Content struct {
Source int `json:"source"`
IsToUpdate int `json:"isToUpdate"`
VersionNumber int `json:"versionNumber"`
ApkAddress string `json:"apkAdress"`
CreateTime string `json:"createTime"`
} `json:"content"`
}
func GetLatestAPK ¶
func GetLatestAPK(apples ...bool) *GetLatestAPKResp
type HouseInfoContent ¶
type HouseInfoContent struct {
Id string `json:"id"`
OrderContractId string `json:"orderContractId"`
OrderContractDetailId string `json:"orderContractDetailId"`
HouseName string `json:"houseName"`
HouseCode string `json:"houseCode"`
CustomerInfoId string `json:"customerInfoId"`
CustomerName string `json:"customerName"`
CustomerPhone string `json:"customerPhone"`
List []*EquipmentInfo `json:"list"`
}
type HouseInfoResp ¶
type HouseInfoResp struct {
CommonResp
Content []*HouseInfoContent `json:"content"`
}
func GetHouseInfo ¶
func GetHouseInfo(accessToken string) *HouseInfoResp
type LoginResp ¶
type LoginResp struct {
CommonResp
Content struct {
Id string `json:"id"`
Type int `json:"type"`
IsRepairman int `json:"isRepairman"`
UserName string `json:"userName"`
AccessToken string `json:"access_token"`
TokenType string `json:"token_type"`
ExpiresIn int `json:"expires_in"`
RefreshToken string `json:"refresh_token"`
Scope string `json:"scope"`
} `json:"content"`
}
type LogoutResp ¶
type LogoutResp struct {
CommonResp
Content string `json:"content"`
}
func Logout ¶
func Logout(accessToken string) *LogoutResp
type SendCodeReq ¶
type SendCodeResp ¶
type SendCodeResp struct {
CommonResp
Content string `json:"content"`
}
func SendCode ¶
func SendCode(req SendCodeReq) *SendCodeResp
type SimpleEquipmentInfo ¶ added in v0.0.2
Click to show internal directories.
Click to hide internal directories.