Commit e82f86a4 authored by 林洋洋's avatar 林洋洋

更新角色信息接口修改

parent e5154095
......@@ -508,7 +508,7 @@ class RoleDal(DalBase):
:param v_schema:
:return:
"""
obj = await self.get_data(data_id, v_options=[joinedload(self.model.menus), joinedload(self.model.depts)])
obj = await self.get_data(data_id, v_options=[joinedload(self.model.menus), joinedload(self.model.depts), joinedload(self.model.knowledges)])
obj_dict = jsonable_encoder(data)
for key, value in obj_dict.items():
if key == "menu_ids":
......
......@@ -17,6 +17,5 @@ class Knowledge(BaseModel):
class KnowledgeOut(Knowledge):
model_config = ConfigDict(from_attributes=True)
id: int
create_datetime: DatetimeStr
# create_datetime: DatetimeStr
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment