# _*_ coding: utf-8 _*_ """ """ from app.libs.swagger_filed import StringPathFiled uid_in_path = StringPathFiled(name='uid', description="用户ID", enum=['5e705d50e3a1dff793a99b6d', '5e742c7d3672d6057597e140'], default='5e705d50e3a1dff793a99b6d', required=True)
# _*_ coding: utf-8 _*_ from app.libs.swagger_filed import IntegerQueryFiled, StringQueryFiled, StringPathFiled, BodyField uid = StringPathFiled(name='uid', description="用户ID", enum=[ '5e68447445b69c7b7790b2c5', '5e68448a45b69c7b7790b2c6', '5e68448a45b69c7b7791b2c6', 'xxxxxxxxxxxxxxxxxxxxxxxx' ], default='5e68447445b69c7b7790b2c5', required=True) auth = IntegerQueryFiled(name='auth', description="权限级别 ", enum=[1, 2, 10, 11, 12, 13, 14], default=14, required=True) realname_in_body = BodyField('realname', 'string', '用户真名', ['董冬伟']) username_in_body = BodyField('username', 'string', '用户名', ['Allen7D']) password_in_body = BodyField('password', 'string', '密码(不输则默认: 123456)', ['123456']) mobile_in_body = BodyField('mobile', 'string', '手机号', ['13758787058']) email_in_body = BodyField('email', 'string', '邮箱', ['*****@*****.**']) auth_in_body = BodyField('auth', 'integer', '权限(数字: 1,2,10,11,12,13,14,19)', [1, 2, 10, 11, 12, 13, 14, 19]) company_id_in_query = StringQueryFiled(
# _*_ coding: utf-8 _*_ """ Created by Allen7D on 2018/11/25. """ from app.libs.swagger_filed import StringPathFiled __author__ = 'Allen7D' uid_in_path = StringPathFiled(name='uid', description="用户ID", enum=[ '0000aef0774f11e8ba9500163e0ce7e6', '00171b62791711e889ad00163e0ce7e6', '0017be56959511e8b34700163e0ce7e6', '001aa40c61c111e8a8a600163e0ce7e6', '001ea0984fa111e8a3d400163e0ce7e6' ], default='0000aef0774f11e8ba9500163e0ce7e6', required=True).data super_get_user = { "parameters": [uid_in_path], "security": [{ "basicAuth": [] }], "responses": { "200": { "description": "管理员获取用户信息", "examples": {} } }
# _*_ coding: utf-8 _*_ """ Created by Allen7D on 2020/3/24. """ from app.libs.swagger_filed import StringQueryFiled, StringPathFiled, BodyField __author__ = 'Allen7D' # 权限 group_id_in_path = StringPathFiled( name='group_id', description="权限组ID", enum=['1', '2', '3', '4', '5', '10', '15', '20'], required=True) group_id_in_query = StringQueryFiled( name='group_id', description="权限组ID", enum=['1', '2', '3', '4', '5', '10', '15', '20'], required=True)
""" Created by Alimazing on 2018/12/4. """ from app.libs.swagger_filed import StringQueryFiled, StringPathFiled __author__ = 'Alimazing' category_id_in_query = StringQueryFiled(name='id', description="category ID", enum=['1', '2', '3', '100'], default='1', required=True).data product_id_in_path = StringPathFiled(name='id', description="product ID", enum=['1', '2', '3', '100'], default='1', required=True).data get_recent = { "parameters": [], "responses": { "200": { "description": "产品分类", "examples": {} } } } get_all_in_category = { "parameters": [category_id_in_query],
# _*_ coding: utf-8 _*_ from app.libs.swagger_filed import (IntegerQueryFiled, StringQueryFiled, IntegerPathFiled, StringPathFiled, BodyField, inject) uid = StringPathFiled(name='uid', description="用户ID", enum=[ '5e68447445b69c7b7790b2c5', '5e68448a45b69c7b7790b2c6', '0017be56959511e8b3470016', '001aa40c61c111e8a8a60016', '001ea0984fa111e8a3d40016' ], default='5e68447445b69c7b7790b2c5', required=True) realname = BodyField('realname', 'string', '用户真名', ['董冬伟']) username = BodyField('username', 'string', '用户名', ['Allen7D']) password = BodyField('password', 'string', '密码(不输则默认: 123456)', ['123456']) mobile = BodyField('mobile', 'string', '手机号', ['13758787058']) email = BodyField('email', 'string', '邮箱', ['*****@*****.**']) auth = BodyField('auth', 'integer', '权限(数字: 1,2,10,11,12,13,14,19)', [1, 2, 10, 11, 12, 13, 14, 19]) company_id = BodyField('company_id', 'string', '公司id', ['5e6784a3d01446cf375d6d37'])
""" """ from app.libs.swagger_filed import IntegerQueryFiled, IntegerPathFiled, StringPathFiled, StringQueryFiled, BodyField __author__ = 'Allen7D' page_in_query = IntegerQueryFiled(name='page', description="第几页", enum=[1, 2, 3, 4, 5], default=1) size_in_query = IntegerQueryFiled(name='size', description="每页大小", enum=[10, 20, 30, 40, 50, 100], default=10) # User uid_in_path = StringPathFiled(name='uid', description="用户ID", enum=['5e68447445b69c7b7790b2c5', '5e68448a45b69c7b7790b2c6', '5e68448a45b69c7b7791b2c6', '5e705d50e3a1dff793a99b6d', 'xxxxxxxxxxxxxxxxxxxxxxxx' ], default='5e68447445b69c7b7790b2c5', required=True) realname_in_body = BodyField('realname', 'string', '用户真名', ['董冬伟']) username_in_body = BodyField('username', 'string', '用户名', ['Allen7D']) password_in_body = BodyField('password', 'string', '密码(不输则默认: 123456)', ['123456']) mobile_in_body = BodyField('mobile', 'string', '手机号', ['13758787058']) email_in_body = BodyField('email', 'string', '邮箱', ['*****@*****.**']) auth_in_body = BodyField('auth', 'integer', '权限等级(数字: 1,2,10,11,12,13,14,20,999)', [1, 2, 10, 11, 12, 13, 14, 20, 999]) # CDKey cdkey_in_path = StringPathFiled(name='cdkey', description="CDKey(激活码)", enum=['E2E058B2',
# _*_ coding: utf-8 _*_ """ Created by Alimazing on 2018/11/26. """ from app.libs.swagger_filed import StringPathFiled __author__ = 'Alimazing' banner_id_in_path = StringPathFiled( name='id', description="banner id", enum=['1'], default='1', required=True).data get_banner = { "parameters": [banner_id_in_path], "responses": { "200": { "description": "轮播图", "examples": {} } } }
# _*_ coding: utf-8 _*_ from app.libs.swagger_filed import StringPathFiled, IntegerQueryFiled, StringQueryFiled, BodyField id = StringPathFiled(name='id', description="ObjectId", enum=[ '5e6784a3d01446cf375d6d37', '5e6784afd01446cf375d6d38', '0017be56959511e8b3470016', '001aa40c61c111e8a8a60016', '001ea0984fa111e8a3d40016' ], default='5e6784a3d01446cf375d6d37', required=True).data company_id = StringQueryFiled(name='company_id', description="公司ID", enum=[ '5e6784a3d01446cf375d6d37', '5e6784afd01446cf375d6d38', '0017be56959511e8b3470016', '001aa40c61c111e8a8a60016', '001ea0984fa111e8a3d40016' ], default='5e6784a3d01446cf375d6d37', required=True).data company_id_in_query = company_id user_id = StringPathFiled(name='uid', description="用户ID", enum=[ '5e68447445b69c7b7790b2c5',
# _*_ coding: utf-8 _*_ """ 设备类型(按照规格化分) """ from app.libs.swagger_filed import IntegerQueryFiled, IntegerPathFiled, StringPathFiled, StringQueryFiled category_id_in_path = StringPathFiled( name='category_id', description="类别(规格)ID", enum=['5e744ca1c1409608f36178dc', '5e744d3d988c4a71f162886a'], default='5e744ca1c1409608f36178dc', required=True)