From f799bd1f979fa50c4dbe2d0f1f3160ae01e880b9 Mon Sep 17 00:00:00 2001 From: Ken Date: Mon, 18 Sep 2023 19:32:12 -0400 Subject: [PATCH] updates --- delegates/homeDelegate.go | 20 ++++++++++---------- delegates/privacyPolicyDelegate.go | 20 ++++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/delegates/homeDelegate.go b/delegates/homeDelegate.go index 94dd86f..d8ddbce 100644 --- a/delegates/homeDelegate.go +++ b/delegates/homeDelegate.go @@ -24,36 +24,36 @@ import ( // AddHome AddHome func (d *MCDelegate) AddHome(a *Home) *ResponseID { - var arrtn ResponseID + var hrrtn ResponseID aJSON, err := json.Marshal(a) if err == nil { aarq, err := d.buildRequest(http.MethodPost, "/rs/home/add", aJSON, adminKey) if err == nil { - aasuc, stat := d.proxy.Do(aarq, &arrtn) - arrtn.Code = int64(stat) + aasuc, stat := d.proxy.Do(aarq, &hrrtn) + hrrtn.Code = int64(stat) d.Log.Debug("suc: ", aasuc) d.Log.Debug("stat: ", stat) } } - d.Log.Debug("rtn: ", arrtn) - return &arrtn + d.Log.Debug("rtn: ", hrrtn) + return &hrrtn } // UpdateHome UpdateHome func (d *MCDelegate) UpdateHome(r *Home) *Response { - var uartn Response + var uhrtn Response aJSON, err := json.Marshal(r) if err == nil { rq, err := d.buildRequest(http.MethodPut, "/rs/home/update", aJSON, adminKey) if err == nil { - usuc, stat := d.proxy.Do(rq, &uartn) - uartn.Code = int64(stat) + usuc, stat := d.proxy.Do(rq, &uhrtn) + uhrtn.Code = int64(stat) d.Log.Debug("suc: ", usuc) d.Log.Debug("stat: ", stat) } } - d.Log.Debug("rtn: ", uartn) - return &uartn + d.Log.Debug("rtn: ", uhrtn) + return &uhrtn } // GetHome GetHome diff --git a/delegates/privacyPolicyDelegate.go b/delegates/privacyPolicyDelegate.go index ee27edd..635accd 100644 --- a/delegates/privacyPolicyDelegate.go +++ b/delegates/privacyPolicyDelegate.go @@ -24,36 +24,36 @@ import ( // AddPrivacyPolicy AddPrivacyPolicy func (d *MCDelegate) AddPrivacyPolicy(a *PrivacyPolicy) *ResponseID { - var arrtn ResponseID + var aprtn ResponseID aJSON, err := json.Marshal(a) if err == nil { aarq, err := d.buildRequest(http.MethodPost, "/rs/privacyPolicy/add", aJSON, adminKey) if err == nil { - aasuc, stat := d.proxy.Do(aarq, &arrtn) - arrtn.Code = int64(stat) + aasuc, stat := d.proxy.Do(aarq, &aprtn) + aprtn.Code = int64(stat) d.Log.Debug("suc: ", aasuc) d.Log.Debug("stat: ", stat) } } - d.Log.Debug("rtn: ", arrtn) - return &arrtn + d.Log.Debug("rtn: ", aprtn) + return &aprtn } // UpdatePrivacyPolicy UpdatePrivacyPolicy func (d *MCDelegate) UpdatePrivacyPolicy(r *PrivacyPolicy) *Response { - var uartn Response + var uprtn Response aJSON, err := json.Marshal(r) if err == nil { rq, err := d.buildRequest(http.MethodPut, "/rs/privacyPolicy/update", aJSON, adminKey) if err == nil { - usuc, stat := d.proxy.Do(rq, &uartn) - uartn.Code = int64(stat) + usuc, stat := d.proxy.Do(rq, &uprtn) + uprtn.Code = int64(stat) d.Log.Debug("suc: ", usuc) d.Log.Debug("stat: ", stat) } } - d.Log.Debug("rtn: ", uartn) - return &uartn + d.Log.Debug("rtn: ", uprtn) + return &uprtn } // GetPrivacyPolicy GetPrivacyPolicy