mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 09:46:30 +00:00
62623b7123
rewrite zmq to DEALER and ROUTER add GET_USER command to get CurrentUser from Python all auth is on the python side inference run and validate annotations on python
16 lines
281 B
Cython
16 lines
281 B
Cython
cdef enum RoleEnum:
|
|
NONE = 0
|
|
Operator = 10
|
|
Validator = 20
|
|
CompanionPC = 30
|
|
Admin = 40
|
|
ResourceUploader = 50
|
|
ApiAdmin = 1000
|
|
|
|
cdef class User:
|
|
cdef public str id
|
|
cdef public str email
|
|
cdef public RoleEnum role
|
|
|
|
cdef bytes serialize(self)
|