Skip to content

Commit

Permalink
updated summary struct
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronSaikovski committed Feb 14, 2024
1 parent 481b0aa commit a2068c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 0 additions & 2 deletions cmd/gogoodwe/powerstation/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ func dataTokenJSON(SemsResponseData *types.LoginResponse) ([]byte, error) {
return jsonStr, err
}



// parse json data
func getDataJSON[T interfaces.ISemsDataConstraint](data T) ([]byte, error) {

Expand Down
9 changes: 4 additions & 5 deletions cmd/gogoodwe/types/dailysummarydata.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
package types

type DailySummaryData struct {
Language string `json:"language"`
Function []string `json:"function"`
HasError bool `json:"hasError"`
Msg string `json:"msg"`
Code string `json:"code"`
Language string `json:"language"`
HasError bool `json:"hasError"`
Msg string `json:"msg"`
Code string `json:"code"`
Data struct {
Kpi struct {
MonthGeneration float64 `json:"month_generation"`
Expand Down

0 comments on commit a2068c5

Please sign in to comment.