[Update] Add method #5
|
@ -1,6 +1,8 @@
|
||||||
package authentication
|
package authentication
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
SubjectRequestGetSecretKey = "authentication.request.auth.get_key"
|
||||||
|
|
||||||
SubjectRequestNatsCheckPermission = "authentication.request.staff.check_permission"
|
SubjectRequestNatsCheckPermission = "authentication.request.staff.check_permission"
|
||||||
SubjectRequestNatsGetPermission = "authentication.request.staff.list_permission"
|
SubjectRequestNatsGetPermission = "authentication.request.staff.list_permission"
|
||||||
SubjectRequestNatsSyncStaff = "authentication.request.staff.sync_data"
|
SubjectRequestNatsSyncStaff = "authentication.request.staff.sync_data"
|
||||||
|
|
|
@ -53,3 +53,8 @@ func (Request) GetListLogs(payload *CommonQuery) (*Response, error) {
|
||||||
func (Request) GetTokenWithPhoneNumber(payload *GetTokenByPhoneBody) (*Response, error) {
|
func (Request) GetTokenWithPhoneNumber(payload *GetTokenByPhoneBody) (*Response, error) {
|
||||||
return requestNats(SubjectRequestNatsGetTokenWithPhone, toBytes(payload))
|
return requestNats(SubjectRequestNatsGetTokenWithPhone, toBytes(payload))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetSecretKeyAuth ...
|
||||||
|
func (Request) GetSecretKeyAuth() (*Response, error) {
|
||||||
|
return requestNats(SubjectRequestGetSecretKey, toBytes(""))
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue