#!/bin/bash
# 创建所有预设用户

echo "创建所有预设用户..."

# 用户列表: username id
users=(
  "zhugeliang 1"
  "pangtong 2"
  "simayi 3"
  "zhangfei 4"
  "guanyu 5"
  "zhaoyun 6"
  "jiangwei 7"
)

BASE_DIR="/Users/chufeng/.openclaw/sanguo_projects/sanguo_vnpy"

for entry in "${users[@]}"; do
  read username id <<< "$entry"
  echo "----------------------------------------"
  echo "创建用户: $username, ID: $id"
  
  # 创建目录结构
  mkdir -p "$BASE_DIR/users/$username"/{data,logs,strategies}
  echo "目录创建完成"
done

echo "----------------------------------------"
echo "所有用户目录创建完成!"
