diff --git a/client/supplier_user.go b/client/supplier_user.go index e468652..0ce947d 100644 --- a/client/supplier_user.go +++ b/client/supplier_user.go @@ -242,8 +242,8 @@ func (s SupplierUser) ChangePassword(p model.ChangePasswordRequest) error { return nil } -// CheckTokenSupplier ... -func (s SupplierUser) CheckTokenSupplier(p model.CheckTokenSupplierUserPayload) (*model.ResponseCheckTokenSupplierUser, error) { +// CheckTokenSupplierUser ... +func (s SupplierUser) CheckTokenSupplierUser(p model.CheckTokenSupplierUserPayload) (*model.ResponseCheckTokenSupplierUser, error) { 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 79822ae..8ce68fb 100644 --- a/subject/supplier_user.go +++ b/subject/supplier_user.go @@ -8,32 +8,30 @@ func getSupplierUserValue(val string) string { var SupplierUser = struct { // Users - LoginUser string - Logout string - GetListUser string - DetailUser string - CreateOwner string - UpdateOwner string - CreateStaff string - UpdateStaff string - UpdateStatus string - ResetPassword string - ChangePassword string - CheckToken string + LoginUser string + Logout string + GetListUser string + DetailUser string + CreateOwner string + UpdateOwner string + CreateStaff string + UpdateStaff string + UpdateStatus string + ResetPassword string + ChangePassword string CheckTokenSupplierUser string }{ // Users - LoginUser: getSupplierUserValue("login_user"), - Logout: getSupplierUserValue("logout"), - GetListUser: getSupplierUserValue("get_list_user"), - DetailUser: getSupplierUserValue("detail_user"), - CreateOwner: getSupplierUserValue("create_owner"), - UpdateOwner: getSupplierUserValue("update_owner"), - CreateStaff: getSupplierUserValue("create_staff"), - UpdateStaff: getSupplierUserValue("update_staff"), - UpdateStatus: getSupplierUserValue("update_status"), - ResetPassword: getSupplierUserValue("reset_password"), - ChangePassword: getSupplierUserValue("change_password"), - CheckToken: getSupplierUserValue("check_token"), + LoginUser: getSupplierUserValue("login_user"), + Logout: getSupplierUserValue("logout"), + GetListUser: getSupplierUserValue("get_list_user"), + DetailUser: getSupplierUserValue("detail_user"), + CreateOwner: getSupplierUserValue("create_owner"), + UpdateOwner: getSupplierUserValue("update_owner"), + CreateStaff: getSupplierUserValue("create_staff"), + UpdateStaff: getSupplierUserValue("update_staff"), + UpdateStatus: getSupplierUserValue("update_status"), + ResetPassword: getSupplierUserValue("reset_password"), + ChangePassword: getSupplierUserValue("change_password"), CheckTokenSupplierUser: getSupplierUserValue("check_token_supplier_user"), }