V1 #1

Merged
trunglt251292 merged 13 commits from v1 into master 2022-05-31 03:35:14 +00:00
2 changed files with 7 additions and 1 deletions
Showing only changes of commit fdaf53d56c - Show all commits

View File

@ -9,4 +9,5 @@ const (
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))
}