Commit 6cd92ae6 authored by Wei Shoulin's avatar Wei Shoulin
Browse files

property data

parent 7fc2b83f
......@@ -9,9 +9,11 @@ class Result(dict):
def success(self):
return self["code"] >= 0
@property
def data(self):
return self["data"]
@property
def message(self):
return self["message"]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment