This commit is contained in:
2025-07-07 20:11:59 +08:00
parent ab0fdbc447
commit 06e3aa2eb3
2009 changed files with 193082 additions and 0 deletions

189
api/hwy/plant/res.go Normal file
View File

@ -0,0 +1,189 @@
package plant
// 电站详情
type PlantAddRes struct {
Code int `json:"code"`
Message string `json:"message"`
Obj struct {
} `json:"obj"`
Result struct {
Address string `json:"address"`
City string `json:"city"`
CompanyId string `json:"companyId"`
CompanyName string `json:"companyName"`
DipAngle int `json:"dipAngle"`
District string `json:"district"`
Earnings int `json:"earnings"`
Id string `json:"id"`
Kwp int `json:"kwp"`
Latitude string `json:"latitude"`
Longitude string `json:"longitude"`
MonEarnings int `json:"monEarnings"`
MonKwh float64 `json:"monKwh"`
Name string `json:"name"`
NetworkType string `json:"networkType"`
NowKw int `json:"nowKw"`
OrientationAngle int `json:"orientationAngle"`
OwnerId string `json:"ownerId"`
PaymentType string `json:"paymentType"`
PlantContact string `json:"plantContact"`
PlantContactPhone string `json:"plantContactPhone"`
PlantImg string `json:"plantImg"`
PowerPlantType string `json:"powerPlantType"`
Province string `json:"province"`
Remark string `json:"remark"`
ServiceProviderEmail string `json:"serviceProviderEmail"`
ServiceProviderPhone string `json:"serviceProviderPhone"`
Status int `json:"status"`
SubassemblyNumber int `json:"subassemblyNumber"`
SumEarnings int `json:"sumEarnings"`
SumKwh float64 `json:"sumKwh"`
TodayEarnings int `json:"todayEarnings"`
TodayKwh float64 `json:"todayKwh"`
UpdateTime string `json:"updateTime"`
UserName string `json:"userName"`
YearEarnings int `json:"yearEarnings"`
YearKwh int `json:"yearKwh"`
} `json:"result"`
Success bool `json:"success"`
Timestamp int `json:"timestamp"`
}
// 电站列表
type PlantListRes struct {
Code int `json:"code"`
Message string `json:"message"`
Obj struct {
} `json:"obj"`
Result struct {
Page struct {
PageIndex int `json:"pageIndex"`
PageSize int `json:"pageSize"`
Total int `json:"total"`
} `json:"page"`
Records []struct {
Address string `json:"address"`
City string `json:"city"`
CompanyId string `json:"companyId"`
CompanyName string `json:"companyName"`
DipAngle int `json:"dipAngle"`
District string `json:"district"`
Id string `json:"id"`
Kwp float64 `json:"kwp"`
Latitude string `json:"latitude"`
Longitude string `json:"longitude"`
MonKwh float64 `json:"monKwh"`
Name string `json:"name"`
NetworkTime string `json:"networkTime"`
NetworkType string `json:"networkType"`
NowKw float64 `json:"nowKw"`
OrientationAngle int `json:"orientationAngle"`
OwnerId string `json:"ownerId"`
OwnerName string `json:"ownerName"`
PaymentType string `json:"paymentType"`
PlantContact string `json:"plantContact"`
PlantContactPhone string `json:"plantContactPhone"`
PlantImg string `json:"plantImg"`
PowerPlantType string `json:"powerPlantType"`
Province string `json:"province"`
Remark string `json:"remark"`
ServiceProviderName string `json:"serviceProviderName"`
ServiceProviderPhone string `json:"serviceProviderPhone"`
Status int `json:"status"`
SubassemblyNumber int `json:"subassemblyNumber"`
SumKwh float64 `json:"sumKwh"`
TodayKwh float64 `json:"todayKwh"`
UpdateTime string `json:"updateTime"`
YearKwh float64 `json:"yearKwh"`
} `json:"records"`
Statistics struct {
AlarmNumber int `json:"alarmNumber"`
OfflineNumber int `json:"offlineNumber"`
OnlineNumber int `json:"onlineNumber"`
SumNumber int `json:"sumNumber"`
} `json:"statistics"`
} `json:"result"`
Success bool `json:"success"`
Timestamp int `json:"timestamp"`
}
// 电站实时数据
type RealDataRes struct {
Code int `json:"code"`
Message string `json:"message"`
Obj struct {
} `json:"obj"`
Result struct {
NowKw int `json:"nowKw"`
PowerUnit string `json:"powerUnit"`
Time string `json:"time"`
} `json:"result"`
Success bool `json:"success"`
Timestamp int `json:"timestamp"`
}
// 电站日统计信息
type DayStaticRes struct {
Code int `json:"code"`
Message string `json:"message"`
Obj struct {
} `json:"obj"`
Result []struct {
Earnings int `json:"earnings"`
EarningsUnit string `json:"earningsUnit"`
Kwh int `json:"kwh"`
KwhUnit string `json:"kwhUnit"`
Time string `json:"time"`
} `json:"result"`
Success bool `json:"success"`
Timestamp int `json:"timestamp"`
}
// 电站月统计信息
type MonthStaticRes struct {
Code int `json:"code"`
Message string `json:"message"`
Obj struct {
} `json:"obj"`
Result []struct {
Earnings int `json:"earnings"`
EarningsUnit string `json:"earningsUnit"`
Kwh int `json:"kwh"`
KwhUnit string `json:"kwhUnit"`
Time string `json:"time"`
} `json:"result"`
Success bool `json:"success"`
Timestamp int `json:"timestamp"`
}
// 电站年统计信息
type YearStaticRes struct {
Code int `json:"code"`
Message string `json:"message"`
Obj struct {
} `json:"obj"`
Result []struct {
Earnings int `json:"earnings"`
EarningsUnit string `json:"earningsUnit"`
Kwh int `json:"kwh"`
KwhUnit string `json:"kwhUnit"`
Time string `json:"time"`
} `json:"result"`
Success bool `json:"success"`
Timestamp int `json:"timestamp"`
}
// 电站历史记录
type HistoryStaticRes struct {
Code int `json:"code"`
Message string `json:"message"`
Obj struct {
} `json:"obj"`
Result []struct {
NowKw int `json:"nowKw"`
PowerUnit string `json:"powerUnit"`
Time string `json:"time"`
} `json:"result"`
Success bool `json:"success"`
Timestamp int `json:"timestamp"`
}