{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "code": {
      "type": "integer"
    },
    "error": {
      "type": "string"
    },
    "data": {
      "type": "object",
      "properties": {
        "total": {
          "type": "integer"
        },
        "page": {
          "type": "integer"
        },
        "pageTotal": {
          "type": "integer"
        },
        "startTime": {
          "type": "string"
        },
        "endTime": {
          "type": "string"
        },
        "incom": {
          "type": "number"
        },
        "expenditure": {
          "type": "number"
        },
        "list": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": ["string","number"]
              },
              "customerId": {
                "type": "string"
              },
              "income": {
                "type": "number"
              },
              "expenditure": {
                "type": "number"
              },
              "type": {
                "type": "string"
              },
              "adType": {
                "type": "string"
              },
              "impression": {
                "type": "string"
              },
              "balance": {
                "type": "number"
              },
              "remark": {
                "type": "string"
              },
              "createdAt": {
                "type": "string"
              },
              "updatedAt": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "customerId",
              "income",
              "expenditure",
              "type",
              "adType",
              "impression",
              "balance",
              "remark",
              "createdAt",
              "updatedAt"
            ]
          }
        }
      },
      "required": [
        "total",
        "page",
        "pageTotal",
        "startTime",
        "endTime",
        "incom",
        "expenditure",
        "list"
      ]
    }
  },
  "required": [
    "code",
    "error",
    "data"
  ]
}
