新增全部用户查看删除邮箱

This commit is contained in:
eoao
2025-09-21 19:20:00 +08:00
parent 457304eafb
commit 82bd308d56
21 changed files with 244 additions and 77 deletions

View File

@@ -2,6 +2,7 @@ import app from '../hono/hono';
import userService from '../service/user-service';
import result from '../model/result';
import userContext from '../security/user-context';
import accountService from '../service/account-service';
app.delete('/user/delete', async (c) => {
await userService.physicsDelete(c, c.req.query());
@@ -42,3 +43,15 @@ app.put('/user/restore', async (c) => {
await userService.restore(c, await c.req.json());
return c.json(result.ok());
});
app.get('/user/allAccount', async (c) => {
const data = await accountService.allAccount(c, c.req.query());
return c.json(result.ok(data));
});
app.delete('/user/deleteAccount', async (c) => {
await accountService.physicsDelete(c, c.req.query());
return c.json(result.ok());
});