package authentication // Request ... type Request struct { } // CheckPermission ... func (Request) CheckPermission(payload StaffCheckPermissionBody) (*Response, error) { return requestNats(SubjectRequestNatsCheckPermission, toBytes(payload)) } // GetPermission ... func (Request) GetPermission(payload StaffGetPermissions) (*Response, error) { return requestNats(SubjectRequestNatsGetPermission, toBytes(payload)) } // SyncData ... func (Request) SyncData(payload ListStaff) (*Response, error) { return requestNats(SubjectRequestNatsSyncStaff, toBytes(payload)) } // SyncRoleData ... func (Request) SyncRoleData(payload ListRole) (*Response, error) { return requestNats(SubjectRequestNatsSyncRole, toBytes(payload)) }