Backend (Django 4.2 + DRF): - Admin auth with SimpleJWT - Volcengine API client with HMAC-SHA256 signing - IAM user management (create/sync/import/disable/enable) - Billing query with pagination - Feishu webhook notifications (async) - APScheduler for periodic spending checks - AES-256 encrypted credential storage - API key auth for external system integration Frontend (Vue 3 + Element Plus): - Login page - Dashboard with stats overview - IAM user list with per-user threshold config - Billing view with spending progress bars - Alert history with type filtering - Settings page for global config and Volcengine account management Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
15 lines
335 B
Python
15 lines
335 B
Python
from django.contrib.auth.models import AbstractUser
|
|
from django.db import models
|
|
|
|
|
|
class AdminUser(AbstractUser):
|
|
"""AirGate 管理员用户"""
|
|
|
|
class Meta:
|
|
verbose_name = '管理员'
|
|
verbose_name_plural = '管理员'
|
|
db_table = 'airgate_admin_user'
|
|
|
|
def __str__(self):
|
|
return self.username
|