setup models for handling api responses
This commit is contained in:
		
							parent
							
								
									30504b81e2
								
							
						
					
					
						commit
						ee649dc79e
					
				
							
								
								
									
										20
									
								
								internal/models/accountresponse.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								internal/models/accountresponse.go
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,20 @@ | ||||
| package models | ||||
| 
 | ||||
| import ( | ||||
| 	"encoding/json" | ||||
| 	"time" | ||||
| ) | ||||
| 
 | ||||
| 
 | ||||
| type trackStatusResponse struct { | ||||
| 	Ok     bool `json:"ok"` | ||||
| 	Result struct { | ||||
| 		Transaction struct { | ||||
| 			CreatedAt     time.Time   `json:"createdAt"` | ||||
| 			Status        string      `json:"status"` | ||||
| 			TransferValue json.Number `json:"transferValue"` | ||||
| 			TxHash        string      `json:"txHash"` | ||||
| 			TxType        string      `json:"txType"` | ||||
| 		} | ||||
| 	} `json:"result"` | ||||
| } | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user