文档服务地址:http://47.92.0.57:3000/ 周报索引地址:http://47.92.0.57:3000/s/NruNXRYmV

Commit c4de179e by 李景熙

修改类中的变量声明

parent 1611bb1b
...@@ -9,10 +9,6 @@ UPLOAD_FOLDER = 'upload' ...@@ -9,10 +9,6 @@ UPLOAD_FOLDER = 'upload'
class Result: class Result:
code: int
message: []
data: {}
def __init__(self, code, message, data): def __init__(self, code, message, data):
self.code = code self.code = code
self.message = message self.message = message
......
...@@ -5,10 +5,6 @@ from dao import Slice, Task, User ...@@ -5,10 +5,6 @@ from dao import Slice, Task, User
class Result: class Result:
code: int
message: []
data: {}
def __init__(self, code, message, data): def __init__(self, code, message, data):
self.code = code self.code = code
self.message = message self.message = message
......
...@@ -5,10 +5,6 @@ from dao.model import mysql ...@@ -5,10 +5,6 @@ from dao.model import mysql
class Result: class Result:
code: int
message: []
data: {}
def __init__(self, code, message, data): def __init__(self, code, message, data):
self.code = code self.code = code
self.message = message self.message = message
......
...@@ -6,11 +6,6 @@ from dao.model import mysql ...@@ -6,11 +6,6 @@ from dao.model import mysql
class Result: class Result:
code: int
message: []
data: {}
pages: int
def __init__(self, code, message, data, pages): def __init__(self, code, message, data, pages):
self.code = code self.code = code
self.message = message self.message = message
......
from peewee import * from peewee import *
from dao.model import mysql from dao.model import mysql
class Result:
code: int
message: []
data: {}
class Result:
def __init__(self, code, message, data): def __init__(self, code, message, data):
self.code = code self.code = code
self.message = message self.message = message
......
Markdown is supported
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