修改 API 上傳的回傳值

This commit is contained in:
dennis 2023-08-27 23:27:10 +08:00
parent 36885d23ce
commit cd8bbde1af

View File

@ -134,13 +134,8 @@ func (f *FeeAuditUtils) NewRequest(data []byte) WriteoffRequest {
} }
// SendFeeApply 傳送服務記錄申報 // SendFeeApply 傳送服務記錄申報
func (f *FeeAuditUtils) SendFeeApply(writeoffRequest WriteoffRequest) (feeApplyResult FeeApplyResult, err error) { func (f *FeeAuditUtils) SendFeeApply(writeoffRequest WriteoffRequest) (writeoffResponse WriteoffResponse, feeApplyResult FeeApplyResult, err error) {
//uploadData, err := json.Marshal(&feeApply) writeoffResponse, err = f.httpsPost("FeeApply", writeoffRequest)
//if err != nil {
// return
//}
writeoffResponse, err := f.httpsPost("FeeApply", writeoffRequest)
if err != nil { if err != nil {
return return
} }
@ -153,22 +148,22 @@ func (f *FeeAuditUtils) SendFeeApply(writeoffRequest WriteoffRequest) (feeApplyR
} }
// SendObjDel 傳送服務紀錄刪除 // SendObjDel 傳送服務紀錄刪除
func (f *FeeAuditUtils) SendObjDel(writeoffRequest WriteoffRequest) (err error) { func (f *FeeAuditUtils) SendObjDel(writeoffRequest WriteoffRequest) (writeoffResponse WriteoffResponse, err error) {
_, err = f.httpsPost("ObjDel", writeoffRequest) writeoffResponse, err = f.httpsPost("ObjDel", writeoffRequest)
return return
} }
// SendAppCompletionNotice 傳送申報確認通知 // SendAppCompletionNotice 傳送申報確認通知
func (f *FeeAuditUtils) SendAppCompletionNotice(writeoffRequest WriteoffRequest) (err error) { func (f *FeeAuditUtils) SendAppCompletionNotice(writeoffRequest WriteoffRequest) (writeoffResponse WriteoffResponse, err error) {
_, err = f.httpsPost("appCompletionNotice", writeoffRequest) writeoffResponse, err = f.httpsPost("appCompletionNotice", writeoffRequest)
return return
} }
// SendAppResultQuery 傳送「服務單位各分案審核狀態查詢」或「分案審核明細查詢」 // SendAppResultQuery 傳送「服務單位各分案審核狀態查詢」或「分案審核明細查詢」
func (f *FeeAuditUtils) SendAppResultQuery(writeoffRequest WriteoffRequest) (appResultQueryResult AppResultQueryResult, err error) { func (f *FeeAuditUtils) SendAppResultQuery(writeoffRequest WriteoffRequest) (writeoffResponse WriteoffResponse, appResultQueryResult AppResultQueryResult, err error) {
writeoffResponse, err := f.httpsPost("appResultQuery", writeoffRequest) writeoffResponse, err = f.httpsPost("appResultQuery", writeoffRequest)
if err != nil { if err != nil {
return return
} }
@ -181,15 +176,15 @@ func (f *FeeAuditUtils) SendAppResultQuery(writeoffRequest WriteoffRequest) (app
} }
// SendAppCancel 傳送撤回服務記錄 // SendAppCancel 傳送撤回服務記錄
func (f *FeeAuditUtils) SendAppCancel(writeoffRequest WriteoffRequest) (err error) { func (f *FeeAuditUtils) SendAppCancel(writeoffRequest WriteoffRequest) (writeoffResponse WriteoffResponse, err error) {
_, err = f.httpsPost("appCancel", writeoffRequest) writeoffResponse, err = f.httpsPost("appCancel", writeoffRequest)
return return
} }
// SendCancelResultResponse 傳送取消交易單處理結果回報 // SendCancelResultResponse 傳送取消交易單處理結果回報
func (f *FeeAuditUtils) SendCancelResultResponse(writeoffRequest WriteoffRequest) (err error) { func (f *FeeAuditUtils) SendCancelResultResponse(writeoffRequest WriteoffRequest) (writeoffResponse WriteoffResponse, err error) {
_, err = f.httpsPost("CancelResultResponse", writeoffRequest) writeoffResponse, err = f.httpsPost("CancelResultResponse", writeoffRequest)
return return
} }