This commit is contained in:
MickMake 2022-02-23 09:48:04 +11:00
parent 04b36ed454
commit 3f646bc6c4
1009 changed files with 3090 additions and 4126 deletions

View File

@ -1,6 +1,7 @@
<component name="ProjectCodeStyleConfiguration">
<code_scheme name="Project" version="173">
<GoCodeStyleSettings>
<option name="RUN_GO_FMT_ON_REFORMAT" value="false" />
<option name="LOCAL_PACKAGE_PREFIXES" />
</GoCodeStyleSettings>
</code_scheme>

View File

@ -1,5 +1,5 @@
<component name="ProjectCodeStyleConfiguration">
<state>
<option name="USE_PER_PROJECT_SETTINGS" value="true" />
<option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
</state>
</component>

1184
.idea/workspace.xml generated

File diff suppressed because it is too large Load Diff

View File

@ -22,13 +22,28 @@ So far I have mapped out all the API calls, but now figuring out JSON POST data
It's tricky as their "API" changes regularly.
I've currently mapped out these API EndPoints:
```
+-------------------+-------------------+--------------------+------------+
| AREAS | ENABLED ENDPOINTS | DISABLED ENDPOINTS | COVERAGE % |
+-------------------+-------------------+--------------------+------------+
| AliSmsService | 0 | 1 | 0.0 % |
| AppService | 41 | 533 | 7.7 % |
| MttvScreenService | 0 | 30 | 0.0 % |
| PowerPointService | 0 | 1 | 0.0 % |
| WebAppService | 2 | 187 | 1.1 % |
| WebIscmAppService | 0 | 184 | 0.0 % |
| ---------------- | ---------------- | ----------------- | --------- |
| Total | 43 | 936 | 4.6 % |
+-------------------+-------------------+--------------------+------------+
```
## What does it do?
This GoLang package does several things:
1. Update a GitHub repo with SunGrow PV data, (provide full revision history for any changes made to the SunGrow PV).
2. Update a Google sheet with SunGrow PV data.
3. Provides ready access to all API calls via a simple get/put framework.
1. Provides ready access to all API calls via a simple get/put framework.
2. Update a GitHub repo with SunGrow PV data, (provide full revision history for any changes made to the SunGrow PV).
3. Update a Google sheet with SunGrow PV data.
To be added:
1. MQTT client to push to things like [HomeAssistant](https://www.home-assistant.io/).

View File

@ -1,9 +1,47 @@
./bin/GoSungrow api get WebAppService.showPSView '{"ps_id":"1129147"}'
./bin/GoSungrow api get checkUnitStatus
./bin/GoSungrow api get energyTrend
./bin/GoSungrow api get findPsType '{"ps_id":"1129147"}'
./bin/GoSungrow api get getPsDetailWithPsType '{"ps_id":"1129147"}'
./bin/GoSungrow api get getPowerStatistics '{"ps_id":"1129147"}'
./bin/GoSungrow api get getAllPowerDeviceSetName
./bin/GoSungrow api get getAreaList
./bin/GoSungrow api get getCloudList
./bin/GoSungrow api get getConfigList
./bin/GoSungrow api get getDeviceInfo
./bin/GoSungrow api get getDeviceList
./bin/GoSungrow api get getDeviceModelInfoList
./bin/GoSungrow api get getDevicePoints '{"point_id":"13003"}'
./bin/GoSungrow api get getDeviceTypeInfoList
./bin/GoSungrow api get getDeviceTypeList
./bin/GoSungrow api get getInvertDataList
./bin/GoSungrow api get getOrgListByName
./bin/GoSungrow api get getPowerDevicePointNames '{"device_type":"1"}'
./bin/GoSungrow api get getPowerDevicePointNames '{"device_type":"2"}'
./bin/GoSungrow api get getPowerDevicePointNames '{"device_type":"7"}'
./bin/GoSungrow api get getPowerPictureList
./bin/GoSungrow api get getPowerStatistics '{"ps_id":"1129147"}'
./bin/GoSungrow api get getPsDetail
./bin/GoSungrow api get getPsDetail '{"ps_id":"1129147"}'
./bin/GoSungrow api get getPsDetailWithPsType '{"ps_id":"1129147"}'
./bin/GoSungrow api get getPsHealthState '{"ps_id":"1129147"}'
./bin/GoSungrow api get getPsList
./bin/GoSungrow api get WebAppService.showPSView '{"ps_id":"1129147"}'
./bin/GoSungrow api get getPsListByName
./bin/GoSungrow api get getPsListStaticData '{"ps_id":"1129147"}'
./bin/GoSungrow api get getPsReport '{"report_type":"1","date_id":"20220201","date_type":"1","ps_id":"1129147"}'
./bin/GoSungrow api get getPsReport '{"report_type":"1","date_id":"20220201","date_type":"2","ps_id":"1129147"}'
./bin/GoSungrow api get getPsReport '{"report_type":"1","date_id":"20220201","date_type":"3","ps_id":"1129147"}'
./bin/GoSungrow api get getPsUser
./bin/GoSungrow api get getPsWeatherList '{"ps_id":"1129147"}'
./bin/GoSungrow api get getTemplateList
./bin/GoSungrow api get getUserList
./bin/GoSungrow api get getUserPsOrderList
./bin/GoSungrow api get powerDevicePointList
./bin/GoSungrow api get queryAllPsIdAndName '{"ps_id":"1129147"}'
./bin/GoSungrow api get queryDeviceList
./bin/GoSungrow api get queryDeviceListByUserId '{"ps_id":"1129147"}'
./bin/GoSungrow api get queryDeviceListForApp '{"ps_id":"1129147"}'
./bin/GoSungrow api get queryUserList
./bin/GoSungrow api get reportList '{"ps_id":"1129147","report_type":"1"}'
./bin/GoSungrow api get reportList '{"ps_id":"1129147","report_type":"2"}'
./bin/GoSungrow api get reportList '{"ps_id":"1129147","report_type":"3"}'
./bin/GoSungrow api get reportList '{"ps_id":"1129147","report_type":"4"}'
./bin/GoSungrow api login

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -41,6 +41,10 @@ func (as AreaStruct) ListEndpoints() {
}
}
func (as AreaStruct) CountEndpoints() int {
return as.EndPoints.CountEndpoints()
func (as AreaStruct) CountEnabled() int {
return len(as.EndPoints.GetEnabled())
}
func (as AreaStruct) CountDisabled() int {
return len(as.EndPoints.GetDisabled())
}

View File

@ -84,12 +84,33 @@ func (an Areas) ListAreas() {
fmt.Println("Listing all endpoint areas:")
table := tablewriter.NewWriter(os.Stdout)
table.SetHeader([]string{"Areas", "EndPoints"})
table.SetHeader([]string{"Areas", "Enabled EndPoints", "Disabled EndPoints", "Coverage %"})
table.SetBorder(true)
te := 0
td := 0
for _, area := range an.SortAreas() {
size := fmt.Sprintf("%d", an[area].CountEndpoints())
table.Append([]string{string(area), size})
e := an[area].CountEnabled()
d := an[area].CountDisabled()
p := (float64(e) / float64(d)) * 100
table.Append([]string{
string(area),
fmt.Sprintf("%d", e),
fmt.Sprintf("%d", d),
fmt.Sprintf("%.1f %%", p),
})
te += e
td += d
}
table.Append([]string{"----------------", "----------------", "-----------------", "---------"})
p := (float64(te) / float64(td)) * 100
table.Append([]string{
"Total",
fmt.Sprintf("%d", te),
fmt.Sprintf("%d", td),
fmt.Sprintf("%.1f %%", p),
})
table.Render()
}
}

