智慧食堂
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.4 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
1 year ago
1 year ago
1 year ago
1 year ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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. NotifyUrl string `json:"notify_url" label:"异步通知地址"`
  27. }
  28. type CurlAlipayTradeCreateResp struct {
  29. Code string `json:"code" label:"响应码"`
  30. Msg string `json:"msg" label:"响应消息"`
  31. OutTradeNo string `json:"out_trade_no" label:"商户订单号"`
  32. TradeNo string `json:"trade_no" label:"支付宝交易号"`
  33. }
  34. type CurlAlipayTradeQueryReq struct {
  35. Config struct {
  36. PayAliAppId string `json:"pay_ali_app_id" label:"支付宝开放平台-第三方应用-appid"`
  37. PayAliPrivateKey string `json:"pay_ali_private_key" label:"支付宝开放平台-第三方应用-接口加签-应用私钥"`
  38. PayAliPublicKey string `json:"pay_ali_public_key" label:"支付宝开放平台-第三方应用-接口加签-支付宝公钥"`
  39. } `json:"config" label:"配置信息"`
  40. OutTradeNo string `json:"out_trade_no" label:"商户订单号"`
  41. AppAuthToken string `json:"app_auth_token" binding:"required" label:"应用授权token"`
  42. }
  43. type CurlAlipayTradeQueryResp struct {
  44. Code string `json:"code" label:"响应码"`
  45. Msg string `json:"msg" label:"响应消息"`
  46. OutTradeNo string `json:"out_trade_no" label:"商户订单号"`
  47. TradeNo string `json:"trade_no" label:"支付宝交易号"`
  48. TradeStatus string `json:"trade_status" label:"交易状态:WAIT_BUYER_PAY(交易创建,等待买家付款)、TRADE_CLOSED(未付款交易超时关闭,或支付完成后全额退款)、TRADE_SUCCESS(交易支付成功)、TRADE_FINISHED(交易结束,不可退款)"`
  49. }
  50. type CurlAlipayTradeRefundReq struct {
  51. Config struct {
  52. PayAliAppId string `json:"pay_ali_app_id" label:"支付宝开放平台-第三方应用-appid"`
  53. PayAliPrivateKey string `json:"pay_ali_private_key" label:"支付宝开放平台-第三方应用-接口加签-应用私钥"`
  54. PayAliPublicKey string `json:"pay_ali_public_key" label:"支付宝开放平台-第三方应用-接口加签-支付宝公钥"`
  55. } `json:"config" label:"配置信息"`
  56. OutTradeNo string `json:"out_trade_no" label:"商户订单号"`
  57. RefundAmount string `json:"refund_amount" label:"退款金额"`
  58. RefundReason string `json:"refund_reason" label:"退款原因"`
  59. OutRequestNo string `json:"out_request_no" label:"退款订单号"`
  60. AppAuthToken string `json:"app_auth_token" binding:"required" label:"应用授权token"`
  61. }
  62. type CurlEducateSceneTokenReq struct {
  63. Config struct {
  64. AliAppId string `json:"ali_app_id" label:"支付宝开放平台-小程序-appid"`
  65. AliPrivateKey string `json:"ali_private_key" label:"支付宝开放平台-小程序-应用私钥"`
  66. AliPublicKey string `json:"ali_public_key" label:"支付宝开放平台-小程序-支付宝公钥"`
  67. } `json:"config" label:"配置信息"`
  68. CertNo string `json:"cert_no" label:"身份证号码"`
  69. StudentName string `json:"student_name" label:"姓名"`
  70. OutUserId string `json:"out_user_id" label:"服务商内部用户唯一ID,用于与支付宝用户 ID 进行关联"`
  71. SchoolStdCode string `json:"school_std_code" label:"学校外标"`
  72. OperatorUserId string `json:"operator_user_id" label:"采集人员的支付宝会员标识。(当sub_code为SCHOOL_PAYMENT_REMOTE_OPEN_ACCOUNT时,当前参数必选)"`
  73. }
  74. type CurlEducateSceneKidsCloseReq struct {
  75. Config struct {
  76. AliAppId string `json:"ali_app_id" label:"支付宝开放平台-小程序-appid"`
  77. AliPrivateKey string `json:"ali_private_key" label:"支付宝开放平台-小程序-应用私钥"`
  78. AliPublicKey string `json:"ali_public_key" label:"支付宝开放平台-小程序-支付宝公钥"`
  79. } `json:"config" label:"配置信息"`
  80. CertNo string `json:"cert_no" label:"身份证号码"`
  81. UserId string `json:"user_id" label:"刷脸用户的UID"`
  82. ParentUid string `json:"parent_uid" label:"开通一脸通行的支付宝UID,如果是家长为学生代开通,则为家长的UID"`
  83. SchoolStdCode string `json:"school_std_code" label:"学校外标"`
  84. }
  85. type CurlEducateFacepayCloseReq struct {
  86. Config struct {
  87. AliAppId string `json:"ali_app_id" label:"支付宝开放平台-小程序-appid"`
  88. AliPrivateKey string `json:"ali_private_key" label:"支付宝开放平台-小程序-应用私钥"`
  89. AliPublicKey string `json:"ali_public_key" label:"支付宝开放平台-小程序-支付宝公钥"`
  90. } `json:"config" label:"配置信息"`
  91. FaceUid string `json:"face_uid" label:"刷脸用户的UID"`
  92. SchoolStdCode string `json:"school_std_code" label:"学校外标"`
  93. }
  94. type CurlEducateFacepayApplyReq struct {
  95. Config struct {
  96. AliAppId string `json:"ali_app_id" label:"支付宝开放平台-小程序-appid"`
  97. AliPrivateKey string `json:"ali_private_key" label:"支付宝开放平台-小程序-应用私钥"`
  98. AliPublicKey string `json:"ali_public_key" label:"支付宝开放平台-小程序-支付宝公钥"`
  99. } `json:"config" label:"配置信息"`
  100. FaceUid string `json:"face_uid" label:"刷脸用户id"`
  101. FaceOpenId string `json:"face_open_id" label:"刷脸用户openId"`
  102. SchoolStdCode string `json:"school_std_code" label:"学校外标"`
  103. }
  104. type CurlAlipayPlanetEcocampusApiRosterSignUpInfoReq struct {
  105. FaceUid string `json:"face_uid" label:"学生刷脸编号(不可修改)"`
  106. ParentUid string `json:"parent_uid" label:"家长uid(可修改)"`
  107. ParentLogonId string `json:"parent_logon_id" label:"家长支付宝账号脱敏信息(可修改)"`
  108. RosterName string `json:"roster_name" label:"学生姓名(可修改)"`
  109. OutRosterCode string `json:"out_roster_code" label:"外部花名册编号(不可修改)"`
  110. SchoolCode string `json:"school_code" label:"学校内标(不可修改)"`
  111. SchoolName string `json:"school_name" label:"学校名称(不可修改)"`
  112. ScanFacePayStatus string `json:"scan_face_pay_status" label:"刷脸支付开通状态(可修改) 开通状态:ON,关闭状态:OFF(新增时,不传值默认OFF)"`
  113. FaceOpenStatus string `json:"face_open_status" label:"刷脸开通状态(可修改)"`
  114. }
  115. type CurlAlipayPlanetEcocampusApiDebtPageQueryDebtInfo struct {
  116. FaceUid string `json:"face_uid" label:"学生刷脸编号"`
  117. SchoolCode string `json:"school_code" label:"学校内标"`
  118. PageNo int `json:"page_no"`
  119. PageSize int `json:"page_size"`
  120. }
  121. type CurlAlipayPlanetEcocampusApiRosterPageQueryBlackList struct {
  122. SchoolCode string `json:"school_code" label:"学校内标"`
  123. PageNo int `json:"page_no"`
  124. PageSize int `json:"page_size"`
  125. }
  126. type CurlSelfSupportForSchoolOrderDebtRepay struct {
  127. OutOrderNo string `json:"out_order_no" label:"外部订单号"`
  128. MerchantCode string `json:"merchant_code" label:"商户编号"`
  129. }
  130. type CurlAlipayPlanetEcocampusApiDebtCancel struct {
  131. OutOrderNo string `json:"out_order_no" label:"外部订单号"`
  132. MerchantCode string `json:"merchant_code" label:"商户编号"`
  133. }