From 64c7fca2cc345550887108e1c2989eaf967ebf73 Mon Sep 17 00:00:00 2001 From: buiphuan0211 <57066954+buiphuan0211@users.noreply.github.com> Date: Thu, 29 Dec 2022 13:58:16 +0700 Subject: [PATCH] rename subj --- client/supplier_user.go | 2 +- subject/supplier_user.go | 28 ++++++++++++++-------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/client/supplier_user.go b/client/supplier_user.go index 535f973..18ca0db 100644 --- a/client/supplier_user.go +++ b/client/supplier_user.go @@ -141,7 +141,7 @@ func (s SupplierUser) ResetPassword(p model.ResetPasswordRequest) (*model.ResetP // CheckTokenSupplier ... func (s SupplierUser) CheckTokenSupplier(p model.CheckTokenSupplierUserPayload) (*model.ResponseCheckTokenSupplierUser, error) { - msg, err := natsio.GetServer().Request(subject.SupplierUser.CheckToken, toBytes(p)) + msg, err := natsio.GetServer().Request(subject.SupplierUser.CheckTokenSupplierUser, toBytes(p)) if err != nil { return nil, err } diff --git a/subject/supplier_user.go b/subject/supplier_user.go index f954898..5c99eb4 100644 --- a/subject/supplier_user.go +++ b/subject/supplier_user.go @@ -8,20 +8,20 @@ func getSupplierUserValue(val string) string { var SupplierUser = struct { // Users - CreateOwner string - UpdateOwner string - CreateStaff string - UpdateStaff string - UpdateStatus string - ResetPassword string - CheckToken string + CreateOwner string + UpdateOwner string + CreateStaff string + UpdateStaff string + UpdateStatus string + ResetPassword string + CheckTokenSupplierUser string }{ // Users - CreateOwner: getSupplierUserValue("create_owner"), - UpdateOwner: getSupplierUserValue("update_owner"), - CreateStaff: getSupplierUserValue("create_staff"), - UpdateStaff: getSupplierUserValue("update_staff"), - UpdateStatus: getSupplierUserValue("update_status"), - ResetPassword: getSupplierUserValue("reset_password"), - CheckToken: getSupplierUserValue("check_token"), + CreateOwner: getSupplierUserValue("create_owner"), + UpdateOwner: getSupplierUserValue("update_owner"), + CreateStaff: getSupplierUserValue("create_staff"), + UpdateStaff: getSupplierUserValue("update_staff"), + UpdateStatus: getSupplierUserValue("update_status"), + ResetPassword: getSupplierUserValue("reset_password"), + CheckTokenSupplierUser: getSupplierUserValue("check_token_supplier_user"), }