feat(config): add missing dictionary item CRUD, setting delete, and numbering delete routes

- Dictionary items: POST/PUT/DELETE endpoints under /config/dictionaries/{dict_id}/items
- Settings: DELETE /config/settings/{key}
- Numbering rules: DELETE /config/numbering-rules/{id}
- Fix workflow Entities: add deleted_at and version_field to process_definition,
  add standard fields to token and process_variable entities
- Update seed data for expanded permissions
This commit is contained in:
iven
2026-04-11 12:52:29 +08:00
parent 82986e988d
commit 184034ff6b
11 changed files with 223 additions and 14 deletions

View File

@@ -113,7 +113,22 @@ const DEFAULT_PERMISSIONS: &[(&str, &str, &str, &str, &str)] = &[
];
/// Indices of read-only permissions within DEFAULT_PERMISSIONS.
const READ_PERM_INDICES: &[usize] = &[1, 5, 9, 11, 15, 19, 23, 24, 28, 29, 34, 38, 37, 38];
const READ_PERM_INDICES: &[usize] = &[
1, // user:read
5, // role:read
8, // permission:read
10, // organization:read
14, // department:read
18, // position:read
22, // dictionary:list
25, // menu:list
27, // setting:read
30, // numbering:list
33, // theme:read
35, // language:list
38, // workflow:list
39, // workflow:read
];
/// Seed default auth data for a new tenant.
///