[Update] Get staff info

This commit is contained in:
trunglt251292 2022-06-30 11:20:00 +07:00
parent 9a72716fd0
commit 8f2060a7dc
2 changed files with 8 additions and 2 deletions

View File

@ -7,6 +7,7 @@ const (
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"

View File

@ -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))