[Update] Get staff info

This commit is contained in:
trunglt251292 2022-06-30 11:26:22 +07:00
parent 8f2060a7dc
commit 1e02009620
2 changed files with 6 additions and 1 deletions

View File

@ -30,7 +30,7 @@ func (Request) UpdateStaff(payload Staff) (*Response, error) {
} }
// GetInfoStaff ... // GetInfoStaff ...
func (Request) GetInfoStaff(payload *CommonQuery) (*Response, error) { func (Request) GetInfoStaff(payload GetInfoStaff) (*Response, error) {
return requestNats(SubjectRequestNatsStaffGetInfo, toBytes(payload)) return requestNats(SubjectRequestNatsStaffGetInfo, toBytes(payload))
} }

View File

@ -14,6 +14,11 @@ type CommonQuery struct {
StaffID string `json:"staffID"` StaffID string `json:"staffID"`
} }
// GetInfoStaff ...
type GetInfoStaff struct {
Condition interface{} `json:"condition"`
}
// Log ... // Log ...
type Log struct { type Log struct {
Reference string `json:"reference"` Reference string `json:"reference"`