[Update] Get list logs

This commit is contained in:
trunglt251292 2022-05-30 10:21:34 +07:00
parent 4007238604
commit fdaf53d56c
2 changed files with 7 additions and 1 deletions

View File

@ -9,4 +9,5 @@ const (
SubjectRequestNatsStaffUpdate = "authentication.request.staff.update"
SubjectRequestNatsAddLogs = "authentication.request.logs.create"
SubjectRequestNatsLogsGetList = "authentication.request.logs.list"
)

View File

@ -33,3 +33,8 @@ func (Request) UpdateStaff(payload Staff) (*Response, error) {
func (Request) SaveLog(payload Log) (*Response, error) {
return requestNats(SubjectRequestNatsAddLogs, toBytes(payload))
}
// GetListLogs ...
func (Request) GetListLogs(payload Log) (*Response, error) {
return requestNats(SubjectRequestNatsLogsGetList, toBytes(payload))
}