29 lines
		
	
	
		
			530 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			530 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| syntax = "v1"
 | |
| 
 | |
| info (
 | |
| 	title:  "产品支付服务"
 | |
| 	desc:   "产品支付服务"
 | |
| 	author: "Liangzai"
 | |
| 	email:  "2440983361@qq.com"
 | |
| )
 | |
| 
 | |
| type (
 | |
| 	PaymentReq {
 | |
| 		Id        string `json:"id"`
 | |
| 		PayMethod string `json:"pay_method"`
 | |
| 	}
 | |
| 	PaymentResp {
 | |
| 		prepayData interface{} `json:"prepay_data"`
 | |
| 		prepayId string `json:"prepay_id"`
 | |
| 		OrderID  int64  `json:"order_id"`
 | |
| 	}
 | |
| )
 | |
| 
 | |
| type (
 | |
| 	IapCallbackReq {
 | |
| 		OrderID int64 `json:"order_id" validate:"required"`
 | |
| 		TransactionReceipt string `json:"transaction_receipt" validate:"required"`
 | |
| 	}
 | |
| )
 | |
| 
 |