# _*_ coding: utf-8 _*_ """ Created by Allen7D on 2018/12/4. """ from app.libs.swagger_filed import IntegerPathFiled __author__ = 'Allen7D' theme_id_in_path = IntegerPathFiled(name='id', description="theme id", enum=[1, 2, 3, 4, 5, 100], default=1, required=True).data get_simple_list = { "parameters": [{ 'name': 'ids', "in": "query", "required": True, "type": "array", "items": { "type": "integer", "enum": [1, 2, 3, 4, 5], "default": 1 } }], "responses": { "200": { "description": "获取成功", "examples": { "data": [{
# _*_ coding: utf-8 _*_ """ Created by Allen7D on 2020/3/13. """ from app.libs.swagger_filed import IntegerQueryFiled, IntegerPathFiled __author__ = 'Allen7D' uid_in_path = IntegerPathFiled( name='uid', description="用户ID", enum=[1, 2, 3, 4, 5, 10, 100], default=1, required=True) uid_in_query = IntegerQueryFiled( name='uid', description="用户ID", enum=[1, 2, 3, 4, 5, 10, 100], default=1, required=True) product_id_in_path = IntegerPathFiled( name='id', description="商品 ID", enum=[1, 2, 3, 4, 5, 10, 15, 20], required=True) product_id_in_query = IntegerQueryFiled( name='id', description="商品 ID", enum=[1, 2, 3, 4, 5, 10, 15, 20], required=True) category_id_in_path = IntegerPathFiled( name='id', description="类别 ID", enum=[1, 2, 3, 4, 5, 10, 15, 20], required=True) category_id_in_query = IntegerQueryFiled( name='id', description="类别 ID", enum=[1, 2, 3, 4, 5, 10, 15, 20], required=True) theme_id_in_path = IntegerPathFiled( name='id', description="主题ID", enum=[1, 2, 3, 4, 5, 10, 15, 20], required=True) theme_id_in_query = IntegerQueryFiled( name='id', description="主题ID", enum=[1, 2, 3, 4, 5, 10, 15, 20], required=True) banner_id_in_path = IntegerPathFiled( name='id', description="轮播图ID", enum=[1, 2, 3, 4, 5, 10, 15, 20], required=True) banner_id_in_query = IntegerQueryFiled(
# _*_ coding: utf-8 _*_ """ Created by Alimazing on 2018/11/26. """ from app.libs.swagger_filed import IntegerPathFiled __author__ = 'Alimazing' banner_id_in_path = IntegerPathFiled(name='id', description="banner id", enum=[1, 2, 3, 100], default=1, required=True).data get_banner = { "parameters": [banner_id_in_path], "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 }],
# _*_ coding: utf-8 _*_ """ Created by Allen7D on 2018/11/25. """ from app.libs.swagger_filed import IntegerQueryFiled, IntegerPathFiled __author__ = 'Allen7D' uid_in_path = IntegerPathFiled(name='uid', description="用户ID", enum=[1, 2, 3, 4, 5, 100, 1000000], default=1, required=True).data get_user_list = { "parameters": [ IntegerQueryFiled(name='index', description="第几页", enum=[1, 2, 3, 4, 5], default=1).data, IntegerQueryFiled(name='size', description="每页大小", enum=[10, 20, 30, 40, 50, 100], default=10).data, ], "security": [{ "basicAuth": [] }], "responses": { "200": { "description": "管理员获取用户信息列表",