refactor: delete remain of department and users
This commit is contained in:
@@ -15,10 +15,18 @@
|
||||
- /ask-code
|
||||
- /register
|
||||
- /reset
|
||||
- /departments
|
||||
- /email
|
||||
- /finance
|
||||
- /items
|
||||
- /
|
||||
- /{id}/upload_images
|
||||
- /{id}/set_primary_image
|
||||
- /{id}/borrow
|
||||
- /{id}/return_item
|
||||
- /available
|
||||
- /in_use
|
||||
- /categories
|
||||
- /images
|
||||
- /proof-images
|
||||
- /usages
|
||||
|
||||
@@ -53,8 +61,6 @@
|
||||
| `finance/` | GET/POST/PUT/DELETE | 财务记录 CRUD 操作 |
|
||||
| `finance/{id}/upload_images/` | POST | 上传财务凭证图片 |
|
||||
| `finance/{id}/` | DELETE | 删除财务记录(发送邮件通知) |
|
||||
| `departments/` | GET/POST/PUT/DELETE | 部门 CRUD 操作 |
|
||||
| `departments/{id}/` | DELETE | 删除部门(发送邮件通知) |
|
||||
| `finance/categories/`(原 `finance_categories/`) | GET/POST/PUT/DELETE | 财务分类 CRUD 操作 |
|
||||
| `proof-images/` | GET/POST/PUT/DELETE | 财务凭证图片 CRUD 操作 |
|
||||
| `proof-images/{id}/` | DELETE | 删除凭证图片(自动删除物理文件) |
|
||||
@@ -98,8 +104,6 @@ Authorization: Bearer <token>
|
||||
[schema.sql](./schema.sql)
|
||||
|
||||
- users/account (系统用户/认证信息)
|
||||
- departments (组织/部门)
|
||||
- parent_id -> departments.id (自关联父级)
|
||||
- categories (物品类别)
|
||||
- parent_id -> categories.id (自关联父级)
|
||||
- items (物品基本信息)
|
||||
|
||||
Reference in New Issue
Block a user