2 Commits

Author SHA1 Message Date
cd8bbde1af 修改 API 上傳的回傳值 2023-08-27 23:27:10 +08:00
36885d23ce 修正 CaseSvcRecord 拼錯 2023-08-27 23:08:13 +08:00
2 changed files with 22 additions and 27 deletions

View File

@@ -26,12 +26,12 @@ type FeeApplyUpload struct {
// ApplyInfo 是 FeeApplyUpload 的單筆資料
type ApplyInfo struct {
WriteoffYYYYMM string `json:"writeoff_yyyymm"` // 支審年月
TransNo string `json:"trans_no"` // 交易序號
Records int `json:"records"` // 服務記錄筆數
Amount int `json:"amount"` // 服務記錄金額
Cases int `json:"cases"` // 申請個案數
CaseSvceRecords []CaseSvceRecord `json:"case_svc_records"` // 個案服務記錄
WriteoffYYYYMM string `json:"writeoff_yyyymm"` // 支審年月
TransNo string `json:"trans_no"` // 交易序號
Records int `json:"records"` // 服務記錄筆數
Amount int `json:"amount"` // 服務記錄金額
Cases int `json:"cases"` // 申請個案數
CaseSvcRecords []CaseSvcRecord `json:"case_svc_records"` // 個案服務記錄
}
// CaseSvcRecord 是個案服務記錄
@@ -97,10 +97,10 @@ type ObjDelUpload struct {
// SvcDelInfo 是刪除資料
type SvcDelInfo struct {
WriteoffYYYYMM string `json:"writeoff_yyyymm"` // 支審年月
TransNo string `json:"trans_no"` // 交易序號
Records int `json:"records"` // 服務記錄筆數
CaseSvceRecords []CaseSvceRecord `json:"case_svc_records"` // 個案服務記錄
WriteoffYYYYMM string `json:"writeoff_yyyymm"` // 支審年月
TransNo string `json:"trans_no"` // 交易序號
Records int `json:"records"` // 服務記錄筆數
CaseSvcRecords []CaseSvcRecord `json:"case_svc_records"` // 個案服務記錄
}
// AppCompletionNoticeUpload 是 AppCompletionNotice 的傳送資料

View File

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