init commit
This commit is contained in:
0
app/api/v1/schema/__init__.py
Normal file
0
app/api/v1/schema/__init__.py
Normal file
51
app/api/v1/schema/api.py
Normal file
51
app/api/v1/schema/api.py
Normal file
@@ -0,0 +1,51 @@
|
||||
from apiflask import Schema
|
||||
from apiflask.fields import Integer, String, Boolean, Nested, List
|
||||
|
||||
|
||||
class LoginIn(Schema):
|
||||
username = String(required=True)
|
||||
password = String(required=True)
|
||||
tenantId = String(required=True)
|
||||
uuid = String()
|
||||
code = String()
|
||||
|
||||
|
||||
class LoginNestedOut(Schema):
|
||||
token = String()
|
||||
|
||||
|
||||
class LoginOut(Schema):
|
||||
code = Integer()
|
||||
msg = String()
|
||||
data = Nested(LoginNestedOut)
|
||||
|
||||
|
||||
class CaptchaImageNestedOut(Schema):
|
||||
captchaEnabled = Boolean()
|
||||
img = String()
|
||||
uuid = String()
|
||||
|
||||
|
||||
class CaptchaImageOut(Schema):
|
||||
code = Integer()
|
||||
msg = String()
|
||||
data = Nested(CaptchaImageNestedOut)
|
||||
|
||||
|
||||
class TenantOut(Schema):
|
||||
companyName = String()
|
||||
domain = String()
|
||||
tenantId = String()
|
||||
|
||||
|
||||
class TenantsNestedOut(Schema):
|
||||
tenantEnabled = Boolean()
|
||||
voList = List(Nested(TenantOut))
|
||||
|
||||
|
||||
class TenantsOut(Schema):
|
||||
code = Integer()
|
||||
msg = String()
|
||||
data = Nested(TenantsNestedOut)
|
||||
|
||||
|
Reference in New Issue
Block a user