V1 #1
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
|
@ -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))
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue