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"`