Update permission #4
|
@ -7,6 +7,7 @@ const (
|
||||||
|
|
||||||
SubjectRequestNatsStaffCreate = "authentication.request.staff.create"
|
SubjectRequestNatsStaffCreate = "authentication.request.staff.create"
|
||||||
SubjectRequestNatsStaffUpdate = "authentication.request.staff.update"
|
SubjectRequestNatsStaffUpdate = "authentication.request.staff.update"
|
||||||
|
SubjectRequestNatsStaffGetInfo = "authentication.request.staff.get_info"
|
||||||
|
|
||||||
SubjectRequestNatsAddLogs = "authentication.request.logs.create"
|
SubjectRequestNatsAddLogs = "authentication.request.logs.create"
|
||||||
SubjectRequestNatsLogsGetList = "authentication.request.logs.list"
|
SubjectRequestNatsLogsGetList = "authentication.request.logs.list"
|
||||||
|
|
|
@ -29,6 +29,11 @@ func (Request) UpdateStaff(payload Staff) (*Response, error) {
|
||||||
return requestNats(SubjectRequestNatsStaffUpdate, toBytes(payload))
|
return requestNats(SubjectRequestNatsStaffUpdate, toBytes(payload))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetInfoStaff ...
|
||||||
|
func (Request) GetInfoStaff(payload *CommonQuery) (*Response, error) {
|
||||||
|
return requestNats(SubjectRequestNatsStaffGetInfo, toBytes(payload))
|
||||||
|
}
|
||||||
|
|
||||||
// SaveLog ...
|
// SaveLog ...
|
||||||
func (Request) SaveLog(payload Log) (*Response, error) {
|
func (Request) SaveLog(payload Log) (*Response, error) {
|
||||||
return requestNats(SubjectRequestNatsAddLogs, toBytes(payload))
|
return requestNats(SubjectRequestNatsAddLogs, toBytes(payload))
|
||||||
|
|
Loading…
Reference in New Issue