Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type ServiceResponse struct {
- RequestUUID string `json:"requestUUID"`
- Data ResponseData `json:"data"`
- }
- type ResponseData interface {
- Test()
- }
- type ErrorResponse struct {
- Err ErrorResponseBody `json:"err"`
- }
- func (e ErrorResponse) Test () {
- }
- type ErrorResponseBody struct {
- Message string `json:"msg"`
- HttpCode int `json:"httpCode"`
- }
- type ItemListResponse struct {
- Items []Item `json:"items"`
- }
- func (e ItemListResponse) Test () {
- }
- type Item struct {
- Id string `json:"id"`
- Name string `json:"name"`
- Brand string `json:"brand"`
- }
- func (e Item) Test () {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement