diff --git a/constants.go b/constants.go index e2974f5..eefc318 100644 --- a/constants.go +++ b/constants.go @@ -8,5 +8,6 @@ const ( SubjectRequestNatsStaffCreate = "authentication.request.staff.create" SubjectRequestNatsStaffUpdate = "authentication.request.staff.update" - SubjectRequestNatsAddLogs = "authentication.request.logs.create" + SubjectRequestNatsAddLogs = "authentication.request.logs.create" + SubjectRequestNatsLogsGetList = "authentication.request.logs.list" ) diff --git a/request.go b/request.go index f79a6db..d24f6b0 100644 --- a/request.go +++ b/request.go @@ -33,3 +33,8 @@ func (Request) UpdateStaff(payload Staff) (*Response, error) { func (Request) SaveLog(payload Log) (*Response, error) { return requestNats(SubjectRequestNatsAddLogs, toBytes(payload)) } + +// GetListLogs ... +func (Request) GetListLogs(payload Log) (*Response, error) { + return requestNats(SubjectRequestNatsLogsGetList, toBytes(payload)) +}