Initial commit

This commit is contained in:
ChuXun
2026-01-28 23:56:33 +08:00
commit f98da73376
92 changed files with 8261 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
$login = Invoke-RestMethod -Method Post -Uri http://localhost:8080/api/v1/auth/login -Body (@{username='admin';password='admin123'}|ConvertTo-Json) -ContentType 'application/json'
$token = $login.data.token
$payload = @{username='u1';password='u1123';fullName='Test User';email='u1@example.com';phone='123456';role='EMPLOYEE'} | ConvertTo-Json
$response = Invoke-RestMethod -Method Post -Uri http://localhost:8080/api/v1/users -Headers @{Authorization='Bearer '+$token} -Body $payload -ContentType 'application/json'
$response | ConvertTo-Json -Compress