f7d2e32e68dc1911becea2a56b8d552bfd5f8125ab3ffa2f02f723bbc0940eb7.json 41 KB

1
  1. {"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_backend_app_crud_role_py", "label": "role.py", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L1"}, {"id": "crud_role_row_to_dict", "label": "_row_to_dict()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L21"}, {"id": "sysrole", "label": "SysRole", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L21"}, {"id": "str", "label": "str", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L21"}, {"id": "any", "label": "Any", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L21"}, {"id": "crud_role_total_pages", "label": "total_pages()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L35"}, {"id": "int", "label": "int", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L35"}, {"id": "crud_role_list_roles", "label": "list_roles()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L46"}, {"id": "session", "label": "Session", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L46"}, {"id": "crud_role_get_role", "label": "get_role()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L81"}, {"id": "crud_role_role_name_exists", "label": "role_name_exists()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L89"}, {"id": "bool", "label": "bool", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L89"}, {"id": "crud_role_create_role", "label": "create_role()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L103"}, {"id": "crud_role_update_role", "label": "update_role()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L140"}, {"id": "crud_role_soft_delete_role", "label": "soft_delete_role()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L177"}, {"id": "crud_role_get_role_menu_ids", "label": "get_role_menu_ids()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L200"}, {"id": "crud_role_update_role_menus", "label": "update_role_menus()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L209"}, {"id": "crud_role_get_role_data_scope", "label": "get_role_data_scope()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L244"}, {"id": "crud_role_update_role_data_scope", "label": "update_role_data_scope()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L253"}, {"id": "crud_role_rationale_1", "label": "\u89d2\u8272 CRUD\uff08sys_role / sys_role_menu / sys_role_data_scope_detail\uff09", "file_type": "rationale", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L1"}], "edges": [{"source": "users_zlwu_work_00code_shanxia2_0_backend_app_crud_role_py", "target": "math", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L4", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_app_crud_role_py", "target": "datetime", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L5", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_app_crud_role_py", "target": "typing", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L6", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_app_crud_role_py", "target": "sqlalchemy", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L8", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_app_crud_role_py", "target": "sqlalchemy_orm", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L9", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_app_crud_role_py", "target": "app_core_delete_guard", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L11", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_app_crud_role_py", "target": "app_core_utils", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L12", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_app_crud_role_py", "target": "app_models_models", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L13", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_app_crud_role_py", "target": "crud_role_row_to_dict", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L21", "weight": 1.0}, {"source": "crud_role_row_to_dict", "target": "sysrole", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L21", "weight": 1.0}, {"source": "crud_role_row_to_dict", "target": "str", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L21", "weight": 1.0}, {"source": "crud_role_row_to_dict", "target": "any", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L21", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_app_crud_role_py", "target": "crud_role_total_pages", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L35", "weight": 1.0}, {"source": "crud_role_total_pages", "target": "int", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L35", "weight": 1.0}, {"source": "crud_role_total_pages", "target": "int", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L35", "weight": 1.0}, {"source": "crud_role_total_pages", "target": "int", "relation": "references", "context": "return_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L35", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_app_crud_role_py", "target": "crud_role_list_roles", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L46", "weight": 1.0}, {"source": "crud_role_list_roles", "target": "session", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L46", "weight": 1.0}, {"source": "crud_role_list_roles", "target": "int", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L46", "weight": 1.0}, {"source": "crud_role_list_roles", "target": "int", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L46", "weight": 1.0}, {"source": "crud_role_list_roles", "target": "str", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L46", "weight": 1.0}, {"source": "crud_role_list_roles", "target": "str", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L46", "weight": 1.0}, {"source": "crud_role_list_roles", "target": "str", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L46", "weight": 1.0}, {"source": "crud_role_list_roles", "target": "any", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L46", "weight": 1.0}, {"source": "crud_role_list_roles", "target": "int", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L46", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_app_crud_role_py", "target": "crud_role_get_role", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L81", "weight": 1.0}, {"source": "crud_role_get_role", "target": "session", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L81", "weight": 1.0}, {"source": "crud_role_get_role", "target": "str", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L81", "weight": 1.0}, {"source": "crud_role_get_role", "target": "sysrole", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L81", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_app_crud_role_py", "target": "crud_role_role_name_exists", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L89", "weight": 1.0}, {"source": "crud_role_role_name_exists", "target": "session", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L89", "weight": 1.0}, {"source": "crud_role_role_name_exists", "target": "str", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L89", "weight": 1.0}, {"source": "crud_role_role_name_exists", "target": "str", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L89", "weight": 1.0}, {"source": "crud_role_role_name_exists", "target": "str", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L89", "weight": 1.0}, {"source": "crud_role_role_name_exists", "target": "bool", "relation": "references", "context": "return_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L89", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_app_crud_role_py", "target": "crud_role_create_role", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L103", "weight": 1.0}, {"source": "crud_role_create_role", "target": "session", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L103", "weight": 1.0}, {"source": "crud_role_create_role", "target": "str", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L103", "weight": 1.0}, {"source": "crud_role_create_role", "target": "str", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L103", "weight": 1.0}, {"source": "crud_role_create_role", "target": "str", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L103", "weight": 1.0}, {"source": "crud_role_create_role", "target": "str", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L103", "weight": 1.0}, {"source": "crud_role_create_role", "target": "int", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L103", "weight": 1.0}, {"source": "crud_role_create_role", "target": "str", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L103", "weight": 1.0}, {"source": "crud_role_create_role", "target": "str", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L103", "weight": 1.0}, {"source": "crud_role_create_role", "target": "sysrole", "relation": "references", "context": "return_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L103", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_app_crud_role_py", "target": "crud_role_update_role", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L140", "weight": 1.0}, {"source": "crud_role_update_role", "target": "session", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L140", "weight": 1.0}, {"source": "crud_role_update_role", "target": "str", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L140", "weight": 1.0}, {"source": "crud_role_update_role", "target": "str", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L140", "weight": 1.0}, {"source": "crud_role_update_role", "target": "str", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L140", "weight": 1.0}, {"source": "crud_role_update_role", "target": "str", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L140", "weight": 1.0}, {"source": "crud_role_update_role", "target": "int", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L140", "weight": 1.0}, {"source": "crud_role_update_role", "target": "str", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L140", "weight": 1.0}, {"source": "crud_role_update_role", "target": "str", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L140", "weight": 1.0}, {"source": "crud_role_update_role", "target": "sysrole", "relation": "references", "context": "return_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L140", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_app_crud_role_py", "target": "crud_role_soft_delete_role", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L177", "weight": 1.0}, {"source": "crud_role_soft_delete_role", "target": "session", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L177", "weight": 1.0}, {"source": "crud_role_soft_delete_role", "target": "str", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L177", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_app_crud_role_py", "target": "crud_role_get_role_menu_ids", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L200", "weight": 1.0}, {"source": "crud_role_get_role_menu_ids", "target": "session", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L200", "weight": 1.0}, {"source": "crud_role_get_role_menu_ids", "target": "str", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L200", "weight": 1.0}, {"source": "crud_role_get_role_menu_ids", "target": "str", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L200", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_app_crud_role_py", "target": "crud_role_update_role_menus", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L209", "weight": 1.0}, {"source": "crud_role_update_role_menus", "target": "session", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L209", "weight": 1.0}, {"source": "crud_role_update_role_menus", "target": "str", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L209", "weight": 1.0}, {"source": "crud_role_update_role_menus", "target": "str", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L209", "weight": 1.0}, {"source": "crud_role_update_role_menus", "target": "str", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L209", "weight": 1.0}, {"source": "crud_role_update_role_menus", "target": "str", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L209", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_app_crud_role_py", "target": "crud_role_get_role_data_scope", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L244", "weight": 1.0}, {"source": "crud_role_get_role_data_scope", "target": "session", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L244", "weight": 1.0}, {"source": "crud_role_get_role_data_scope", "target": "str", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L244", "weight": 1.0}, {"source": "crud_role_get_role_data_scope", "target": "str", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L244", "weight": 1.0}, {"source": "crud_role_get_role_data_scope", "target": "str", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L244", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_app_crud_role_py", "target": "crud_role_update_role_data_scope", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L253", "weight": 1.0}, {"source": "crud_role_update_role_data_scope", "target": "session", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L253", "weight": 1.0}, {"source": "crud_role_update_role_data_scope", "target": "str", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L253", "weight": 1.0}, {"source": "crud_role_update_role_data_scope", "target": "str", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L253", "weight": 1.0}, {"source": "crud_role_update_role_data_scope", "target": "str", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L253", "weight": 1.0}, {"source": "crud_role_update_role_data_scope", "target": "str", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L253", "weight": 1.0}, {"source": "crud_role_update_role_data_scope", "target": "str", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L253", "weight": 1.0}, {"source": "crud_role_update_role_data_scope", "target": "str", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L253", "weight": 1.0}, {"source": "crud_role_list_roles", "target": "crud_role_row_to_dict", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L78", "weight": 1.0}, {"source": "crud_role_create_role", "target": "crud_role_role_name_exists", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L117", "weight": 1.0}, {"source": "crud_role_create_role", "target": "sysrole", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L119", "weight": 1.0}, {"source": "crud_role_update_role", "target": "crud_role_get_role", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L151", "weight": 1.0}, {"source": "crud_role_update_role", "target": "crud_role_role_name_exists", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L158", "weight": 1.0}, {"source": "crud_role_soft_delete_role", "target": "crud_role_get_role", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L178", "weight": 1.0}, {"source": "crud_role_update_role_data_scope", "target": "crud_role_get_role", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L261", "weight": 1.0}, {"source": "crud_role_rationale_1", "target": "users_zlwu_work_00code_shanxia2_0_backend_app_crud_role_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L1", "weight": 1.0}], "raw_calls": [{"caller_nid": "crud_role_row_to_dict", "callee": "strftime", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L30"}, {"caller_nid": "crud_role_row_to_dict", "callee": "strftime", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L31"}, {"caller_nid": "crud_role_total_pages", "callee": "ceil", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L38"}, {"caller_nid": "crud_role_list_roles", "callee": "scalar", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L68"}, {"caller_nid": "crud_role_list_roles", "callee": "with_entities", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L68"}, {"caller_nid": "crud_role_list_roles", "callee": "order_by", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L68"}, {"caller_nid": "crud_role_list_roles", "callee": "_filtered", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L68"}, {"caller_nid": "crud_role_list_roles", "callee": "count", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L68"}, {"caller_nid": "crud_role_list_roles", "callee": "limit", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L72"}, {"caller_nid": "crud_role_list_roles", "callee": "offset", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L72"}, {"caller_nid": "crud_role_list_roles", "callee": "order_by", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L72"}, {"caller_nid": "crud_role_list_roles", "callee": "_filtered", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L72"}, {"caller_nid": "crud_role_list_roles", "callee": "desc", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L73"}, {"caller_nid": "crud_role_get_role", "callee": "first", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L83"}, {"caller_nid": "crud_role_get_role", "callee": "query", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L83"}, {"caller_nid": "crud_role_get_role", "callee": "and_", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L84"}, {"caller_nid": "crud_role_role_name_exists", "callee": "query", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L90"}, {"caller_nid": "crud_role_role_name_exists", "callee": "and_", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L91"}, {"caller_nid": "crud_role_role_name_exists", "callee": "strip", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L91"}, {"caller_nid": "crud_role_role_name_exists", "callee": "first", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L95"}, {"caller_nid": "crud_role_create_role", "callee": "strip", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L114"}, {"caller_nid": "crud_role_create_role", "callee": "ValueError", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L116"}, {"caller_nid": "crud_role_create_role", "callee": "ValueError", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L118"}, {"caller_nid": "crud_role_create_role", "callee": "generate_uuid", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L120"}, {"caller_nid": "crud_role_create_role", "callee": "strip", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L126"}, {"caller_nid": "crud_role_create_role", "callee": "now", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L129"}, {"caller_nid": "crud_role_create_role", "callee": "now", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L131"}, {"caller_nid": "crud_role_create_role", "callee": "add", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L134"}, {"caller_nid": "crud_role_create_role", "callee": "commit", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L135"}, {"caller_nid": "crud_role_create_role", "callee": "refresh", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L136"}, {"caller_nid": "crud_role_update_role", "callee": "ValueError", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L153"}, {"caller_nid": "crud_role_update_role", "callee": "strip", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L155"}, {"caller_nid": "crud_role_update_role", "callee": "ValueError", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L157"}, {"caller_nid": "crud_role_update_role", "callee": "ValueError", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L159"}, {"caller_nid": "crud_role_update_role", "callee": "strip", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L168"}, {"caller_nid": "crud_role_update_role", "callee": "now", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L170"}, {"caller_nid": "crud_role_update_role", "callee": "add", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L171"}, {"caller_nid": "crud_role_update_role", "callee": "commit", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L172"}, {"caller_nid": "crud_role_update_role", "callee": "refresh", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L173"}, {"caller_nid": "crud_role_soft_delete_role", "callee": "ValueError", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L180"}, {"caller_nid": "crud_role_soft_delete_role", "callee": "assert_row_deletable_by_creator", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L181"}, {"caller_nid": "crud_role_soft_delete_role", "callee": "now", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L183"}, {"caller_nid": "crud_role_soft_delete_role", "callee": "add", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L184"}, {"caller_nid": "crud_role_soft_delete_role", "callee": "update", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L186"}, {"caller_nid": "crud_role_soft_delete_role", "callee": "query", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L186"}, {"caller_nid": "crud_role_soft_delete_role", "callee": "and_", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L187"}, {"caller_nid": "crud_role_soft_delete_role", "callee": "now", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L188"}, {"caller_nid": "crud_role_soft_delete_role", "callee": "update", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L189"}, {"caller_nid": "crud_role_soft_delete_role", "callee": "query", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L189"}, {"caller_nid": "crud_role_soft_delete_role", "callee": "and_", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L190"}, {"caller_nid": "crud_role_soft_delete_role", "callee": "now", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L191"}, {"caller_nid": "crud_role_soft_delete_role", "callee": "commit", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L192"}, {"caller_nid": "crud_role_get_role_menu_ids", "callee": "query", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L202"}, {"caller_nid": "crud_role_get_role_menu_ids", "callee": "and_", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L203"}, {"caller_nid": "crud_role_update_role_menus", "callee": "fromkeys", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L218"}, {"caller_nid": "crud_role_update_role_menus", "callee": "delete", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L219"}, {"caller_nid": "crud_role_update_role_menus", "callee": "query", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L219"}, {"caller_nid": "crud_role_update_role_menus", "callee": "now", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L220"}, {"caller_nid": "crud_role_update_role_menus", "callee": "SysRoleMenu", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L222"}, {"caller_nid": "crud_role_update_role_menus", "callee": "generate_uuid", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L223"}, {"caller_nid": "crud_role_update_role_menus", "callee": "add", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L235"}, {"caller_nid": "crud_role_update_role_menus", "callee": "commit", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L236"}, {"caller_nid": "crud_role_get_role_data_scope", "callee": "query", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L246"}, {"caller_nid": "crud_role_get_role_data_scope", "callee": "and_", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L247"}, {"caller_nid": "crud_role_update_role_data_scope", "callee": "ValueError", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L263"}, {"caller_nid": "crud_role_update_role_data_scope", "callee": "now", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L266"}, {"caller_nid": "crud_role_update_role_data_scope", "callee": "add", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L267"}, {"caller_nid": "crud_role_update_role_data_scope", "callee": "update", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L270"}, {"caller_nid": "crud_role_update_role_data_scope", "callee": "query", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L270"}, {"caller_nid": "crud_role_update_role_data_scope", "callee": "and_", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L271"}, {"caller_nid": "crud_role_update_role_data_scope", "callee": "now", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L272"}, {"caller_nid": "crud_role_update_role_data_scope", "callee": "now", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L276"}, {"caller_nid": "crud_role_update_role_data_scope", "callee": "SysRoleDataScopeDetail", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L278"}, {"caller_nid": "crud_role_update_role_data_scope", "callee": "generate_uuid", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L279"}, {"caller_nid": "crud_role_update_role_data_scope", "callee": "get", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L281"}, {"caller_nid": "crud_role_update_role_data_scope", "callee": "get", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L282"}, {"caller_nid": "crud_role_update_role_data_scope", "callee": "add", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L292"}, {"caller_nid": "crud_role_update_role_data_scope", "callee": "commit", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/crud/role.py", "source_location": "L293"}]}