📖 คู่มือผู้ดูแลระบบ (System Admin)

สำหรับทีมสนับสนุนระดับ Platform — จัดการ tenant ทุกองค์กร

เข้าสู่ระบบ: /support-admin/login
Email: support@platform.local · Password: support123

1. แดชบอร์ดหลัก

หลัง login จะเห็น Tenants ทั้งหมดในระบบ พร้อมสถิติ: จำนวนการประมูล, ผู้ใช้, ผู้ประมูล, Support tickets

2. Impersonate (เข้าในฐานะ Organizer)

คลิกปุ่ม "Act as" ข้าง tenant ใดๆ → ระบบจะพาไปหน้า /settings ของ tenant นั้น
สามารถแก้ไข: ข้อมูลองค์กร, ค่าธรรมเนียม, SMTP/LINE, Payment Methods — ทุกอย่างเหมือนเป็น organizer เอง
แถบสีเหลืองจะแสดงตลอด บอกว่ากำลัง impersonate อยู่ · คลิก "ออกจากโหมด impersonate" เพื่อกลับ

3. Revenue Dashboard

เมนู Revenue — เห็นยอดขายต่อ tenant: hammer total, platform fee, open tickets, avg rating
กรองด้วยวันที่ · Export CSV ได้

4. Billing Rules (ค่าธรรมเนียม Platform)

เมนู Billing Rules — สร้าง/แก้ไข rule การเก็บค่าธรรมเนียมจาก organizer

  • Scope: Global (ทุก tenant) / Per Tenant / Per Auction / Per Product Type
  • Model: % ของราคาเคาะซื้อ / ฿ ต่อชิ้น / ฿ ต่อ event / ฿ ต่อเดือน
  • Exclusive: ถ้าติ๊ก → tenant นี้ใช้เฉพาะ rule ที่ตั้งไว้ ไม่ cascade ไป global
  • Priority: ตัวเลขสูง = ใช้ก่อน

5. Platform Invoices

สร้าง invoice รายเดือนสำหรับเก็บค่าบริการจาก organizer · กดปุ่ม "Generate monthly" → ระบบคำนวณจาก billing rules อัตโนมัติ · Mark paid เมื่อได้รับเงิน

6. Interest Analytics

เมนู 🔥 Interest — เห็นสินค้ายอดนิยม: top items by interest score, traffic by hour, by product type

7. Sellers 360°

เมนู 📊 Sellers 360° — ภาพรวมผู้ขายทุก tenant: ยอดขาย, sell-through rate, ราคาเฉลี่ยต่อประเภท, demographics ผู้ประมูล, traffic sources

8. PDPA Data Requests

เมนู 🛡 PDPA — คำขอ export/ลบข้อมูลจากผู้ใช้ · Approve หรือ Reject พร้อม notes

9. Translations

เมนู 🌐 Translations — แก้ไขคำแปล TH/EN ทั้งระบบ โดยไม่ต้องแก้ code
เลือก group → แก้ค่า → กด Save · ระบบจะใช้ค่าจาก DB override แทนไฟล์

10. Audit Log

เมนู Audit — ดู log ทุกการกระทำในระบบ ข้ามทุก tenant · กรองตาม tenant + action