Update permission #4

Merged
trunglt251292 merged 8 commits from update-permission into master 2022-07-01 02:26:53 +00:00
2 changed files with 8 additions and 2 deletions
Showing only changes of commit 8f2060a7dc - Show all commits

View File

@ -5,8 +5,9 @@ const (
SubjectRequestNatsGetPermission = "authentication.request.staff.list_permission"
SubjectRequestNatsSyncStaff = "authentication.request.staff.sync_data"
SubjectRequestNatsStaffCreate = "authentication.request.staff.create"
SubjectRequestNatsStaffUpdate = "authentication.request.staff.update"
SubjectRequestNatsStaffCreate = "authentication.request.staff.create"
SubjectRequestNatsStaffUpdate = "authentication.request.staff.update"
SubjectRequestNatsStaffGetInfo = "authentication.request.staff.get_info"
SubjectRequestNatsAddLogs = "authentication.request.logs.create"
SubjectRequestNatsLogsGetList = "authentication.request.logs.list"

View File

@ -29,6 +29,11 @@ func (Request) UpdateStaff(payload Staff) (*Response, error) {
return requestNats(SubjectRequestNatsStaffUpdate, toBytes(payload))
}
// GetInfoStaff ...
func (Request) GetInfoStaff(payload *CommonQuery) (*Response, error) {
return requestNats(SubjectRequestNatsStaffGetInfo, toBytes(payload))
}
// SaveLog ...
func (Request) SaveLog(payload Log) (*Response, error) {
return requestNats(SubjectRequestNatsAddLogs, toBytes(payload))