55 lines
833 B
Plaintext
55 lines
833 B
Plaintext
- Do the endpoints -
|
|
|
|
RelationshipDutyCompany org*perm
|
|
|
|
Select -> Inner Join with duty_id
|
|
Create -> Redis cache pre-determined value = company_id
|
|
Update -> Redis cache pre-determined with duty_id
|
|
|
|
|
|
Select -> Inner Join with duty_id
|
|
Create -> Redis cache pre-determined value = company_id
|
|
Update -> Redis cache pre-determined with duty_id
|
|
|
|
Redis Cache material
|
|
- duty_id
|
|
- duty_uu_id
|
|
- duty_code: 96
|
|
|
|
- company_id
|
|
- company_uu_id
|
|
|
|
- uu_id
|
|
- get_available_patch_methods(['confirm', 'delete', 'active'])
|
|
|
|
|
|
Endpoint Acccess List
|
|
|
|
|
|
|
|
list endpoint + confirm-delete-active
|
|
{
|
|
confirm True, delete=True, active=True,
|
|
}
|
|
|
|
|
|
POST
|
|
update endpoint +
|
|
create endpoint +
|
|
|
|
PATCH endpoint && update endpoint +
|
|
duty_code ??? if 96 =>
|
|
{
|
|
"patch_type": [
|
|
"confirm", Application Manager [OK] : Restrict
|
|
"delete", SuperUser
|
|
"active", SuperUser
|
|
]}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|