View File

@ -28,45 +28,45 @@ func (ps TypeEndPoints) Exists(name EndPointName) error {
func (ps TypeEndPoints) String() string {
var ret string
for range Only.Once {
s := ps.SortEndPoints()
if len(s) == 0 {
break
}
buf := new(bytes.Buffer)
table := tablewriter.NewWriter(buf)
table.SetHeader([]string{"EndPoint", "Url"})
table.SetBorder(true)
for _, endpoint := range s {
if ps[endpoint].GetName() == NullEndPoint {
continue
}
u := ps[endpoint].GetUrl().String()
table.Append([]string{
string(endpoint),
u,
})
}
table.Render()
ret += fmt.Sprintf("# Implemented endpoints\n")
ret += buf.String()
buf = new(bytes.Buffer)
table = tablewriter.NewWriter(buf)
table.SetHeader([]string{"EndPoint", "Url"})
table.SetBorder(true)
for _, endpoint := range s {
if ps[endpoint].GetName() != NullEndPoint {
continue
ep := ps.GetEnabled()
if len(ep) > 0 {
table := tablewriter.NewWriter(buf)
table.SetHeader([]string{"EndPoint", "Url"})
table.SetBorder(true)
for _, endpoint := range ep {
u := endpoint.GetUrl().String()
table.Append([]string{
string(endpoint.GetName()),
u,
})
}
table.Append([]string{
string(endpoint),
"",
})
table.Render()
ret += fmt.Sprintf("# Implemented endpoints\n")
ret += buf.String()
}
table.Render()
ret += fmt.Sprintf("# Non-implemented endpoints\n")
ret += buf.String()
dp := ps.GetDisabled()
if len(dp) > 0 {
buf = new(bytes.Buffer)
table := tablewriter.NewWriter(buf)
table.SetHeader([]string{"EndPoint", "Url"})
table.SetBorder(true)
for _, endpoint := range dp {
u := endpoint.GetUrl().String()
table.Append([]string{
string(endpoint.GetName()),
u,
})
}
table.Render()
ret += fmt.Sprintf("# Non-implemented endpoints\n")
ret += buf.String()
}
ret += fmt.Sprintf("\n# Implemented: %d Non-implemented: %d\n", len(ep), len(dp))
}
return ret
}
@ -91,8 +91,43 @@ func (ps *TypeEndPoints) SortEndPoints() []EndPointName {
return ret
}
func (ps *TypeEndPoints) CountEndpoints() int {
return len(*ps)
//func (ps *TypeEndPoints) CountEndpoints() int {
// return len(*ps)
//}
func (ps *TypeEndPoints) GetEnabled() TypeEndPoints {
ret := make(TypeEndPoints)
for range Only.Once {
s := ps.SortEndPoints()
if len(s) == 0 {
break
}
for _, endpoint := range s {
if (*ps)[endpoint].IsDisabled() {
continue
}
ret[(*ps)[endpoint].GetName()] = (*ps)[endpoint]
}
}
return ret
}
func (ps *TypeEndPoints) GetDisabled() TypeEndPoints {
ret := make(TypeEndPoints)
for range Only.Once {
s := ps.SortEndPoints()
if len(s) == 0 {
break
}
for _, endpoint := range s {
if (*ps)[endpoint].IsDisabled() {
ret[(*ps)[endpoint].GetName()] = (*ps)[endpoint]
}
}
}
return ret
}
func (ps *TypeEndPoints) GetEndPoint(name EndPointName) EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

View File

@ -116,11 +116,11 @@ func (e EndPoint) IsError() bool {
}
func (e EndPoint) ReadFile() error {
return e.FileRead("", &e.Response)
return e.FileRead("", &e.Response.ResultData)
}
func (e EndPoint) WriteFile() error {
return e.FileWrite("", e.Response, api.DefaultFileMode)
return e.FileWrite("", e.Response.ResultData, api.DefaultFileMode)
}
func (e EndPoint) SetRequest(ref interface{}) api.EndPoint {

Some files were not shown because too many files have changed in this diff Show More