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