Advertisement
diogogmt

Untitled

Feb 1st, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. type ServiceResponse struct {
  2. RequestUUID string `json:"requestUUID"`
  3. Data ResponseData `json:"data"`
  4. }
  5.  
  6. type ResponseData interface {
  7. Test()
  8. }
  9.  
  10. type ErrorResponse struct {
  11. Err ErrorResponseBody `json:"err"`
  12. }
  13.  
  14. func (e ErrorResponse) Test () {
  15.  
  16. }
  17.  
  18. type ErrorResponseBody struct {
  19. Message string `json:"msg"`
  20. HttpCode int `json:"httpCode"`
  21. }
  22.  
  23. type ItemListResponse struct {
  24. Items []Item `json:"items"`
  25. }
  26.  
  27. func (e ItemListResponse) Test () {
  28.  
  29. }
  30.  
  31. type Item struct {
  32. Id string `json:"id"`
  33. Name string `json:"name"`
  34. Brand string `json:"brand"`
  35. }
  36.  
  37. func (e Item) Test () {
  38.  
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement