mirror of
https://github.com/MickMake/GoSungrow.git
synced 2025-04-11 13:20:28 +02:00
v2.3.1 - Refactor.
This commit is contained in:
parent
5c1ee9886a
commit
bf084b95dd
108
.idea/workspace.xml
generated
108
.idea/workspace.xml
generated
@ -6,6 +6,8 @@
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="76adadc9-ae71-42a6-82a1-66dbc8ecb14c" name="Changes" comment="">
|
||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/cmd/cmd_data.go" beforeDir="false" afterPath="$PROJECT_DIR$/cmd/cmd_data.go" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/cmd/cmd_info.go" beforeDir="false" afterPath="$PROJECT_DIR$/cmd/cmd_info.go" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/iSolarCloud/AliSmsService/msgDownwardStatusReceipt/data.go" beforeDir="false" afterPath="$PROJECT_DIR$/iSolarCloud/AliSmsService/msgDownwardStatusReceipt/data.go" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/iSolarCloud/AliSmsService/msgDownwardStatusReceipt/struct.go" beforeDir="false" afterPath="$PROJECT_DIR$/iSolarCloud/AliSmsService/msgDownwardStatusReceipt/struct.go" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/iSolarCloud/AppService/acceptPsSharing/data.go" beforeDir="false" afterPath="$PROJECT_DIR$/iSolarCloud/AppService/acceptPsSharing/data.go" afterDir="false" />
|
||||
@ -1216,6 +1218,8 @@
|
||||
<change beforePath="$PROJECT_DIR$/iSolarCloud/MttvScreenService/saveOrUpdatePosition/struct.go" beforeDir="false" afterPath="$PROJECT_DIR$/iSolarCloud/MttvScreenService/saveOrUpdatePosition/struct.go" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/iSolarCloud/MttvScreenService/updateBuildProgressing/data.go" beforeDir="false" afterPath="$PROJECT_DIR$/iSolarCloud/MttvScreenService/updateBuildProgressing/data.go" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/iSolarCloud/MttvScreenService/updateBuildProgressing/struct.go" beforeDir="false" afterPath="$PROJECT_DIR$/iSolarCloud/MttvScreenService/updateBuildProgressing/struct.go" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/iSolarCloud/NullArea/NullEndpoint/data.go" beforeDir="false" afterPath="$PROJECT_DIR$/iSolarCloud/NullArea/NullEndpoint/data.go" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/iSolarCloud/NullArea/NullEndpoint/struct.go" beforeDir="false" afterPath="$PROJECT_DIR$/iSolarCloud/NullArea/NullEndpoint/struct.go" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/iSolarCloud/PowerPointService/queryPointDataTopOne/data.go" beforeDir="false" afterPath="$PROJECT_DIR$/iSolarCloud/PowerPointService/queryPointDataTopOne/data.go" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/iSolarCloud/PowerPointService/queryPointDataTopOne/struct.go" beforeDir="false" afterPath="$PROJECT_DIR$/iSolarCloud/PowerPointService/queryPointDataTopOne/struct.go" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/iSolarCloud/WebAppService/addMaterial/data.go" beforeDir="false" afterPath="$PROJECT_DIR$/iSolarCloud/WebAppService/addMaterial/data.go" afterDir="false" />
|
||||
@ -1961,15 +1965,15 @@
|
||||
<change beforePath="$PROJECT_DIR$/iSolarCloud/WebIscmAppService/viewDeviceParameter/data.go" beforeDir="false" afterPath="$PROJECT_DIR$/iSolarCloud/WebIscmAppService/viewDeviceParameter/data.go" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/iSolarCloud/WebIscmAppService/viewDeviceParameter/struct.go" beforeDir="false" afterPath="$PROJECT_DIR$/iSolarCloud/WebIscmAppService/viewDeviceParameter/struct.go" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/iSolarCloud/WebIscmAppService/workFlowImplementStep/data.go" beforeDir="false" afterPath="$PROJECT_DIR$/iSolarCloud/WebIscmAppService/workFlowImplementStep/data.go" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/iSolarCloud/WebIscmAppService/workFlowImplementStep/struct.go" beforeDir="false" afterPath="$PROJECT_DIR$/iSolarCloud/WebIscmAppService/workFlowImplementStep/struct.go" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/iSolarCloud/WebIscmAppService/workFlowIsStart/data.go" beforeDir="false" afterPath="$PROJECT_DIR$/iSolarCloud/WebIscmAppService/workFlowIsStart/data.go" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/iSolarCloud/WebIscmAppService/workFlowIsStart/struct.go" beforeDir="false" afterPath="$PROJECT_DIR$/iSolarCloud/WebIscmAppService/workFlowIsStart/struct.go" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/iSolarCloud/WebIscmAppService/workFlowTransferStep/data.go" beforeDir="false" afterPath="$PROJECT_DIR$/iSolarCloud/WebIscmAppService/workFlowTransferStep/data.go" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/iSolarCloud/WebIscmAppService/workFlowTransferStep/struct.go" beforeDir="false" afterPath="$PROJECT_DIR$/iSolarCloud/WebIscmAppService/workFlowTransferStep/struct.go" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/iSolarCloud/api/interface_endpoint.go" beforeDir="false" afterPath="$PROJECT_DIR$/iSolarCloud/api/interface_endpoint.go" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/iSolarCloud/api/datetime.go" beforeDir="false" afterPath="$PROJECT_DIR$/iSolarCloud/api/datetime.go" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/iSolarCloud/api/nullEndpoint/data.go" beforeDir="false" afterPath="$PROJECT_DIR$/iSolarCloud/api/nullEndpoint/data.go" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/iSolarCloud/api/nullEndpoint/struct.go" beforeDir="false" afterPath="$PROJECT_DIR$/iSolarCloud/api/nullEndpoint/struct.go" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/iSolarCloud/api/struct_data.go" beforeDir="false" afterPath="$PROJECT_DIR$/iSolarCloud/api/struct_data.go" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/iSolarCloud/highlevel.go" beforeDir="false" afterPath="$PROJECT_DIR$/iSolarCloud/highlevel.go" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/iSolarCloud/z" beforeDir="false" afterPath="$PROJECT_DIR$/iSolarCloud/z" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
@ -2040,7 +2044,7 @@
|
||||
<configuration name="GoSungrow" type="GoApplicationRunConfiguration" factoryName="Go Application">
|
||||
<module name="GoSungrow" />
|
||||
<working_directory value="$PROJECT_DIR$" />
|
||||
<parameters value="data get all getPowerChargeSettingInfo" />
|
||||
<parameters value="data get getHouseholdStoragePsReport '' 202210" />
|
||||
<kind value="PACKAGE" />
|
||||
<package value="GoSungrow" />
|
||||
<directory value="$PROJECT_DIR$" />
|
||||
@ -2086,7 +2090,7 @@
|
||||
</line-breakpoint>
|
||||
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
|
||||
<url>file://$PROJECT_DIR$/iSolarCloud/AppService/queryDeviceList/data.go</url>
|
||||
<line>209</line>
|
||||
<line>202</line>
|
||||
<option name="timeStamp" value="202" />
|
||||
</line-breakpoint>
|
||||
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
|
||||
@ -2096,7 +2100,7 @@
|
||||
</line-breakpoint>
|
||||
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
|
||||
<url>file://$PROJECT_DIR$/iSolarCloud/AppService/queryMutiPointDataList/struct.go</url>
|
||||
<line>308</line>
|
||||
<line>306</line>
|
||||
<option name="timeStamp" value="256" />
|
||||
</line-breakpoint>
|
||||
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
|
||||
@ -2124,11 +2128,6 @@
|
||||
<line>312</line>
|
||||
<option name="timeStamp" value="446" />
|
||||
</line-breakpoint>
|
||||
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
|
||||
<url>file://$PROJECT_DIR$/iSolarCloud/AppService/queryDeviceRealTimeDataByPsKeys/data.go</url>
|
||||
<line>147</line>
|
||||
<option name="timeStamp" value="479" />
|
||||
</line-breakpoint>
|
||||
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
|
||||
<url>file://$PROJECT_DIR$/iSolarCloud/highlevel.go</url>
|
||||
<line>353</line>
|
||||
@ -2146,7 +2145,7 @@
|
||||
</line-breakpoint>
|
||||
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
|
||||
<url>file://$PROJECT_DIR$/iSolarCloud/AppService/getPowerDevicePointInfo/data.go</url>
|
||||
<line>66</line>
|
||||
<line>62</line>
|
||||
<option name="timeStamp" value="820" />
|
||||
</line-breakpoint>
|
||||
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
|
||||
@ -2221,7 +2220,7 @@
|
||||
</line-breakpoint>
|
||||
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
|
||||
<url>file://$PROJECT_DIR$/iSolarCloud/AppService/getTemplateList/struct.go</url>
|
||||
<line>170</line>
|
||||
<line>168</line>
|
||||
<option name="timeStamp" value="934" />
|
||||
</line-breakpoint>
|
||||
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
|
||||
@ -2259,11 +2258,6 @@
|
||||
<line>872</line>
|
||||
<option name="timeStamp" value="1237" />
|
||||
</line-breakpoint>
|
||||
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
|
||||
<url>file://$PROJECT_DIR$/iSolarCloud/api/datetime.go</url>
|
||||
<line>128</line>
|
||||
<option name="timeStamp" value="1331" />
|
||||
</line-breakpoint>
|
||||
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
|
||||
<url>file://$PROJECT_DIR$/iSolarCloud/api/file.go</url>
|
||||
<line>155</line>
|
||||
@ -2279,11 +2273,6 @@
|
||||
<line>321</line>
|
||||
<option name="timeStamp" value="1355" />
|
||||
</line-breakpoint>
|
||||
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
|
||||
<url>file://$PROJECT_DIR$/iSolarCloud/AppService/getHouseholdStoragePsReport/data.go</url>
|
||||
<line>379</line>
|
||||
<option name="timeStamp" value="1411" />
|
||||
</line-breakpoint>
|
||||
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
|
||||
<url>file://$PROJECT_DIR$/cmd/cmd_mqtt.go</url>
|
||||
<line>369</line>
|
||||
@ -2314,11 +2303,6 @@
|
||||
<line>936</line>
|
||||
<option name="timeStamp" value="1603" />
|
||||
</line-breakpoint>
|
||||
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
|
||||
<url>file://$PROJECT_DIR$/iSolarCloud/AppService/getPsList/data.go</url>
|
||||
<line>378</line>
|
||||
<option name="timeStamp" value="1649" />
|
||||
</line-breakpoint>
|
||||
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
|
||||
<url>file://$PROJECT_DIR$/iSolarCloud/api/struct_data.go</url>
|
||||
<line>373</line>
|
||||
@ -2326,7 +2310,7 @@
|
||||
</line-breakpoint>
|
||||
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
|
||||
<url>file://$PROJECT_DIR$/iSolarCloud/AppService/getPsDetailWithPsType/data.go</url>
|
||||
<line>320</line>
|
||||
<line>180</line>
|
||||
<option name="timeStamp" value="1676" />
|
||||
</line-breakpoint>
|
||||
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
|
||||
@ -2336,7 +2320,7 @@
|
||||
</line-breakpoint>
|
||||
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
|
||||
<url>file://$PROJECT_DIR$/iSolarCloud/AppService/getPsDetailWithPsType/data.go</url>
|
||||
<line>328</line>
|
||||
<line>188</line>
|
||||
<option name="timeStamp" value="1721" />
|
||||
</line-breakpoint>
|
||||
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
|
||||
@ -2356,43 +2340,73 @@
|
||||
</line-breakpoint>
|
||||
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
|
||||
<url>file://$PROJECT_DIR$/iSolarCloud/AppService/getPsList/data.go</url>
|
||||
<line>292</line>
|
||||
<line>285</line>
|
||||
<option name="timeStamp" value="1745" />
|
||||
</line-breakpoint>
|
||||
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
|
||||
<url>file://$PROJECT_DIR$/iSolarCloud/highlevel.go</url>
|
||||
<line>1403</line>
|
||||
<option name="timeStamp" value="1746" />
|
||||
</line-breakpoint>
|
||||
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
|
||||
<url>file://$PROJECT_DIR$/iSolarCloud/highlevel.go</url>
|
||||
<line>1304</line>
|
||||
<option name="timeStamp" value="1755" />
|
||||
</line-breakpoint>
|
||||
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
|
||||
<url>file://$PROJECT_DIR$/iSolarCloud/AppService/getDeviceList/data.go</url>
|
||||
<line>293</line>
|
||||
<line>286</line>
|
||||
<option name="timeStamp" value="1758" />
|
||||
</line-breakpoint>
|
||||
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
|
||||
<url>file://$PROJECT_DIR$/iSolarCloud/AppService/getIncomeSettingInfos/data.go</url>
|
||||
<line>111</line>
|
||||
<line>103</line>
|
||||
<option name="timeStamp" value="1759" />
|
||||
</line-breakpoint>
|
||||
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
|
||||
<url>file://$PROJECT_DIR$/iSolarCloud/AppService/getIncomeSettingInfos/data.go</url>
|
||||
<line>103</line>
|
||||
<line>95</line>
|
||||
<option name="timeStamp" value="1760" />
|
||||
</line-breakpoint>
|
||||
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
|
||||
<url>file://$PROJECT_DIR$/iSolarCloud/AppService/getKpiInfo/data.go</url>
|
||||
<line>86</line>
|
||||
<line>81</line>
|
||||
<option name="timeStamp" value="1770" />
|
||||
</line-breakpoint>
|
||||
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
|
||||
<url>file://$PROJECT_DIR$/iSolarCloud/highlevel.go</url>
|
||||
<line>1613</line>
|
||||
<option name="timeStamp" value="1776" />
|
||||
<line>1691</line>
|
||||
<option name="timeStamp" value="1778" />
|
||||
</line-breakpoint>
|
||||
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
|
||||
<url>file://$PROJECT_DIR$/iSolarCloud/api/datetime.go</url>
|
||||
<line>85</line>
|
||||
<option name="timeStamp" value="1796" />
|
||||
</line-breakpoint>
|
||||
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
|
||||
<url>file://$PROJECT_DIR$/iSolarCloud/api/struct_data.go</url>
|
||||
<line>255</line>
|
||||
<option name="timeStamp" value="1798" />
|
||||
</line-breakpoint>
|
||||
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
|
||||
<url>file://$PROJECT_DIR$/iSolarCloud/api/struct_data.go</url>
|
||||
<line>261</line>
|
||||
<option name="timeStamp" value="1799" />
|
||||
</line-breakpoint>
|
||||
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
|
||||
<url>file://$PROJECT_DIR$/iSolarCloud/AppService/getHouseholdStoragePsReport/data.go</url>
|
||||
<line>366</line>
|
||||
<option name="timeStamp" value="1803" />
|
||||
</line-breakpoint>
|
||||
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
|
||||
<url>file://$PROJECT_DIR$/iSolarCloud/highlevel.go</url>
|
||||
<line>1701</line>
|
||||
<option name="timeStamp" value="1804" />
|
||||
</line-breakpoint>
|
||||
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
|
||||
<url>file://$PROJECT_DIR$/iSolarCloud/highlevel.go</url>
|
||||
<line>1238</line>
|
||||
<option name="timeStamp" value="1824" />
|
||||
</line-breakpoint>
|
||||
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
|
||||
<url>file://$PROJECT_DIR$/iSolarCloud/highlevel.go</url>
|
||||
<line>1331</line>
|
||||
<option name="timeStamp" value="1830" />
|
||||
</line-breakpoint>
|
||||
<line-breakpoint enabled="true" type="DlvLineBreakpoint">
|
||||
<url>file://$PROJECT_DIR$/iSolarCloud/highlevel.go</url>
|
||||
<line>1351</line>
|
||||
<option name="timeStamp" value="1832" />
|
||||
</line-breakpoint>
|
||||
</breakpoints>
|
||||
<default-breakpoints>
|
||||
|
330
cmd/cmd_data.go
330
cmd/cmd_data.go
@ -8,6 +8,7 @@ import (
|
||||
"github.com/MickMake/GoUnify/cmdConfig"
|
||||
"github.com/MickMake/GoUnify/cmdHelp"
|
||||
"github.com/spf13/cobra"
|
||||
"strings"
|
||||
)
|
||||
|
||||
|
||||
@ -55,14 +56,14 @@ func (c *CmdData) AttachCommand(cmd *cobra.Command) *cobra.Command {
|
||||
}
|
||||
return nil
|
||||
},
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
return cmd.Help()
|
||||
},
|
||||
Args: cobra.MinimumNArgs(1),
|
||||
Args: cobra.MinimumNArgs(0),
|
||||
}
|
||||
cmd.AddCommand(c.SelfCmd)
|
||||
c.SelfCmd.Example = cmdHelp.PrintExamples(c.SelfCmd, "get <endpoint>", "put <endpoint>")
|
||||
|
||||
|
||||
// ********************************************************************************
|
||||
var cmdDataGet = &cobra.Command{
|
||||
Use: "get",
|
||||
@ -83,19 +84,11 @@ func (c *CmdData) AttachCommand(cmd *cobra.Command) *cobra.Command {
|
||||
}
|
||||
return nil
|
||||
},
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
return cmd.Help()
|
||||
},
|
||||
Args: cobra.MinimumNArgs(1),
|
||||
RunE: c.GetEndpoints,
|
||||
Args: cobra.MinimumNArgs(0),
|
||||
}
|
||||
c.SelfCmd.AddCommand(cmdDataGet)
|
||||
cmdDataGet.Example = cmdHelp.PrintExamples(cmdDataGet, "[area.]<endpoint>")
|
||||
c.AttachCmdDataStats(cmdDataGet)
|
||||
c.AttachCmdDataTemplate(cmdDataGet)
|
||||
c.AttachCmdDataPoints(cmdDataGet)
|
||||
c.AttachCmdDataRealTime(cmdDataGet)
|
||||
c.AttachCmdDataPsDetails(cmdDataGet)
|
||||
c.AttachCmdDataAll(cmdDataGet)
|
||||
|
||||
// ********************************************************************************
|
||||
var cmdDataRaw = &cobra.Command{
|
||||
@ -117,19 +110,11 @@ func (c *CmdData) AttachCommand(cmd *cobra.Command) *cobra.Command {
|
||||
}
|
||||
return nil
|
||||
},
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
return cmd.Help()
|
||||
},
|
||||
Args: cobra.MinimumNArgs(1),
|
||||
RunE: c.GetEndpoints,
|
||||
Args: cobra.MinimumNArgs(0),
|
||||
}
|
||||
c.SelfCmd.AddCommand(cmdDataRaw)
|
||||
cmdDataRaw.Example = cmdHelp.PrintExamples(cmdDataRaw, "[area.]<endpoint>")
|
||||
c.AttachCmdDataStats(cmdDataRaw)
|
||||
c.AttachCmdDataTemplate(cmdDataRaw)
|
||||
c.AttachCmdDataPoints(cmdDataRaw)
|
||||
c.AttachCmdDataRealTime(cmdDataRaw)
|
||||
c.AttachCmdDataPsDetails(cmdDataRaw)
|
||||
c.AttachCmdDataAll(cmdDataRaw)
|
||||
|
||||
// ********************************************************************************
|
||||
var cmdDataJson = &cobra.Command{
|
||||
@ -151,19 +136,11 @@ func (c *CmdData) AttachCommand(cmd *cobra.Command) *cobra.Command {
|
||||
}
|
||||
return nil
|
||||
},
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
return cmd.Help()
|
||||
},
|
||||
Args: cobra.MinimumNArgs(1),
|
||||
RunE: c.GetEndpoints,
|
||||
Args: cobra.MinimumNArgs(0),
|
||||
}
|
||||
c.SelfCmd.AddCommand(cmdDataJson)
|
||||
cmdDataJson.Example = cmdHelp.PrintExamples(cmdDataJson, "[area.]<endpoint>")
|
||||
c.AttachCmdDataStats(cmdDataJson)
|
||||
c.AttachCmdDataTemplate(cmdDataJson)
|
||||
c.AttachCmdDataPoints(cmdDataJson)
|
||||
c.AttachCmdDataRealTime(cmdDataJson)
|
||||
c.AttachCmdDataPsDetails(cmdDataJson)
|
||||
c.AttachCmdDataAll(cmdDataJson)
|
||||
|
||||
// ********************************************************************************
|
||||
var cmdDataCsv = &cobra.Command{
|
||||
@ -185,19 +162,11 @@ func (c *CmdData) AttachCommand(cmd *cobra.Command) *cobra.Command {
|
||||
}
|
||||
return nil
|
||||
},
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
return cmd.Help()
|
||||
},
|
||||
Args: cobra.MinimumNArgs(1),
|
||||
RunE: c.GetEndpoints,
|
||||
Args: cobra.MinimumNArgs(0),
|
||||
}
|
||||
c.SelfCmd.AddCommand(cmdDataCsv)
|
||||
cmdDataCsv.Example = cmdHelp.PrintExamples(cmdDataCsv, "[area.]<endpoint>")
|
||||
c.AttachCmdDataStats(cmdDataCsv)
|
||||
c.AttachCmdDataTemplate(cmdDataCsv)
|
||||
c.AttachCmdDataPoints(cmdDataCsv)
|
||||
c.AttachCmdDataRealTime(cmdDataCsv)
|
||||
c.AttachCmdDataPsDetails(cmdDataCsv)
|
||||
c.AttachCmdDataAll(cmdDataCsv)
|
||||
|
||||
// ********************************************************************************
|
||||
var cmdDataGraph = &cobra.Command{
|
||||
@ -219,262 +188,53 @@ func (c *CmdData) AttachCommand(cmd *cobra.Command) *cobra.Command {
|
||||
}
|
||||
return nil
|
||||
},
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
return cmd.Help()
|
||||
},
|
||||
Args: cobra.MinimumNArgs(1),
|
||||
RunE: c.GetEndpoints,
|
||||
Args: cobra.MinimumNArgs(0),
|
||||
}
|
||||
c.SelfCmd.AddCommand(cmdDataGraph)
|
||||
cmdDataGraph.Example = cmdHelp.PrintExamples(cmdDataGraph, "[area.]<endpoint> ''")
|
||||
c.AttachCmdDataStats(cmdDataGraph)
|
||||
c.AttachCmdDataTemplate(cmdDataGraph)
|
||||
c.AttachCmdDataPoints(cmdDataGraph)
|
||||
c.AttachCmdDataRealTime(cmdDataGraph)
|
||||
// c.AttachCmdDataAll(cmdDataGraph)
|
||||
|
||||
// ********************************************************************************
|
||||
var cmdDataPut = &cobra.Command{
|
||||
Use: "put",
|
||||
Aliases: []string{"set", "write"},
|
||||
Annotations: map[string]string{"group": "Data"},
|
||||
Short: fmt.Sprintf("Set high-level data on iSolarCloud"),
|
||||
Long: fmt.Sprintf("Set high-level data on iSolarCloud"),
|
||||
DisableFlagParsing: false,
|
||||
DisableFlagsInUseLine: false,
|
||||
PreRunE: func(cmd *cobra.Command, args []string) error {
|
||||
cmds.Error = cmds.ProcessArgs(cmd, args)
|
||||
if cmds.Error != nil {
|
||||
return cmds.Error
|
||||
}
|
||||
cmds.Error = cmds.SunGrowArgs(cmd, args)
|
||||
if cmds.Error != nil {
|
||||
return cmds.Error
|
||||
}
|
||||
return nil
|
||||
},
|
||||
Run: cmds.CmdDataPut,
|
||||
Args: cobra.ExactArgs(2),
|
||||
}
|
||||
c.SelfCmd.AddCommand(cmdDataPut)
|
||||
cmdDataPut.Example = cmdHelp.PrintExamples(cmdDataPut, "[area.]<endpoint> <value>")
|
||||
}
|
||||
return c.SelfCmd
|
||||
}
|
||||
|
||||
|
||||
func (ca *Cmds) CmdDataPut(_ *cobra.Command, _ []string) {
|
||||
func SplitArg(arg string) []string {
|
||||
var ret []string
|
||||
for range Only.Once {
|
||||
fmt.Println("Not yet implemented.")
|
||||
// ca.Api.SunGrow.OutputType.SetFile()
|
||||
// args = cmdConfig.FillArray(2, args)
|
||||
// c.Error = SunGrow.PutHighLevel(args[0], args[1])
|
||||
ret = []string{arg}
|
||||
for _, s := range []string{ ",", "/", " "} {
|
||||
if strings.Contains(arg, s) {
|
||||
ret = strings.Split(arg, s)
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
return ret
|
||||
}
|
||||
|
||||
func (c *CmdData) GetEndpoints(cmd *cobra.Command, args []string) error {
|
||||
// endpoints string, psIds string, date string
|
||||
for range Only.Once {
|
||||
_ = cmds.SetOutputType(cmd)
|
||||
args = cmdConfig.FillArray(3, args)
|
||||
|
||||
func (c *CmdData) AttachCmdDataTemplate(cmd *cobra.Command) *cobra.Command {
|
||||
// ********************************************************************************
|
||||
var c2 = &cobra.Command{
|
||||
Use: "template <template_id> <date> [filter]",
|
||||
Annotations: map[string]string{"group": "Data"},
|
||||
Short: fmt.Sprintf("Get data from report template."),
|
||||
Long: fmt.Sprintf("Get data from report template."),
|
||||
DisableFlagParsing: false,
|
||||
DisableFlagsInUseLine: false,
|
||||
PreRunE: func(cmd *cobra.Command, args []string) error {
|
||||
cmds.Error = cmds.ProcessArgs(cmd, args)
|
||||
if cmds.Error != nil {
|
||||
return cmds.Error
|
||||
var e []string
|
||||
if args[0] != "" {
|
||||
e = SplitArg(args[0])
|
||||
}
|
||||
|
||||
var p []api.Integer
|
||||
for _, psId := range SplitArg(args[1]) {
|
||||
if psId == "" {
|
||||
continue
|
||||
}
|
||||
cmds.Error = cmds.SunGrowArgs(cmd, args)
|
||||
if cmds.Error != nil {
|
||||
return cmds.Error
|
||||
}
|
||||
return nil
|
||||
},
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
_ = cmds.SetOutputType(cmd)
|
||||
args = cmdConfig.FillArray(3, args)
|
||||
return cmds.Api.SunGrow.GetTemplateData(args[0], args[1], args[2])
|
||||
},
|
||||
Args: cobra.RangeArgs(2, 3),
|
||||
p = append(p, api.SetIntegerString(psId))
|
||||
}
|
||||
|
||||
d := api.SetDateTimeString(args[2])
|
||||
|
||||
c.Error = cmds.Api.SunGrow.GetEndpoints(e, p, *d)
|
||||
}
|
||||
cmd.AddCommand(c2)
|
||||
c2.Example = cmdHelp.PrintExamples(c2, "8042 20220212", "8042 20220212 '{\"search_string\":\"p83106\",\"min_left_axis\":-6000,\"max_left_axis\":12000}'")
|
||||
|
||||
return cmd
|
||||
}
|
||||
|
||||
func (c *CmdData) AttachCmdDataStats(cmd *cobra.Command) *cobra.Command {
|
||||
// ********************************************************************************
|
||||
var c2 = &cobra.Command{
|
||||
Use: "stats",
|
||||
Aliases: []string{},
|
||||
Annotations: map[string]string{"group": "Data"},
|
||||
Short: fmt.Sprintf("Get current inverter stats, (last 5 minutes)."),
|
||||
Long: fmt.Sprintf("Get current inverter stats, (last 5 minutes)."),
|
||||
DisableFlagParsing: false,
|
||||
DisableFlagsInUseLine: false,
|
||||
PreRunE: func(cmd *cobra.Command, args []string) error {
|
||||
cmds.Error = cmds.ProcessArgs(cmd, args)
|
||||
if cmds.Error != nil {
|
||||
return cmds.Error
|
||||
}
|
||||
cmds.Error = cmds.SunGrowArgs(cmd, args)
|
||||
if cmds.Error != nil {
|
||||
return cmds.Error
|
||||
}
|
||||
return nil
|
||||
},
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
_ = cmds.SetOutputType(cmd)
|
||||
return cmds.Api.SunGrow.PrintCurrentStats()
|
||||
},
|
||||
Args: cobra.ExactArgs(0),
|
||||
}
|
||||
cmd.AddCommand(c2)
|
||||
c2.Example = cmdHelp.PrintExamples(c2, "")
|
||||
|
||||
return cmd
|
||||
}
|
||||
|
||||
func (c *CmdData) AttachCmdDataPoints(cmd *cobra.Command) *cobra.Command {
|
||||
// ********************************************************************************
|
||||
var cmdDataPoints = &cobra.Command{
|
||||
Use: "points <date> <device_id.point_id> ...",
|
||||
Aliases: []string{},
|
||||
Annotations: map[string]string{"group": "Data"},
|
||||
Short: fmt.Sprintf("Get points data for a specific date."),
|
||||
Long: fmt.Sprintf("Get points data for a specific date."),
|
||||
DisableFlagParsing: false,
|
||||
DisableFlagsInUseLine: false,
|
||||
PreRunE: func(cmd *cobra.Command, args []string) error {
|
||||
cmds.Error = cmds.ProcessArgs(cmd, args)
|
||||
if cmds.Error != nil {
|
||||
return cmds.Error
|
||||
}
|
||||
cmds.Error = cmds.SunGrowArgs(cmd, args)
|
||||
if cmds.Error != nil {
|
||||
return cmds.Error
|
||||
}
|
||||
return nil
|
||||
},
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
_ = cmds.SetOutputType(cmd)
|
||||
return cmds.Api.SunGrow.GetPointData(args[0], api.CreatePoints(args[1:]))
|
||||
},
|
||||
Args: cobra.MinimumNArgs(2),
|
||||
}
|
||||
cmd.AddCommand(cmdDataPoints)
|
||||
cmdDataPoints.Example = cmdHelp.PrintExamples(cmdDataPoints, "20220202 1129147.p13019 1129147.p83106")
|
||||
|
||||
return cmd
|
||||
}
|
||||
|
||||
func (c *CmdData) AttachCmdDataRealTime(cmd *cobra.Command) *cobra.Command {
|
||||
// ********************************************************************************
|
||||
var c2 = &cobra.Command{
|
||||
Use: "real-time",
|
||||
Aliases: []string{"realtime"},
|
||||
Annotations: map[string]string{"group": "Data"},
|
||||
Short: fmt.Sprintf("Get iSolarCloud real-time data."),
|
||||
Long: fmt.Sprintf("Get iSolarCloud real-time data."),
|
||||
DisableFlagParsing: false,
|
||||
DisableFlagsInUseLine: false,
|
||||
PreRunE: func(cmd *cobra.Command, args []string) error {
|
||||
cmds.Error = cmds.ProcessArgs(cmd, args)
|
||||
if cmds.Error != nil {
|
||||
return cmds.Error
|
||||
}
|
||||
cmds.Error = cmds.SunGrowArgs(cmd, args)
|
||||
if cmds.Error != nil {
|
||||
return cmds.Error
|
||||
}
|
||||
return nil
|
||||
},
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
_ = cmds.SetOutputType(cmd)
|
||||
args = cmdConfig.FillArray(1, args)
|
||||
return cmds.Api.SunGrow.GetRealTimeData(args[0])
|
||||
},
|
||||
Args: cobra.RangeArgs(0, 1),
|
||||
}
|
||||
cmd.AddCommand(c2)
|
||||
c2.Example = cmdHelp.PrintExamples(c2, "")
|
||||
|
||||
return cmd
|
||||
}
|
||||
|
||||
func (c *CmdData) AttachCmdDataPsDetails(cmd *cobra.Command) *cobra.Command {
|
||||
// ********************************************************************************
|
||||
var c2 = &cobra.Command{
|
||||
Use: "psdetails",
|
||||
Aliases: []string{"ps-details"},
|
||||
Annotations: map[string]string{"group": "Data"},
|
||||
Short: fmt.Sprintf("Get iSolarCloud ps details."),
|
||||
Long: fmt.Sprintf("Get iSolarCloud ps details."),
|
||||
DisableFlagParsing: false,
|
||||
DisableFlagsInUseLine: false,
|
||||
PreRunE: func(cmd *cobra.Command, args []string) error {
|
||||
cmds.Error = cmds.ProcessArgs(cmd, args)
|
||||
if cmds.Error != nil {
|
||||
return cmds.Error
|
||||
}
|
||||
cmds.Error = cmds.SunGrowArgs(cmd, args)
|
||||
if cmds.Error != nil {
|
||||
return cmds.Error
|
||||
}
|
||||
return nil
|
||||
},
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
_ = cmds.SetOutputType(cmd)
|
||||
pids, err := cmds.Api.SunGrow.StringToPids(args...)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return cmds.Api.SunGrow.CmdDataPsDetail(pids...)
|
||||
},
|
||||
Args: cobra.MinimumNArgs(0),
|
||||
}
|
||||
cmd.AddCommand(c2)
|
||||
c2.Example = cmdHelp.PrintExamples(c2, "")
|
||||
|
||||
return cmd
|
||||
}
|
||||
|
||||
func (c *CmdData) AttachCmdDataAll(cmd *cobra.Command) *cobra.Command {
|
||||
// ********************************************************************************
|
||||
var c2 = &cobra.Command{
|
||||
Use: "all",
|
||||
Aliases: []string{},
|
||||
Annotations: map[string]string{"group": "Data"},
|
||||
Short: fmt.Sprintf("Get all iSolarCloud ps details."),
|
||||
Long: fmt.Sprintf("Get all iSolarCloud ps details."),
|
||||
DisableFlagParsing: false,
|
||||
DisableFlagsInUseLine: false,
|
||||
PreRunE: func(cmd *cobra.Command, args []string) error {
|
||||
cmds.Error = cmds.ProcessArgs(cmd, args)
|
||||
if cmds.Error != nil {
|
||||
return cmds.Error
|
||||
}
|
||||
cmds.Error = cmds.SunGrowArgs(cmd, args)
|
||||
if cmds.Error != nil {
|
||||
return cmds.Error
|
||||
}
|
||||
return nil
|
||||
},
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
_ = cmds.SetOutputType(cmd)
|
||||
// pids, err := cmds.Api.SunGrow.StringToPids(args...)
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
return cmds.Api.SunGrow.GetEndpoints(args)
|
||||
},
|
||||
Args: cobra.MinimumNArgs(0),
|
||||
}
|
||||
cmd.AddCommand(c2)
|
||||
c2.Example = cmdHelp.PrintExamples(c2, "")
|
||||
|
||||
return cmd
|
||||
return c.Error
|
||||
}
|
||||
|
179
cmd/cmd_info.go
179
cmd/cmd_info.go
@ -1,6 +1,7 @@
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"fmt"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
@ -221,6 +222,13 @@ func (c *CmdInfo) AttachCmdInfo(cmd *cobra.Command) *cobra.Command {
|
||||
c.AttachCmdInfoTemplates(cmd)
|
||||
c.AttachCmdInfoTemplatePoints(cmd)
|
||||
c.AttachCmdInfoGetDevicePoints(cmd)
|
||||
|
||||
c.AttachCmdInfoStats(cmd)
|
||||
c.AttachCmdInfoTemplate(cmd)
|
||||
c.AttachCmdInfoPoints(cmd)
|
||||
c.AttachCmdInfoRealTime(cmd)
|
||||
c.AttachCmdInfoPsDetails(cmd)
|
||||
|
||||
}
|
||||
return cmd
|
||||
}
|
||||
@ -511,3 +519,174 @@ func (c *CmdInfo) AttachCmdInfoGetDevicePoints(cmd *cobra.Command) *cobra.Comman
|
||||
|
||||
return cmd
|
||||
}
|
||||
|
||||
|
||||
func (c *CmdInfo) AttachCmdInfoTemplate(cmd *cobra.Command) *cobra.Command {
|
||||
// ********************************************************************************
|
||||
var c2 = &cobra.Command{
|
||||
Use: "template <template_id> <date> [filter]",
|
||||
Annotations: map[string]string{"group": "Data"},
|
||||
Short: fmt.Sprintf("Get data from report template."),
|
||||
Long: fmt.Sprintf("Get data from report template."),
|
||||
DisableFlagParsing: false,
|
||||
DisableFlagsInUseLine: false,
|
||||
PreRunE: func(cmd *cobra.Command, args []string) error {
|
||||
cmds.Error = cmds.ProcessArgs(cmd, args)
|
||||
if cmds.Error != nil {
|
||||
return cmds.Error
|
||||
}
|
||||
cmds.Error = cmds.SunGrowArgs(cmd, args)
|
||||
if cmds.Error != nil {
|
||||
return cmds.Error
|
||||
}
|
||||
return nil
|
||||
},
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
_ = cmds.SetOutputType(cmd)
|
||||
args = cmdConfig.FillArray(3, args)
|
||||
return cmds.Api.SunGrow.GetTemplateData(args[0], args[1], args[2])
|
||||
},
|
||||
Args: cobra.RangeArgs(2, 3),
|
||||
}
|
||||
cmd.AddCommand(c2)
|
||||
c2.Example = cmdHelp.PrintExamples(c2, "8042 20220212", "8042 20220212 '{\"search_string\":\"p83106\",\"min_left_axis\":-6000,\"max_left_axis\":12000}'")
|
||||
|
||||
return cmd
|
||||
}
|
||||
|
||||
func (c *CmdInfo) AttachCmdInfoStats(cmd *cobra.Command) *cobra.Command {
|
||||
// ********************************************************************************
|
||||
var c2 = &cobra.Command{
|
||||
Use: "stats",
|
||||
Aliases: []string{},
|
||||
Annotations: map[string]string{"group": "Data"},
|
||||
Short: fmt.Sprintf("Get current inverter stats, (last 5 minutes)."),
|
||||
Long: fmt.Sprintf("Get current inverter stats, (last 5 minutes)."),
|
||||
DisableFlagParsing: false,
|
||||
DisableFlagsInUseLine: false,
|
||||
PreRunE: func(cmd *cobra.Command, args []string) error {
|
||||
cmds.Error = cmds.ProcessArgs(cmd, args)
|
||||
if cmds.Error != nil {
|
||||
return cmds.Error
|
||||
}
|
||||
cmds.Error = cmds.SunGrowArgs(cmd, args)
|
||||
if cmds.Error != nil {
|
||||
return cmds.Error
|
||||
}
|
||||
return nil
|
||||
},
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
_ = cmds.SetOutputType(cmd)
|
||||
return cmds.Api.SunGrow.PrintCurrentStats()
|
||||
},
|
||||
Args: cobra.ExactArgs(0),
|
||||
}
|
||||
cmd.AddCommand(c2)
|
||||
c2.Example = cmdHelp.PrintExamples(c2, "")
|
||||
|
||||
return cmd
|
||||
}
|
||||
|
||||
func (c *CmdInfo) AttachCmdInfoPoints(cmd *cobra.Command) *cobra.Command {
|
||||
// ********************************************************************************
|
||||
var cmdDataPoints = &cobra.Command{
|
||||
Use: "points <date> <device_id.point_id> ...",
|
||||
Aliases: []string{},
|
||||
Annotations: map[string]string{"group": "Data"},
|
||||
Short: fmt.Sprintf("Get points data for a specific date."),
|
||||
Long: fmt.Sprintf("Get points data for a specific date."),
|
||||
DisableFlagParsing: false,
|
||||
DisableFlagsInUseLine: false,
|
||||
PreRunE: func(cmd *cobra.Command, args []string) error {
|
||||
cmds.Error = cmds.ProcessArgs(cmd, args)
|
||||
if cmds.Error != nil {
|
||||
return cmds.Error
|
||||
}
|
||||
cmds.Error = cmds.SunGrowArgs(cmd, args)
|
||||
if cmds.Error != nil {
|
||||
return cmds.Error
|
||||
}
|
||||
return nil
|
||||
},
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
_ = cmds.SetOutputType(cmd)
|
||||
return cmds.Api.SunGrow.GetPointData(args[0], api.CreatePoints(args[1:]))
|
||||
},
|
||||
Args: cobra.MinimumNArgs(2),
|
||||
}
|
||||
cmd.AddCommand(cmdDataPoints)
|
||||
cmdDataPoints.Example = cmdHelp.PrintExamples(cmdDataPoints, "20220202 1129147.p13019 1129147.p83106")
|
||||
|
||||
return cmd
|
||||
}
|
||||
|
||||
func (c *CmdInfo) AttachCmdInfoRealTime(cmd *cobra.Command) *cobra.Command {
|
||||
// ********************************************************************************
|
||||
var c2 = &cobra.Command{
|
||||
Use: "real-time",
|
||||
Aliases: []string{"realtime"},
|
||||
Annotations: map[string]string{"group": "Data"},
|
||||
Short: fmt.Sprintf("Get iSolarCloud real-time data."),
|
||||
Long: fmt.Sprintf("Get iSolarCloud real-time data."),
|
||||
DisableFlagParsing: false,
|
||||
DisableFlagsInUseLine: false,
|
||||
PreRunE: func(cmd *cobra.Command, args []string) error {
|
||||
cmds.Error = cmds.ProcessArgs(cmd, args)
|
||||
if cmds.Error != nil {
|
||||
return cmds.Error
|
||||
}
|
||||
cmds.Error = cmds.SunGrowArgs(cmd, args)
|
||||
if cmds.Error != nil {
|
||||
return cmds.Error
|
||||
}
|
||||
return nil
|
||||
},
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
_ = cmds.SetOutputType(cmd)
|
||||
args = cmdConfig.FillArray(1, args)
|
||||
return cmds.Api.SunGrow.GetRealTimeData(args[0])
|
||||
},
|
||||
Args: cobra.RangeArgs(0, 1),
|
||||
}
|
||||
cmd.AddCommand(c2)
|
||||
c2.Example = cmdHelp.PrintExamples(c2, "")
|
||||
|
||||
return cmd
|
||||
}
|
||||
|
||||
func (c *CmdInfo) AttachCmdInfoPsDetails(cmd *cobra.Command) *cobra.Command {
|
||||
// ********************************************************************************
|
||||
var c2 = &cobra.Command{
|
||||
Use: "psdetails",
|
||||
Aliases: []string{"ps-details"},
|
||||
Annotations: map[string]string{"group": "Data"},
|
||||
Short: fmt.Sprintf("Get iSolarCloud ps details."),
|
||||
Long: fmt.Sprintf("Get iSolarCloud ps details."),
|
||||
DisableFlagParsing: false,
|
||||
DisableFlagsInUseLine: false,
|
||||
PreRunE: func(cmd *cobra.Command, args []string) error {
|
||||
cmds.Error = cmds.ProcessArgs(cmd, args)
|
||||
if cmds.Error != nil {
|
||||
return cmds.Error
|
||||
}
|
||||
cmds.Error = cmds.SunGrowArgs(cmd, args)
|
||||
if cmds.Error != nil {
|
||||
return cmds.Error
|
||||
}
|
||||
return nil
|
||||
},
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
_ = cmds.SetOutputType(cmd)
|
||||
pids, err := cmds.Api.SunGrow.StringToPids(args...)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return cmds.Api.SunGrow.CmdDataPsDetail(pids...)
|
||||
},
|
||||
Args: cobra.MinimumNArgs(0),
|
||||
}
|
||||
cmd.AddCommand(c2)
|
||||
c2.Example = cmdHelp.PrintExamples(c2, "")
|
||||
|
||||
return cmd
|
||||
}
|
||||
|
@ -1,12 +1,9 @@
|
||||
package msgDownwardStatusReceipt
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package msgDownwardStatusReceipt
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package acceptPsSharing
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -65,7 +62,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package acceptPsSharing
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package activateEmail
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -65,7 +62,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package activateEmail
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package addConfig
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package addConfig
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package addDeviceRepair
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package addDeviceRepair
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package addDeviceToStructureForHousehold
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package addDeviceToStructureForHousehold
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package addDeviceToStructureForHouseholdByPsIdS
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package addDeviceToStructureForHouseholdByPsIdS
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package addFault
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package addFault
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package addFaultOrder
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package addFaultOrder
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package addFaultPlan
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package addFaultPlan
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package addFaultRepairSteps
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package addFaultRepairSteps
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package addHouseholdEvaluation
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package addHouseholdEvaluation
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package addHouseholdLeaveMessage
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package addHouseholdLeaveMessage
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package addHouseholdOpinionFeedback
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package addHouseholdOpinionFeedback
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package addHouseholdWorkOrder
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package addHouseholdWorkOrder
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package addOnDutyInfo
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package addOnDutyInfo
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package addOperRule
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package addOperRule
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package addOrDelPsStructure
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package addOrDelPsStructure
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package addOrderStep
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package addOrderStep
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package addPowerStationForHousehold
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package addPowerStationForHousehold
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package addPowerStationInfo
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package addPowerStationInfo
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package addReportConfigEmail
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package addReportConfigEmail
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package addSysAdvancedParam
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package addSysAdvancedParam
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package addSysOrgNew
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package addSysOrgNew
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package aliPayAppTest
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package aliPayAppTest
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package auditOperRule
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package auditOperRule
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package batchAddStationBySn
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package batchAddStationBySn
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package batchImportSN
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package batchImportSN
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package batchInsertUserAndOrg
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package batchInsertUserAndOrg
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package batchModifyDevicesInfoAndPropertis
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package batchModifyDevicesInfoAndPropertis
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package batchProcessPlantReport
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package batchProcessPlantReport
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package batchUpdateDeviceSim
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package batchUpdateDeviceSim
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package batchUpdateUserIsAgreeGdpr
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package batchUpdateUserIsAgreeGdpr
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package boundMobilePhone
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package boundMobilePhone
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package boundUserMail
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package boundUserMail
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package caculateDeviceInputDiscrete
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package caculateDeviceInputDiscrete
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package calculateDeviceDiscrete
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package calculateDeviceDiscrete
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package calculateInitialCompensationData
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package calculateInitialCompensationData
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package cancelDeliverMail
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package cancelDeliverMail
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package cancelOrderScan
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package cancelOrderScan
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package cancelParamSetTask
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package cancelParamSetTask
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package cancelPsSharing
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package cancelPsSharing
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package cancelRechargeOrder
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package cancelRechargeOrder
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package changRechargeOrderToCancel
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package changRechargeOrderToCancel
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package changeHouseholdUser2Installer
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package changeHouseholdUser2Installer
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package changeRemoteParam
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package changeRemoteParam
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package checkDealerOrgCode
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package checkDealerOrgCode
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package checkDevSnIsBelongsToUser
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
@ -5,14 +5,12 @@
|
||||
package checkDevSnIsBelongsToUser
|
||||
|
||||
import (
|
||||
"sort"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
@ -1,12 +1,9 @@
|
||||
package checkInverterResult
|
||||
|
||||
import (
|
||||
"time"
|
||||
"GoSungrow/iSolarCloud/api"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"GoSungrow/iSolarCloud/api/output"
|
||||
"github.com/MickMake/GoUnify/Only"
|
||||
"GoSungrow/iSolarCloud/api/apiReflect"
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
@ -66,7 +63,7 @@ func (e *EndPoint) GetData() api.DataMap {
|
||||
entries := api.NewDataMap()
|
||||
|
||||
for range Only.Once {
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", time.Time{})
|
||||
entries.StructToPoints(e.Response.ResultData, apiReflect.GetName("", *e), "system", api.NewDateTime(""))
|
||||
}
|
||||
|
||||
return entries
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user