optimized api base

This commit is contained in:
Yeqing Zhang
2019-02-13 13:08:35 +08:00
parent 4f2a29bd42
commit 55b2d5064f
7 changed files with 159 additions and 24 deletions

10
model/deploy.py Normal file
View File

@@ -0,0 +1,10 @@
from mongoengine import *
from model.base import BaseModel
class Deploy(BaseModel):
_id = ObjectIdField()
spider_id = ObjectIdField()
version = IntField()
node_id = ObjectIdField()