1 line
18 KiB
JSON
1 line
18 KiB
JSON
{"nodes": [{"id": "users_zlwu_work_00code_shanxia2_0_backend_app_services_web_auth_roles_py", "label": "web_auth_roles.py", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L1"}, {"id": "services_web_auth_roles_map_role_name_to_web", "label": "_map_role_name_to_web()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L13"}, {"id": "str", "label": "str", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L13"}, {"id": "services_web_auth_roles_role_rows_for_user", "label": "_role_rows_for_user()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L25"}, {"id": "session", "label": "Session", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L25"}, {"id": "services_web_auth_roles_user_has_bound_roles", "label": "user_has_bound_roles()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L42"}, {"id": "bool", "label": "bool", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L42"}, {"id": "services_web_auth_roles_resolve_web_role_for_user", "label": "resolve_web_role_for_user()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L53"}, {"id": "services_web_auth_roles_iter_user_menu_perm_codes", "label": "iter_user_menu_perm_codes()", "file_type": "code", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L71"}, {"id": "services_web_auth_roles_rationale_1", "label": "Web \u7ba1\u7406\u7aef\u767b\u5f55\uff1a\u57fa\u4e8e V0.3 sys_user / sys_user_role / sys_role \u7684\u89d2\u8272\u4e0e\u83dc\u5355\u6743\u9650\u89e3\u6790", "file_type": "rationale", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L1"}, {"id": "services_web_auth_roles_rationale_14", "label": "\u5c06 sys_role.role_name \u6620\u5c04\u4e3a web-admin \u4f7f\u7528\u7684 role \u5b57\u7b26\u4e32\u3002", "file_type": "rationale", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L14"}, {"id": "services_web_auth_roles_rationale_43", "label": "\u7528\u6237\u662f\u5426\u5728 sys_user_role \u4e2d\u7ed1\u5b9a\u4e86\u81f3\u5c11\u4e00\u4e2a\u6709\u6548\u89d2\u8272\u3002", "file_type": "rationale", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L43"}, {"id": "services_web_auth_roles_rationale_54", "label": "\u6839\u636e\u7528\u6237\u5173\u8054\u89d2\u8272\u89e3\u6790 Web \u7aef role\uff08admin / super_admin\uff09\u3002", "file_type": "rationale", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L54"}, {"id": "services_web_auth_roles_rationale_74", "label": "\u7528\u6237\u901a\u8fc7\u89d2\u8272\u5173\u8054\u5f97\u5230\u7684\u83dc\u5355\u6743\u9650\u6807\u8bc6\uff08sys_menu.perms\uff0c\u7a7a\u5219\u9000\u56de\u83dc\u5355 id\uff09\u3002", "file_type": "rationale", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L74"}], "edges": [{"source": "users_zlwu_work_00code_shanxia2_0_backend_app_services_web_auth_roles_py", "target": "typing", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L4", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_app_services_web_auth_roles_py", "target": "sqlalchemy", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L6", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_app_services_web_auth_roles_py", "target": "sqlalchemy_orm", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L7", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_app_services_web_auth_roles_py", "target": "app_core_config", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L9", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_app_services_web_auth_roles_py", "target": "app_models_models", "relation": "imports_from", "context": "import", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L10", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_app_services_web_auth_roles_py", "target": "services_web_auth_roles_map_role_name_to_web", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L13", "weight": 1.0}, {"source": "services_web_auth_roles_map_role_name_to_web", "target": "str", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L13", "weight": 1.0}, {"source": "services_web_auth_roles_map_role_name_to_web", "target": "str", "relation": "references", "context": "return_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L13", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_app_services_web_auth_roles_py", "target": "services_web_auth_roles_role_rows_for_user", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L25", "weight": 1.0}, {"source": "services_web_auth_roles_role_rows_for_user", "target": "session", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L25", "weight": 1.0}, {"source": "services_web_auth_roles_role_rows_for_user", "target": "str", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L25", "weight": 1.0}, {"source": "services_web_auth_roles_role_rows_for_user", "target": "str", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L25", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_app_services_web_auth_roles_py", "target": "services_web_auth_roles_user_has_bound_roles", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L42", "weight": 1.0}, {"source": "services_web_auth_roles_user_has_bound_roles", "target": "session", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L42", "weight": 1.0}, {"source": "services_web_auth_roles_user_has_bound_roles", "target": "str", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L42", "weight": 1.0}, {"source": "services_web_auth_roles_user_has_bound_roles", "target": "str", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L42", "weight": 1.0}, {"source": "services_web_auth_roles_user_has_bound_roles", "target": "bool", "relation": "references", "context": "return_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L42", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_app_services_web_auth_roles_py", "target": "services_web_auth_roles_resolve_web_role_for_user", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L53", "weight": 1.0}, {"source": "services_web_auth_roles_resolve_web_role_for_user", "target": "session", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L53", "weight": 1.0}, {"source": "services_web_auth_roles_resolve_web_role_for_user", "target": "str", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L53", "weight": 1.0}, {"source": "services_web_auth_roles_resolve_web_role_for_user", "target": "str", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L53", "weight": 1.0}, {"source": "services_web_auth_roles_resolve_web_role_for_user", "target": "str", "relation": "references", "context": "return_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L53", "weight": 1.0}, {"source": "users_zlwu_work_00code_shanxia2_0_backend_app_services_web_auth_roles_py", "target": "services_web_auth_roles_iter_user_menu_perm_codes", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L71", "weight": 1.0}, {"source": "services_web_auth_roles_iter_user_menu_perm_codes", "target": "session", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L71", "weight": 1.0}, {"source": "services_web_auth_roles_iter_user_menu_perm_codes", "target": "str", "relation": "references", "context": "parameter_type", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L71", "weight": 1.0}, {"source": "services_web_auth_roles_iter_user_menu_perm_codes", "target": "str", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L71", "weight": 1.0}, {"source": "services_web_auth_roles_iter_user_menu_perm_codes", "target": "str", "relation": "references", "context": "generic_arg", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L71", "weight": 1.0}, {"source": "services_web_auth_roles_user_has_bound_roles", "target": "services_web_auth_roles_role_rows_for_user", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L47", "weight": 1.0}, {"source": "services_web_auth_roles_resolve_web_role_for_user", "target": "services_web_auth_roles_role_rows_for_user", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L58", "weight": 1.0}, {"source": "services_web_auth_roles_resolve_web_role_for_user", "target": "services_web_auth_roles_map_role_name_to_web", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L65", "weight": 1.0}, {"source": "services_web_auth_roles_iter_user_menu_perm_codes", "target": "services_web_auth_roles_user_has_bound_roles", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L77", "weight": 1.0}, {"source": "services_web_auth_roles_rationale_1", "target": "users_zlwu_work_00code_shanxia2_0_backend_app_services_web_auth_roles_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L1", "weight": 1.0}, {"source": "services_web_auth_roles_rationale_14", "target": "services_web_auth_roles_map_role_name_to_web", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L14", "weight": 1.0}, {"source": "services_web_auth_roles_rationale_43", "target": "services_web_auth_roles_user_has_bound_roles", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L43", "weight": 1.0}, {"source": "services_web_auth_roles_rationale_54", "target": "services_web_auth_roles_resolve_web_role_for_user", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L54", "weight": 1.0}, {"source": "services_web_auth_roles_rationale_74", "target": "services_web_auth_roles_iter_user_menu_perm_codes", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L74", "weight": 1.0}], "raw_calls": [{"caller_nid": "services_web_auth_roles_map_role_name_to_web", "callee": "strip", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L15"}, {"caller_nid": "services_web_auth_roles_role_rows_for_user", "callee": "order_by", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L27"}, {"caller_nid": "services_web_auth_roles_role_rows_for_user", "callee": "join", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L27"}, {"caller_nid": "services_web_auth_roles_role_rows_for_user", "callee": "query", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L27"}, {"caller_nid": "services_web_auth_roles_role_rows_for_user", "callee": "desc", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L37"}, {"caller_nid": "services_web_auth_roles_user_has_bound_roles", "callee": "strip", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L46"}, {"caller_nid": "services_web_auth_roles_resolve_web_role_for_user", "callee": "strip", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L57"}, {"caller_nid": "services_web_auth_roles_resolve_web_role_for_user", "callee": "strip", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L61"}, {"caller_nid": "services_web_auth_roles_iter_user_menu_perm_codes", "callee": "distinct", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L82"}, {"caller_nid": "services_web_auth_roles_iter_user_menu_perm_codes", "callee": "join", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L82"}, {"caller_nid": "services_web_auth_roles_iter_user_menu_perm_codes", "callee": "join", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L82"}, {"caller_nid": "services_web_auth_roles_iter_user_menu_perm_codes", "callee": "query", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L82"}, {"caller_nid": "services_web_auth_roles_iter_user_menu_perm_codes", "callee": "and_", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L85"}, {"caller_nid": "services_web_auth_roles_iter_user_menu_perm_codes", "callee": "and_", "is_member_call": false, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L93"}, {"caller_nid": "services_web_auth_roles_iter_user_menu_perm_codes", "callee": "strip", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L110"}, {"caller_nid": "services_web_auth_roles_iter_user_menu_perm_codes", "callee": "add", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L112"}, {"caller_nid": "services_web_auth_roles_iter_user_menu_perm_codes", "callee": "add", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L114"}, {"caller_nid": "services_web_auth_roles_iter_user_menu_perm_codes", "callee": "strip", "is_member_call": true, "source_file": "/Users/zlwu/work/00code/shanxia2.0/backend/app/services/web_auth_roles.py", "source_location": "L114"}]} |