red.go 569B

1234567891011121314151617181920212223
  1. package fapiao
  2. func Red(seller_taxpayer_num string, callback_url string, order_sn string) (routerAddress string, postData map[string]interface{}) {
  3. routerAddress = "/tax-api/invoice/red/quick/v1"
  4. invoices := make([]map[string]interface{}, 1)
  5. invoice := make(map[string]interface{})
  6. invoice["seller_taxpayer_num"] = seller_taxpayer_num
  7. invoice["callback_url"] = callback_url
  8. invoice["order_sn"] = order_sn
  9. invoice["apply_reason"] = "2"
  10. invoices[0] = invoice
  11. postData = map[string]interface{}{
  12. "invoices": invoices,
  13. }
  14. return routerAddress, postData
  15. }