From 1e02009620be56ba069f21e4dff5c08c53821aa1 Mon Sep 17 00:00:00 2001 From: trunglt251292 Date: Thu, 30 Jun 2022 11:26:22 +0700 Subject: [PATCH] [Update] Get staff info --- request.go | 2 +- struct.go | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/request.go b/request.go index bd4d034..06044af 100644 --- a/request.go +++ b/request.go @@ -30,7 +30,7 @@ func (Request) UpdateStaff(payload Staff) (*Response, error) { } // GetInfoStaff ... -func (Request) GetInfoStaff(payload *CommonQuery) (*Response, error) { +func (Request) GetInfoStaff(payload GetInfoStaff) (*Response, error) { return requestNats(SubjectRequestNatsStaffGetInfo, toBytes(payload)) } diff --git a/struct.go b/struct.go index 160205f..6cff8bf 100644 --- a/struct.go +++ b/struct.go @@ -14,6 +14,11 @@ type CommonQuery struct { StaffID string `json:"staffID"` } +// GetInfoStaff ... +type GetInfoStaff struct { + Condition interface{} `json:"condition"` +} + // Log ... type Log struct { Reference string `json:"reference"`