Skip to content

Commit

Permalink
fix:修复zh.toml中的错误码描述 (polarismesh#743)
Browse files Browse the repository at this point in the history
* fix issue polarismesh#629 (polarismesh#693)

* docs:优化错误信息描述

* Update zh.toml

* fix:修复eureka心跳协议错误码不兼容问题

* fix:修复eureka心跳协议错误码不兼容问题

* unit:添加单元测试

* test:调整测试配置文件位置

* fix:issue polarismesh#692

* fix:issue polarismesh#692

* fix:issue polarismesh#692

* fix:issue polarismesh#692

* docs:add error code desc

* fix:code style

* fix:修复zh.toml中的错误码描述 (polarismesh#742)
  • Loading branch information
chuntaojun authored and hoErYu committed Oct 17, 2022
1 parent f88effe commit 2c0ba19
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 25 deletions.
31 changes: 20 additions & 11 deletions README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,25 @@

README:

- [介绍](#介绍)
- [快速入门](#快速入门)
- [安装部署](#安装部署)
- [使用样例](#使用样例)
- [详细文档](#详细文档)
- [OpenAPI参考](#OpenAPI参考)
- [性能测试报告](#性能测试报告)
- [官网文档](#官网文档)
- [交流群](#交流群)
- [参与贡献](#参与贡献)
- [北极星:服务发现和治理](#北极星服务发现和治理)
- [介绍](#介绍)
- [快速入门](#快速入门)
- [安装部署](#安装部署)
- [下载单机版](#下载单机版)
- [启动服务端](#启动服务端)
- [验证安装](#验证安装)
- [使用样例](#使用样例)
- [服务注册发现和健康检查](#服务注册发现和健康检查)
- [服务限流](#服务限流)
- [流量调度](#流量调度)
- [配置管理](#配置管理)
- [更多指南](#更多指南)
- [详细文档](#详细文档)
- [OpenAPI参考](#openapi参考)
- [性能测试报告](#性能测试报告)
- [官网文档](#官网文档)
- [交流群](#交流群)
- [参与贡献](#参与贡献)

北极星原理介绍及相关实践文档请见[北极星官网](https://polarismesh.cn/)

Expand Down Expand Up @@ -87,7 +96,7 @@ cd polaris-standalone-release_v1.11.0-beta.2.linux
在Linux/Unix/Mac平台下,执行以下命令启动北极星单机版:

```
./install.sh
bash install.sh
```

在Windows平台下,执行以下命令启动北极星单机版:
Expand Down
31 changes: 20 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,25 @@ English | [简体中文](./README-zh.md)

README:

- [Introduction](#introduction)
- [Getting started](#getting-started)
- [Installation](#installation)
- [Examples](#examples)
- [Document](#document)
- [OpenAPI](#openapi)
- [Benchmark Report](#benchmark-report)
- [Official Document](#official-document)
- [Chat group](#chat-group)
- [Contribution](#contribution)
- [Polaris: Service Discovery and Governance](#polaris-service-discovery-and-governance)
- [Introduction](#introduction)
- [Getting started](#getting-started)
- [Installation](#installation)
- [Download package](#download-package)
- [Start server](#start-server)
- [Verify installation](#verify-installation)
- [Examples](#examples)
- [Service Discovery and HealthCheck](#service-discovery-and-healthcheck)
- [RateLimit](#ratelimit)
- [Flow Control](#flow-control)
- [Configuration management](#configuration-management)
- [More details](#more-details)
- [Document](#document)
- [OpenAPI](#openapi)
- [Benchmark Report](#benchmark-report)
- [Official Document](#official-document)
- [Chat group](#chat-group)
- [Contribution](#contribution)

Principle or user manual can visit [website](https://polarismesh.cn/) to learn more

Expand Down Expand Up @@ -87,7 +96,7 @@ cd polaris-standalone-release_v1.11.0-beta.2.linux
Under Linux/Unix/Mac platform, use those commands to start polaris standalone server:

```
./install.sh
bash install.sh
```

Under Windows platform, use those commands to start polaris standalone server:
Expand Down
4 changes: 2 additions & 2 deletions apiserver/httpserver/i18n/zh.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
400192 = "限流标识非法" #InvalidFluxRateLimitSetKey
400201 = "资源已存在" #ExistedResource
400202 = "未找到资源" #NotFoundResource
400203 = "当前服务存在服务,请先删除服务,再删除命名空间" #NamespaceExistedServices
400203 = "当前命名空间存在服务,请先删除服务,再删除命名空间" #NamespaceExistedServices
400204 = "当前服务存在实例,请先删除实例,再删除服务" #ServiceExistedInstances
400205 = "当前服务存在路由规则,请先删除路由规则,再删除服务" #ServiceExistedRoutings
400206 = "当前服务存在限流规则,请先删除限流规则,再删除服务" #ServiceExistedRateLimits
Expand All @@ -85,7 +85,7 @@
400215 = "用户已存在" #UserExisted
400216 = "用户组已存在" #UserGroupExisted
400217 = "鉴权策略规则已存在" #AuthStrategyRuleExisted
400218 = "某些子账号已属当前拥有人" #SubAccountExisted
400218 = "主账户下还存在子账户,请先删除所有子账户,在删除主账户" #SubAccountExisted
400219 = "当前命名空间存在配置分组,请先删除配置分组,再删除命名空间" #NamespaceExistedConfigGroups
400301 = "服务未找到" #NotFoundService
400302 = "路由未找到" #NotFoundRouting
Expand Down
2 changes: 1 addition & 1 deletion import-format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ cd ../

find . -name "*.go" -type f | grep -v .pb.go|grep -v test/tools/tools.go | grep -v ./plugin.go | xargs -I {} goimports-reviser -rm-unused -format {} -project-name github.com/polarismesh/polaris

go fmt ./...
go fmt ./...

0 comments on commit 2c0ba19

Please sign in to comment.