'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( name='company_id', description="公司ID", enum=['5e6784a3d01446cf375d6d37', '5e6784afd01446cf375d6d38'], default='5e6784a3d01446cf375d6d37', required=True) company_id_in_body = BodyField( 'company_id', 'string', '公司id', ['5e6784a3d01446cf375d6d37', '5e6784afd01446cf375d6d38'])
# _*_ coding: utf-8 _*_ """ 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 = {
# _*_ 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)
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', 'D4E513E3', '7F5FBC0B' ], default='E2E058B2', required=True) cdkey_in_query = StringQueryFiled(name='cdkey', description="CDKey(激活码)", enum=['E2E058B2', 'D4E513E3', '7F5FBC0B' ], default='E2E058B2', required=True) company_id_in_path = StringPathFiled(name='id', description="公司ID", enum=['5e6784a3d01446cf375d6d37', '5e6784afd01446cf375d6d38' ], default='5e6784a3d01446cf375d6d37', required=True) company_id_in_query = StringQueryFiled(name='company_id', description="公司ID", enum=['5e6784a3d01446cf375d6d37', '5e6784afd01446cf375d6d38'
# _*_ coding: utf-8 _*_ """ Created by Allen7D on 2018/11/26. """ from app.libs.swagger_filed import StringQueryFiled __author__ = 'Allen7D' config_keys = StringQueryFiled( name='key', description="config key", enum=["mallName",], default="mallName", required=True).data get_config_value = { "parameters": [config_keys], "responses": { "200": { "description": "请求成功", "examples": { "data": { "description": "首页轮播图", "id": 1, "items": [ { "id": 1, "img_url": "0.0.0.0:8080/static/images/banner-4a.png", "key_word": "6", "type": 1 } ], "name": "首页置顶" }, "error_code": 0,
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', '5e68448a45b69c7b7790b2c6', '0017be56959511e8b3470016', '001aa40c61c111e8a8a60016', '001ea0984fa111e8a3d40016'