From 6ece569ce06797dff91763a4fa6c62e8d7e152ec Mon Sep 17 00:00:00 2001 From: BryantHe Date: Sat, 12 Aug 2023 20:23:19 +0800 Subject: [PATCH] feat: add api of body record 3 --- app/api/v1/auth.py | 4 ++-- app/api/v1/record.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/api/v1/auth.py b/app/api/v1/auth.py index 890f573..b7d92b6 100644 --- a/app/api/v1/auth.py +++ b/app/api/v1/auth.py @@ -10,7 +10,7 @@ auth = APIBlueprint('auth', __name__) @auth.post('/wechat_login') @auth.input(WechatLoginIn) @auth.output(WechatLoginOut) -@auth.doc(summary='微信登录', description='微信登录', tags=['认证']) +@auth.doc(summary='微信登录', description='微信登录') def wechat_login(json_data): try: result = rpc.admin.wechat_login(json_data['code']) @@ -22,7 +22,7 @@ def wechat_login(json_data): @auth.get('/refresh_token') @auth.input(RefreshTokenIn, location='query') @auth.output(RefreshTokenOut) -@auth.doc(summary='刷新 Token', description='刷新 Token', tags=['认证']) +@auth.doc(summary='刷新 Token', description='刷新 Token') def refresh_token(query_data): try: result = rpc.admin.refresh_token(query_data['refresh_token']) diff --git a/app/api/v1/record.py b/app/api/v1/record.py index b354ccd..b64963e 100644 --- a/app/api/v1/record.py +++ b/app/api/v1/record.py @@ -11,7 +11,7 @@ record = APIBlueprint('record', __name__) @record.post('/') @record.input(BodyRecordIn) -@record.doc(summary='添加身体记录', description='添加身体记录', tags=['身体记录']) +@record.doc(summary='添加身体记录', description='添加身体记录') @login_required def add_record(json_data): try: @@ -26,7 +26,7 @@ def add_record(json_data): @record.get('/') @record.output(BodyRecordOut) -@record.doc(summary='查询单条身体记录', description='查询单条身体记录', tags=['身体记录']) +@record.doc(summary='查询单条身体记录', description='查询单条身体记录') @login_required def get_record(record_id): try: @@ -39,7 +39,7 @@ def get_record(record_id): @record.get('/list') @record.input(BodyRecordsIn, location='query') @record.output(BodyRecordsOut) -@record.doc(summary='查询身体记录列表', description='查询身体记录列表', tags=['身体记录']) +@record.doc(summary='查询身体记录列表', description='查询身体记录列表') @login_required def get_records(query_data): try: