Files
shanxia2.0/backend/app/graphify-out/cache/ast/f33cf80ca58c1431a9dbf14be200b33ea1ce097abf2b5bebe031627853c51859.json
T
2026-05-20 18:06:21 +08:00

1 line
15 KiB
JSON

{"nodes": [{"id": "users_wuzilong_work_00code_zkxw_backend_app_core_data_scope_py", "label": "data_scope.py", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L1"}, {"id": "core_data_scope_get_user_dept_id", "label": "get_user_dept_id()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L27"}, {"id": "core_data_scope_get_child_dept_ids", "label": "_get_child_dept_ids()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L37"}, {"id": "core_data_scope_resolve_user_role_scopes", "label": "_resolve_user_role_scopes()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L62"}, {"id": "core_data_scope_apply_data_scope", "label": "apply_data_scope()", "file_type": "code", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L112"}, {"id": "core_data_scope_rationale_1", "label": "\u6570\u636e\u6743\u9650\u8fc7\u6ee4\uff08V0.3\uff1a\u57fa\u4e8e\u89d2\u8272 data_scope \u7684\u67e5\u8be2\u7ea7\u884c\u7ea7\u8fc7\u6ee4\uff09 data_scope \u503c\uff1a 1 = \u5168\u90e8\u6570\u636e 2 = \u672c\u90e8\u95e8\u6570\u636e 3", "file_type": "rationale", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L1"}, {"id": "core_data_scope_rationale_28", "label": "\u4ece SysUser \u8bfb\u53d6\u7528\u6237\u7684 dept_id\u3002", "file_type": "rationale", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L28"}, {"id": "core_data_scope_rationale_38", "label": "\u9012\u5f52\u83b7\u53d6 dept_id \u53ca\u5176\u6240\u6709\u5b50\u90e8\u95e8 ID\uff08\u542b\u81ea\u8eab\uff09\u3002", "file_type": "rationale", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L38"}, {"id": "core_data_scope_rationale_65", "label": "\u83b7\u53d6\u7528\u6237\u6240\u6709\u89d2\u8272\u7684\u6570\u636e\u6743\u9650\u914d\u7f6e\u3002 \u8fd4\u56de: [{\"data_scope\": str, \"details\": [SysRoleDataScopeDetai", "file_type": "rationale", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L65"}, {"id": "core_data_scope_rationale_113", "label": "\u6839\u636e\u7528\u6237\u89d2\u8272\u7684\u6570\u636e\u6743\u9650\u8fc7\u6ee4\u67e5\u8be2\u3002 Args: query: SQLAlchemy query \u5bf9\u8c61 model: \u67e5\u8be2", "file_type": "rationale", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L113"}], "edges": [{"source": "users_wuzilong_work_00code_zkxw_backend_app_core_data_scope_py", "target": "typing", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L12", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_core_data_scope_py", "target": "sqlalchemy", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L14", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_core_data_scope_py", "target": "sqlalchemy_orm", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L15", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_core_data_scope_py", "target": "app_core_config", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L17", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_core_data_scope_py", "target": "app_models_models", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L18", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_core_data_scope_py", "target": "core_data_scope_get_user_dept_id", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L27", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_core_data_scope_py", "target": "core_data_scope_get_child_dept_ids", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L37", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_core_data_scope_py", "target": "core_data_scope_resolve_user_role_scopes", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L62", "weight": 1.0}, {"source": "users_wuzilong_work_00code_zkxw_backend_app_core_data_scope_py", "target": "core_data_scope_apply_data_scope", "relation": "contains", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L112", "weight": 1.0}, {"source": "core_data_scope_apply_data_scope", "target": "core_data_scope_resolve_user_role_scopes", "relation": "calls", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L148", "weight": 1.0}, {"source": "core_data_scope_apply_data_scope", "target": "core_data_scope_get_user_dept_id", "relation": "calls", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L161", "weight": 1.0}, {"source": "core_data_scope_apply_data_scope", "target": "core_data_scope_get_child_dept_ids", "relation": "calls", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L174", "weight": 1.0}, {"source": "core_data_scope_rationale_1", "target": "users_wuzilong_work_00code_zkxw_backend_app_core_data_scope_py", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L1", "weight": 1.0}, {"source": "core_data_scope_rationale_28", "target": "core_data_scope_get_user_dept_id", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L28", "weight": 1.0}, {"source": "core_data_scope_rationale_38", "target": "core_data_scope_get_child_dept_ids", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L38", "weight": 1.0}, {"source": "core_data_scope_rationale_65", "target": "core_data_scope_resolve_user_role_scopes", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L65", "weight": 1.0}, {"source": "core_data_scope_rationale_113", "target": "core_data_scope_apply_data_scope", "relation": "rationale_for", "confidence": "EXTRACTED", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L113", "weight": 1.0}], "raw_calls": [{"caller_nid": "core_data_scope_get_user_dept_id", "callee": "first", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L30"}, {"caller_nid": "core_data_scope_get_user_dept_id", "callee": "filter", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L30"}, {"caller_nid": "core_data_scope_get_user_dept_id", "callee": "query", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L30"}, {"caller_nid": "core_data_scope_get_child_dept_ids", "callee": "all", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L46"}, {"caller_nid": "core_data_scope_get_child_dept_ids", "callee": "filter", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L46"}, {"caller_nid": "core_data_scope_get_child_dept_ids", "callee": "query", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L46"}, {"caller_nid": "core_data_scope_get_child_dept_ids", "callee": "in_", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L48"}, {"caller_nid": "core_data_scope_get_child_dept_ids", "callee": "append", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L57"}, {"caller_nid": "core_data_scope_get_child_dept_ids", "callee": "append", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L58"}, {"caller_nid": "core_data_scope_resolve_user_role_scopes", "callee": "all", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L70"}, {"caller_nid": "core_data_scope_resolve_user_role_scopes", "callee": "filter", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L70"}, {"caller_nid": "core_data_scope_resolve_user_role_scopes", "callee": "join", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L70"}, {"caller_nid": "core_data_scope_resolve_user_role_scopes", "callee": "query", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L70"}, {"caller_nid": "core_data_scope_resolve_user_role_scopes", "callee": "all", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L90"}, {"caller_nid": "core_data_scope_resolve_user_role_scopes", "callee": "filter", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L90"}, {"caller_nid": "core_data_scope_resolve_user_role_scopes", "callee": "query", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L90"}, {"caller_nid": "core_data_scope_resolve_user_role_scopes", "callee": "in_", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L92"}, {"caller_nid": "core_data_scope_resolve_user_role_scopes", "callee": "append", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L100"}, {"caller_nid": "core_data_scope_resolve_user_role_scopes", "callee": "setdefault", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L100"}, {"caller_nid": "core_data_scope_resolve_user_role_scopes", "callee": "append", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L103"}, {"caller_nid": "core_data_scope_resolve_user_role_scopes", "callee": "get", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L106"}, {"caller_nid": "core_data_scope_apply_data_scope", "callee": "get", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L130"}, {"caller_nid": "core_data_scope_apply_data_scope", "callee": "get", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L134"}, {"caller_nid": "core_data_scope_apply_data_scope", "callee": "hasattr", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L142"}, {"caller_nid": "core_data_scope_apply_data_scope", "callee": "hasattr", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L143"}, {"caller_nid": "core_data_scope_apply_data_scope", "callee": "filter", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L150"}, {"caller_nid": "core_data_scope_apply_data_scope", "callee": "any", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L153"}, {"caller_nid": "core_data_scope_apply_data_scope", "callee": "set", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L157"}, {"caller_nid": "core_data_scope_apply_data_scope", "callee": "set", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L158"}, {"caller_nid": "core_data_scope_apply_data_scope", "callee": "get", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L161"}, {"caller_nid": "core_data_scope_apply_data_scope", "callee": "get", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L161"}, {"caller_nid": "core_data_scope_apply_data_scope", "callee": "add", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L169"}, {"caller_nid": "core_data_scope_apply_data_scope", "callee": "update", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L174"}, {"caller_nid": "core_data_scope_apply_data_scope", "callee": "add", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L178"}, {"caller_nid": "core_data_scope_apply_data_scope", "callee": "strip", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L183"}, {"caller_nid": "core_data_scope_apply_data_scope", "callee": "add", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L187"}, {"caller_nid": "core_data_scope_apply_data_scope", "callee": "add", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L189"}, {"caller_nid": "core_data_scope_apply_data_scope", "callee": "append", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L194"}, {"caller_nid": "core_data_scope_apply_data_scope", "callee": "in_", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L194"}, {"caller_nid": "core_data_scope_apply_data_scope", "callee": "append", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L196"}, {"caller_nid": "core_data_scope_apply_data_scope", "callee": "in_", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L196"}, {"caller_nid": "core_data_scope_apply_data_scope", "callee": "filter", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L200"}, {"caller_nid": "core_data_scope_apply_data_scope", "callee": "filter", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L202"}, {"caller_nid": "core_data_scope_apply_data_scope", "callee": "or_", "source_file": "/Users/wuzilong/work/00code/zkxw/backend/app/core/data_scope.py", "source_location": "L202"}]}