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