feat(mobile-api): admin events API with salesperson teams
/api/admin/events list, get, create, update and salesperson-options, all behind BO_EVENTS. Whole-day dates, uuid as a string, team ids checked before saving. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
This commit is contained in:
1 parent
70e0651a75
commit
1fa7c60fee
8 files changed
+814
-2
No files matched your search
@@ -32,7 +32,7 @@ The admin API takes and returns `startDate` and `endDate` as plain dates. `mobil
|
||||
|
||||
### 3. Update reads, patches and saves the stored event
|
||||
|
||||
`/counter/event/save` is a full-entity save, so update loads the event with `findByUuid`, sets only name, location, dates, enabled and `doneBy`, and sends the whole stored event back. The upload fields, `createBy` and `createDateTime` survive untouched. Create sends a new event with `createBy` and `doneBy` set to the admin's username and leaves `uuid` for `services-counter` to generate.
|
||||
`/counter/event/save` is a full-entity save, so update loads the event with `findByUuid`, sets only name, location, dates, enabled and `doneBy`, and sends the whole stored event back. The upload fields, `createBy` and `createDateTime` survive untouched. Create sends a new event with `createBy` and `doneBy` set to the admin's username; its Snowflake `uuid` is generated in `mobile-api` by the shared core `Event` model and kept by `services-counter`.
|
||||
|
||||
### 4. Validation lives in `mobile-api`
|
||||
|
||||
|
||||
Reference in new issue
Block a user