[Update] Add method #5

Merged
trunglt251292 merged 1 commits from update-permission into master 2022-07-13 04:58:12 +00:00
2 changed files with 7 additions and 0 deletions
Showing only changes of commit 75c468a06d - Show all commits

View File

@ -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"

View File

@ -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(""))
}