From 2bac8945b1ae7a6cca7716791e7c7e798fad1f32 Mon Sep 17 00:00:00 2001 From: apan Date: Thu, 4 Aug 2022 17:49:51 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=AE=A1=E7=90=86-=E6=8E=A5?= =?UTF-8?q?=E5=8F=97=E8=A7=92=E8=89=B2=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/user/views.py | 2 +- models/user_models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/user/views.py b/apps/user/views.py index b3c9bcd..ff3f6a5 100644 --- a/apps/user/views.py +++ b/apps/user/views.py @@ -68,7 +68,6 @@ def get_user_info_list(): @user_router.route("/add", methods=["GET", "POST"]) @token_auth.login_required def add_user_info(): - try: obj = EntityUser( real_name=request.values.get("real_name"), @@ -76,6 +75,7 @@ def add_user_info(): sex=request.values.get("sex"), email=request.values.get("email"), user_code=request.values.get("user_code"), + role_name=request.values.get("role_name"), qq=request.values.get("qq"), role_id=request.values.get("role_id"), is_enabled=request.values.get("is_enabled") diff --git a/models/user_models.py b/models/user_models.py index 4036af1..a4aee3f 100644 --- a/models/user_models.py +++ b/models/user_models.py @@ -30,7 +30,7 @@ class EntityUser(Base): real_name = Column(String(50), comment='真实名称') # 真实名称 avatar_url = Column(String(50), comment='头像地址') # 头像地址 avatar_base64 = Column(Text, comment='头像base64值') # 头像base64值 - sex = Column(Integer, comment='性别') # 性别 + sex = Column(Integer, comment='性别') # 性别 0女,1男 birthday = Column(String(50), comment='生日') # 生日 mobile = Column(String(50), comment='手机号码') # 手机号码 email = Column(String(50), comment='Enail') # Enail