-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel.py
54 lines (46 loc) · 1.79 KB
/
model.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
from marshmallow import Schema, fields
class GetPunchRequest(Schema):
group = fields.Str(doc = "group")
name = fields.Str(doc = "name")
cur = fields.Str(doc = "cur")
startdate = fields.Date(doc = "startdate")
stopdate = fields.Date(doc = "stopdate")
status = fields.Str(doc = "status")
rows = fields.Int(doc = "rows")
page = fields.Int(doc = "page")
class GetCourseRequest(Schema):
group = fields.Str(doc = "group")
name = fields.Str(doc = "name")
cur = fields.Str(doc = "cur")
startdate = fields.Date(doc = "startdate")
stopdate = fields.Date(doc = "stopdate")
status = fields.Str(doc = "status")
course = fields.Str(doc = "course")
class GetCountRequest(Schema):
group = fields.Str(doc = "group")
name = fields.Str(doc = "name")
cur = fields.Str(doc = "cur")
startdate = fields.Date(doc = "startdate")
stopdate = fields.Date(doc = "stopdate")
class GetCurriculumRequest(Schema):
group = fields.Str(doc = "group")
month = fields.Str(doc = "month")
class GetLeaveRequest(Schema):
group = fields.Str(doc = "group")
name = fields.Str(doc = "name")
cur = fields.Str(doc = "cur")
startdate = fields.Date(doc = "startdate")
stopdate = fields.Date(doc = "stopdate")
leavetype = fields.Str(doc = "leavetype")
class Getinfo(Schema):
group = fields.Str(doc = "group")
name = fields.Str(doc = "name")
class PostFileRequest(Schema):
group = fields.Str(doc = "group", required = True)
file = fields.Raw(type = 'file',doc = "file")
class CrawlerRequest(Schema):
group = fields.Str(doc="group", required=True)
class LoginRequest(Schema):
group = fields.Str(doc="group", required=True)
account = fields.Str(doc="account", required=True)
password = fields.Str(doc="password", required=True)