From fdaf53d56c4a50bc4366619c0583d3089bfbfe63 Mon Sep 17 00:00:00 2001 From: trunglt251292 Date: Mon, 30 May 2022 10:21:34 +0700 Subject: [PATCH] [Update] Get list logs --- constants.go | 3 ++- request.go | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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)) +}