From 75c468a06d7cf47a2cc7b049c0c10e80b94ab9da Mon Sep 17 00:00:00 2001 From: trunglt251292 Date: Wed, 13 Jul 2022 11:57:52 +0700 Subject: [PATCH] [Update] Add method --- constants.go | 2 ++ request.go | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/constants.go b/constants.go index 1840ff6..c345c2e 100644 --- a/constants.go +++ b/constants.go @@ -1,6 +1,8 @@ package authentication const ( + SubjectRequestGetSecretKey = "authentication.request.auth.get_key" + SubjectRequestNatsCheckPermission = "authentication.request.staff.check_permission" SubjectRequestNatsGetPermission = "authentication.request.staff.list_permission" SubjectRequestNatsSyncStaff = "authentication.request.staff.sync_data" diff --git a/request.go b/request.go index 325255c..73be2dc 100644 --- a/request.go +++ b/request.go @@ -53,3 +53,8 @@ func (Request) GetListLogs(payload *CommonQuery) (*Response, error) { func (Request) GetTokenWithPhoneNumber(payload *GetTokenByPhoneBody) (*Response, error) { return requestNats(SubjectRequestNatsGetTokenWithPhone, toBytes(payload)) } + +// GetSecretKeyAuth ... +func (Request) GetSecretKeyAuth() (*Response, error) { + return requestNats(SubjectRequestGetSecretKey, toBytes("")) +} -- 2.34.1