V1 #1
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
|
@ -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