DEFAULT_ROLES = [ {"id": 1, "role_name": "管理员", "role_code": "admin", "status": 1, "remark": "系统管理"}, {"id": 2, "role_name": "业务员", "role_code": "salesman", "status": 1, "remark": "录单和本人订单"}, {"id": 3, "role_name": "管理层", "role_code": "manager", "status": 1, "remark": "审批和经营数据"}, {"id": 4, "role_name": "司机", "role_code": "driver", "status": 1, "remark": "司机任务执行"}, ] DEFAULT_CONFIGS = [ {"config_key": "arrears_generate_mode", "config_value": "delivered", "config_name": "欠款生成模式"}, {"config_key": "logistics_timeout_hours", "config_value": "48", "config_name": "物流超时小时数"}, {"config_key": "inactive_customer_days", "config_value": "90", "config_name": "沉默客户周期"}, {"config_key": "inactive_customer_amount_threshold", "config_value": "1000", "config_name": "沉默客户金额阈值"}, {"config_key": "report_category_mapping", "config_value": "{}", "config_name": "报表分类映射"}, ] DEFAULT_CATEGORIES = [ {"id": 1, "category_name": "工业品", "category_code": "industry", "sort_no": 1, "status": 1}, {"id": 2, "category_name": "日用品", "category_code": "daily", "sort_no": 2, "status": 1}, ] DEFAULT_ADMIN_USER = { "id": 1, "username": "admin01", "real_name": "系统管理员", "mobile": "13900000001", "role_id": 1, "status": 1, } def build_bootstrap_summary() -> dict: return { "roles": DEFAULT_ROLES, "configs": DEFAULT_CONFIGS, "categories": DEFAULT_CATEGORIES, "admin_user": DEFAULT_ADMIN_USER, }