去除插开发者信息
This commit is contained in:
@@ -6,3 +6,4 @@ from .admin_dept import DeptOutSchema
|
||||
from .admin_log import LogOutSchema
|
||||
from .admin_photo import PhotoOutSchema
|
||||
from .admin_mail import MailOutSchema
|
||||
from .plugin_setting import pluginSettingOutSchema
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
from applications.extensions import ma
|
||||
from marshmallow import fields, validate
|
||||
|
||||
|
||||
class pluginSettingInSchema(ma.Schema):
|
||||
key = fields.Str(required=True)
|
||||
value = fields.Str(required=True)
|
||||
|
||||
class pluginSettingOutSchema(ma.Schema):
|
||||
key = fields.Str(attribute="key")
|
||||
value = fields.Str(rattribute="value")
|
||||
Reference in New Issue
Block a user