From 8f2060a7dc61573e9565b7fe5775c26d17c0895b Mon Sep 17 00:00:00 2001 From: trunglt251292 Date: Thu, 30 Jun 2022 11:20:00 +0700 Subject: [PATCH] [Update] Get staff info --- constants.go | 5 +++-- request.go | 5 +++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/constants.go b/constants.go index eefc318..c89d0fd 100644 --- a/constants.go +++ b/constants.go @@ -5,8 +5,9 @@ const ( SubjectRequestNatsGetPermission = "authentication.request.staff.list_permission" SubjectRequestNatsSyncStaff = "authentication.request.staff.sync_data" - SubjectRequestNatsStaffCreate = "authentication.request.staff.create" - SubjectRequestNatsStaffUpdate = "authentication.request.staff.update" + SubjectRequestNatsStaffCreate = "authentication.request.staff.create" + SubjectRequestNatsStaffUpdate = "authentication.request.staff.update" + SubjectRequestNatsStaffGetInfo = "authentication.request.staff.get_info" SubjectRequestNatsAddLogs = "authentication.request.logs.create" SubjectRequestNatsLogsGetList = "authentication.request.logs.list" diff --git a/request.go b/request.go index 1bddcf1..bd4d034 100644 --- a/request.go +++ b/request.go @@ -29,6 +29,11 @@ func (Request) UpdateStaff(payload Staff) (*Response, error) { return requestNats(SubjectRequestNatsStaffUpdate, toBytes(payload)) } +// GetInfoStaff ... +func (Request) GetInfoStaff(payload *CommonQuery) (*Response, error) { + return requestNats(SubjectRequestNatsStaffGetInfo, toBytes(payload)) +} + // SaveLog ... func (Request) SaveLog(payload Log) (*Response, error) { return requestNats(SubjectRequestNatsAddLogs, toBytes(payload))