用户管理-接受角色名

duizhaopin
apan 2 years ago
parent 698a8beca1
commit 2bac8945b1

@ -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")

@ -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

Loading…
Cancel
Save