智慧食堂
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

md_curl_smart_pay.go 8.2 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. package md
  2. type CurlAesDecrypt struct {
  3. AesKey string `json:"aes_key" label:"支付宝开放平台-小程序-接口内容加密-aesKey"`
  4. Content string `json:"content" binding:"required" label:"解密内容"`
  5. }
  6. type SystemOauthTokenReq struct {
  7. Config struct {
  8. AliAppId string `json:"ali_app_id" label:"支付宝开放平台-小程序-appid"`
  9. AliPrivateKey string `json:"ali_private_key" label:"支付宝开放平台-小程序-应用私钥"`
  10. AliPublicKey string `json:"ali_public_key" label:"支付宝开放平台-小程序-支付宝公钥"`
  11. } `json:"config" label:"配置信息"`
  12. Code string `json:"code" binding:"required" label:"授权码"`
  13. }
  14. type CurlAlipayTradeCreateReq struct {
  15. Config struct {
  16. PayAliAppId string `json:"pay_ali_app_id" label:"支付宝开放平台-第三方应用-appid"`
  17. PayAliPrivateKey string `json:"pay_ali_private_key" label:"支付宝开放平台-第三方应用-接口加签-应用私钥"`
  18. PayAliPublicKey string `json:"pay_ali_public_key" label:"支付宝开放平台-第三方应用-接口加签-支付宝公钥"`
  19. } `json:"config" label:"配置信息"`
  20. OpAppId string `json:"op_app_id" label:"小程序支付中,商户实际经营主体的小程序应用的appid,也即最终唤起收银台支付所在的小程序的应用id"`
  21. BuyerId string `json:"buyer_id" binding:"required" label:"买家支付宝用户ID"`
  22. TotalAmount string `json:"total_amount" binding:"required" label:"订单总金额"`
  23. OutTradeNo string `json:"out_trade_no" binding:"required" label:"商户订单号"`
  24. Subject string `json:"subject" binding:"required" label:"订单标题"`
  25. AppAuthToken string `json:"app_auth_token" binding:"required" label:"应用授权token"`
  26. }
  27. type CurlAlipayTradeCreateResp struct {
  28. Code string `json:"code" label:"响应码"`
  29. Msg string `json:"msg" label:"响应消息"`
  30. OutTradeNo string `json:"out_trade_no" label:"商户订单号"`
  31. TradeNo string `json:"trade_no" label:"支付宝交易号"`
  32. }
  33. type CurlAlipayTradeQueryReq struct {
  34. Config struct {
  35. PayAliAppId string `json:"pay_ali_app_id" label:"支付宝开放平台-第三方应用-appid"`
  36. PayAliPrivateKey string `json:"pay_ali_private_key" label:"支付宝开放平台-第三方应用-接口加签-应用私钥"`
  37. PayAliPublicKey string `json:"pay_ali_public_key" label:"支付宝开放平台-第三方应用-接口加签-支付宝公钥"`
  38. } `json:"config" label:"配置信息"`
  39. OutTradeNo string `json:"out_trade_no" label:"商户订单号"`
  40. AppAuthToken string `json:"app_auth_token" binding:"required" label:"应用授权token"`
  41. }
  42. type CurlAlipayTradeQueryResp struct {
  43. Code string `json:"code" label:"响应码"`
  44. Msg string `json:"msg" label:"响应消息"`
  45. OutTradeNo string `json:"out_trade_no" label:"商户订单号"`
  46. TradeNo string `json:"trade_no" label:"支付宝交易号"`
  47. TradeStatus string `json:"trade_status" label:"交易状态:WAIT_BUYER_PAY(交易创建,等待买家付款)、TRADE_CLOSED(未付款交易超时关闭,或支付完成后全额退款)、TRADE_SUCCESS(交易支付成功)、TRADE_FINISHED(交易结束,不可退款)"`
  48. }
  49. type CurlAlipayTradeRefundReq struct {
  50. Config struct {
  51. PayAliAppId string `json:"pay_ali_app_id" label:"支付宝开放平台-第三方应用-appid"`
  52. PayAliPrivateKey string `json:"pay_ali_private_key" label:"支付宝开放平台-第三方应用-接口加签-应用私钥"`
  53. PayAliPublicKey string `json:"pay_ali_public_key" label:"支付宝开放平台-第三方应用-接口加签-支付宝公钥"`
  54. } `json:"config" label:"配置信息"`
  55. OutTradeNo string `json:"out_trade_no" label:"商户订单号"`
  56. RefundAmount string `json:"refund_amount" label:"退款金额"`
  57. RefundReason string `json:"refund_reason" label:"退款原因"`
  58. OutRequestNo string `json:"out_request_no" label:"退款订单号"`
  59. AppAuthToken string `json:"app_auth_token" binding:"required" label:"应用授权token"`
  60. }
  61. type CurlEducateSceneTokenReq struct {
  62. Config struct {
  63. AliAppId string `json:"ali_app_id" label:"支付宝开放平台-小程序-appid"`
  64. AliPrivateKey string `json:"ali_private_key" label:"支付宝开放平台-小程序-应用私钥"`
  65. AliPublicKey string `json:"ali_public_key" label:"支付宝开放平台-小程序-支付宝公钥"`
  66. } `json:"config" label:"配置信息"`
  67. CertNo string `json:"cert_no" label:"身份证号码"`
  68. StudentName string `json:"student_name" label:"姓名"`
  69. OutUserId string `json:"out_user_id" label:"服务商内部用户唯一ID,用于与支付宝用户 ID 进行关联"`
  70. SchoolStdCode string `json:"school_std_code" label:"学校外标"`
  71. OperatorUserId string `json:"operator_user_id" label:"采集人员的支付宝会员标识。(当sub_code为SCHOOL_PAYMENT_REMOTE_OPEN_ACCOUNT时,当前参数必选)"`
  72. }
  73. type CurlEducateSceneKidsCloseReq struct {
  74. Config struct {
  75. AliAppId string `json:"ali_app_id" label:"支付宝开放平台-小程序-appid"`
  76. AliPrivateKey string `json:"ali_private_key" label:"支付宝开放平台-小程序-应用私钥"`
  77. AliPublicKey string `json:"ali_public_key" label:"支付宝开放平台-小程序-支付宝公钥"`
  78. } `json:"config" label:"配置信息"`
  79. CertNo string `json:"cert_no" label:"身份证号码"`
  80. UserId string `json:"user_id" label:"刷脸用户的UID"`
  81. ParentUid string `json:"parent_uid" label:"开通一脸通行的支付宝UID,如果是家长为学生代开通,则为家长的UID"`
  82. SchoolStdCode string `json:"school_std_code" label:"学校外标"`
  83. }
  84. type CurlEducateFacepayCloseReq struct {
  85. Config struct {
  86. AliAppId string `json:"ali_app_id" label:"支付宝开放平台-小程序-appid"`
  87. AliPrivateKey string `json:"ali_private_key" label:"支付宝开放平台-小程序-应用私钥"`
  88. AliPublicKey string `json:"ali_public_key" label:"支付宝开放平台-小程序-支付宝公钥"`
  89. } `json:"config" label:"配置信息"`
  90. FaceUid string `json:"face_uid" label:"刷脸用户的UID"`
  91. SchoolStdCode string `json:"school_std_code" label:"学校外标"`
  92. }
  93. type CurlEducateFacepayApplyReq struct {
  94. Config struct {
  95. AliAppId string `json:"ali_app_id" label:"支付宝开放平台-小程序-appid"`
  96. AliPrivateKey string `json:"ali_private_key" label:"支付宝开放平台-小程序-应用私钥"`
  97. AliPublicKey string `json:"ali_public_key" label:"支付宝开放平台-小程序-支付宝公钥"`
  98. } `json:"config" label:"配置信息"`
  99. FaceUid string `json:"face_uid" label:"刷脸用户id"`
  100. FaceOpenId string `json:"face_open_id" label:"刷脸用户openId"`
  101. SchoolStdCode string `json:"school_std_code" label:"学校外标"`
  102. }
  103. type CurlAlipayPlanetEcocampusApiRosterSignUpInfoReq struct {
  104. FaceUid string `json:"face_uid" label:"学生刷脸编号(不可修改)"`
  105. ParentUid string `json:"parent_uid" label:"家长uid(可修改)"`
  106. ParentLogonId string `json:"parent_logon_id" label:"家长支付宝账号脱敏信息(可修改)"`
  107. RosterName string `json:"roster_name" label:"学生姓名(可修改)"`
  108. OutRosterCode string `json:"out_roster_code" label:"外部花名册编号(不可修改)"`
  109. SchoolCode string `json:"school_code" label:"学校内标(不可修改)"`
  110. SchoolName string `json:"school_name" label:"学校名称(不可修改)"`
  111. ScanFacePayStatus string `json:"scan_face_pay_status" label:"刷脸支付开通状态(可修改) 开通状态:ON,关闭状态:OFF(新增时,不传值默认OFF)"`
  112. FaceOpenStatus string `json:"face_open_status" label:"刷脸开通状态(可修改)"`
  113. }
  114. type CurlAlipayPlanetEcocampusApiDebtPageQueryDebtInfo struct {
  115. FaceUid string `json:"face_uid" label:"学生刷脸编号"`
  116. SchoolCode string `json:"school_code" label:"学校内标"`
  117. PageNo int `json:"page_no"`
  118. PageSize int `json:"page_size"`
  119. }
  120. type CurlSelfSupportForSchoolOrderDebtRepay struct {
  121. OutOrderNo string `json:"out_order_no" label:"外部订单号"`
  122. MerchantCode string `json:"merchant_code" label:"商户编号"`
  123. }
  124. type CurlAlipayPlanetEcocampusApiDebtCancel struct {
  125. OutOrderNo string `json:"out_order_no" label:"外部订单号"`
  126. MerchantCode string `json:"merchant_code" label:"商户编号"`
  127. }