智慧食堂
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 11 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
8 months ago
1 year ago
1 year ago
1 year ago
1 year ago
8 months ago
8 months ago
11 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
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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 OldCurlAlipayTradeRefundReq 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 CurlAlipayTradeRefundReq struct {
  65. OutOrderNo string `json:"out_order_no" label:"商户订单号"`
  66. MerchantCode string `json:"merchant_code" label:"商户编号"`
  67. RefundOutOrderNo string `json:"refund_out_order_no" label:"退款订单号"`
  68. RefundAmount string `json:"refund_amount" label:"退款金额"`
  69. RefundReason string `json:"refund_reason" label:"退款原因"`
  70. }
  71. type CurlAlipayPlanetEcocampusApiFtokenQueryReq struct {
  72. OutOrderNo string `json:"out_order_no" label:"商户订单号"`
  73. CpMerchantId string `json:"cp_merchant_id" label:"商户编号"`
  74. }
  75. type CurlAlipayTradeRefundQueryReq struct {
  76. Config struct {
  77. PayAliAppId string `json:"pay_ali_app_id" label:"支付宝开放平台-第三方应用-appid"`
  78. PayAliPrivateKey string `json:"pay_ali_private_key" label:"支付宝开放平台-第三方应用-接口加签-应用私钥"`
  79. PayAliPublicKey string `json:"pay_ali_public_key" label:"支付宝开放平台-第三方应用-接口加签-支付宝公钥"`
  80. } `json:"config" label:"配置信息"`
  81. OutTradeNo string `json:"out_trade_no" label:"商户订单号"`
  82. OutRequestNo string `json:"out_request_no" label:"退款订单号"`
  83. AppAuthToken string `json:"app_auth_token" binding:"required" label:"应用授权token"`
  84. }
  85. type CurlEducateSceneTokenReq 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. CertType string `json:"cert_type" label:"证件类型"`
  92. CertNo string `json:"cert_no" label:"身份证号码"`
  93. StudentName string `json:"student_name" label:"姓名"`
  94. OutUserId string `json:"out_user_id" label:"服务商内部用户唯一ID,用于与支付宝用户 ID 进行关联"`
  95. SchoolStdCode string `json:"school_std_code" label:"学校外标"`
  96. OperatorUserId string `json:"operator_user_id" label:"采集人员的支付宝会员标识。(当sub_code为SCHOOL_PAYMENT_REMOTE_OPEN_ACCOUNT时,当前参数必选)"`
  97. }
  98. type CurlEducateSceneKidsCloseReq struct {
  99. Config struct {
  100. AliAppId string `json:"ali_app_id" label:"支付宝开放平台-小程序-appid"`
  101. AliPrivateKey string `json:"ali_private_key" label:"支付宝开放平台-小程序-应用私钥"`
  102. AliPublicKey string `json:"ali_public_key" label:"支付宝开放平台-小程序-支付宝公钥"`
  103. } `json:"config" label:"配置信息"`
  104. CertType string `json:"cert_type" label:"证件类型"`
  105. CertNo string `json:"cert_no" label:"身份证号码"`
  106. UserId string `json:"user_id" label:"刷脸用户的UID"`
  107. ParentUid string `json:"parent_uid" label:"开通一脸通行的支付宝UID,如果是家长为学生代开通,则为家长的UID"`
  108. SchoolStdCode string `json:"school_std_code" label:"学校外标"`
  109. }
  110. type CurlEducateFacepayCloseReq struct {
  111. Config struct {
  112. AliAppId string `json:"ali_app_id" label:"支付宝开放平台-小程序-appid"`
  113. AliPrivateKey string `json:"ali_private_key" label:"支付宝开放平台-小程序-应用私钥"`
  114. AliPublicKey string `json:"ali_public_key" label:"支付宝开放平台-小程序-支付宝公钥"`
  115. } `json:"config" label:"配置信息"`
  116. FaceUid string `json:"face_uid" label:"刷脸用户的UID"`
  117. SchoolStdCode string `json:"school_std_code" label:"学校外标"`
  118. }
  119. type CurlEducateFacepayApplyReq struct {
  120. Config struct {
  121. AliAppId string `json:"ali_app_id" label:"支付宝开放平台-小程序-appid"`
  122. AliPrivateKey string `json:"ali_private_key" label:"支付宝开放平台-小程序-应用私钥"`
  123. AliPublicKey string `json:"ali_public_key" label:"支付宝开放平台-小程序-支付宝公钥"`
  124. } `json:"config" label:"配置信息"`
  125. FaceUid string `json:"face_uid" label:"刷脸用户id"`
  126. FaceOpenId string `json:"face_open_id" label:"刷脸用户openId"`
  127. SchoolStdCode string `json:"school_std_code" label:"学校外标"`
  128. }
  129. type CurlAlipayPlanetEcocampusApiRosterSignUpInfoReq struct {
  130. FaceUid string `json:"face_uid" label:"学生刷脸编号(不可修改)"`
  131. ParentUid string `json:"parent_uid" label:"家长uid(可修改)"`
  132. ParentLogonId string `json:"parent_logon_id" label:"家长支付宝账号脱敏信息(可修改)"`
  133. RosterName string `json:"roster_name" label:"学生姓名(可修改)"`
  134. OutRosterCode string `json:"out_roster_code" label:"外部花名册编号(不可修改)"`
  135. SchoolCode string `json:"school_code" label:"学校内标(不可修改)"`
  136. SchoolName string `json:"school_name" label:"学校名称(不可修改)"`
  137. ScanFacePayStatus string `json:"scan_face_pay_status" label:"刷脸支付开通状态(可修改) 开通状态:ON,关闭状态:OFF(新增时,不传值默认OFF)"`
  138. FaceOpenStatus string `json:"face_open_status" label:"刷脸开通状态(可修改)"`
  139. }
  140. type CurlAlipayPlanetEcocampusApiDebtPageQueryDebtInfo struct {
  141. FaceUid string `json:"face_uid" label:"学生刷脸编号"`
  142. SchoolCode string `json:"school_code" label:"学校内标"`
  143. PageNo int `json:"page_no"`
  144. PageSize int `json:"page_size"`
  145. }
  146. type CurlAlipayPlanetEcocampusApiRosterPageQueryBlackList struct {
  147. SchoolCode string `json:"school_code" label:"学校内标"`
  148. PageNo int `json:"page_no"`
  149. PageSize int `json:"page_size"`
  150. }
  151. type CurlSelfSupportForSchoolOrderDebtRepay struct {
  152. OutOrderNo string `json:"out_order_no" label:"外部订单号"`
  153. MerchantCode string `json:"merchant_code" label:"商户编号"`
  154. }
  155. type CurlAlipayPlanetEcocampusApiDebtCancel struct {
  156. OutOrderNo string `json:"out_order_no" label:"外部订单号"`
  157. MerchantCode string `json:"merchant_code" label:"商户编号"`
  158. }
  159. type CurlAlipayPlanetEcocampusApiRosterSingleConsumeLimitSync struct {
  160. SchoolCode string `json:"school_code" label:"学校内标"`
  161. FaceUid string `json:"face_uid" label:"学生刷脸编号"`
  162. RosterName string `json:"roster_name" label:"花名册名称"`
  163. DailyConsumeLimit string `json:"daily_consume_limit" label:"单日金额上限"`
  164. SingleConsumeLimit string `json:"single_consume_limit" label:"单笔金额上限"`
  165. DailyMaxConsumeTimes string `json:"daily_max_consume_times" label:"单日笔数上限"`
  166. RosterPeriodConsumeLimitConfigList []md.RosterPeriodConsumeLimitConfig `json:"roster_period_consume_limit_config_list" label:"餐段设置"`
  167. }