feat(web): add tenant and user management pages

This commit is contained in:
2026-07-07 15:30:20 +08:00
parent e731ee7a2e
commit d0e9f5fb42
3 changed files with 110 additions and 1 deletions

View File

@@ -12,7 +12,7 @@ export function listTenants() {
return client.get('/api/v1/account/tenant/list')
}
export function createUser(data: { username: string; password: string; realName?: string }) {
export function createUser(data: { username: string; password: string; realName?: string; roleCodes?: string[] }) {
return client.post('/api/v1/account/user', data)
}