[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

@ -8,5 +8,6 @@ const (
SubjectRequestNatsStaffCreate = "authentication.request.staff.create" SubjectRequestNatsStaffCreate = "authentication.request.staff.create"
SubjectRequestNatsStaffUpdate = "authentication.request.staff.update" SubjectRequestNatsStaffUpdate = "authentication.request.staff.update"
SubjectRequestNatsAddLogs = "authentication.request.logs.create" 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) { func (Request) SaveLog(payload Log) (*Response, error) {
return requestNats(SubjectRequestNatsAddLogs, toBytes(payload)) return requestNats(SubjectRequestNatsAddLogs, toBytes(payload))
} }
// GetListLogs ...
func (Request) GetListLogs(payload Log) (*Response, error) {
return requestNats(SubjectRequestNatsLogsGetList, toBytes(payload))
}