diff --git a/README.md b/README.md index f6d25d7..22d654d 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,24 @@ # Taurus Java SDK - -## 简介 -这个SDK是对Taurus接口的一个封装, 只需要简单的配置, 就可以调用Taurus的接口,让你更快捷的接入Taurus. - -### Taurus接口文档 -接口文档: http://k8s-azure.silot.tech:40015/ - -## 安装 -### Maven +

+ + + + + + + + + +

+ +## Introduction +This library is the abstraction of Taurus API for access from applications written with Java, which enable you to acces Taurus with quick and easy manner + +### Taurus API Document +API Documentation: https://taurus-docs.silot.tech/ + +## Installation +### With Maven ``` ai.silot.taurus @@ -19,13 +30,14 @@ ``` implementation 'ai.silot.taurus:taurus-sdk-java:1.0.0' ``` -### 非Maven项目 -自行下载jar包 +### Without Maven +Please download the jar package through the link below https://repo1.maven.org/maven2/ai/silot/taurus/taurus-sdk-java/1.0.0/ -## 使用 -查看 [Taurus接口文档](http://k8s-azure.silot.tech:40015/), 拿到你的API Key以及对应环境的服务器域名. +## How to use +Check [Taurus API Document](https://taurus-docs.silot.tech/), Please obtain ```API Key``` and endpoints of correspoinding environment. + ```java public class Example { public static void main(String[] args) { @@ -44,5 +56,4 @@ public class Example { } } ``` -更多示例请查看 [https://github.com/silotrd/taurus-sdk-java-example/tree/main/src/main/java/ai/silot/taurus/example](https://github.com/silotrd/taurus-sdk-java-example/tree/main/src/main/java/ai/silot/taurus/example) - +For more examples, please check [https://github.com/silotrd/taurus-sdk-java/tree/main/src/test/java/ai/silot/taurus/service](https://github.com/silotrd/taurus-sdk-java/tree/main/src/test/java/ai/silot/taurus/service) diff --git a/src/main/java/ai/silot/taurus/config/Taurus.java b/src/main/java/ai/silot/taurus/config/Taurus.java index 02812d6..f7f8103 100644 --- a/src/main/java/ai/silot/taurus/config/Taurus.java +++ b/src/main/java/ai/silot/taurus/config/Taurus.java @@ -1,3 +1,18 @@ +/* + * Copyright 2021 silot.ai + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package ai.silot.taurus.config; public class Taurus { diff --git a/src/main/java/ai/silot/taurus/model/TaurusBaseVo.java b/src/main/java/ai/silot/taurus/model/TaurusBaseVo.java index 073cc34..054bfcd 100644 --- a/src/main/java/ai/silot/taurus/model/TaurusBaseVo.java +++ b/src/main/java/ai/silot/taurus/model/TaurusBaseVo.java @@ -1,3 +1,19 @@ +/* + * Copyright 2021 silot.ai + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package ai.silot.taurus.model; import lombok.Data; diff --git a/src/main/java/ai/silot/taurus/model/TaurusListVo.java b/src/main/java/ai/silot/taurus/model/TaurusListVo.java index 0af5515..e46c29d 100644 --- a/src/main/java/ai/silot/taurus/model/TaurusListVo.java +++ b/src/main/java/ai/silot/taurus/model/TaurusListVo.java @@ -1,3 +1,19 @@ +/* + * Copyright 2021 silot.ai + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package ai.silot.taurus.model; import lombok.Data; diff --git a/src/main/java/ai/silot/taurus/model/disbursement/DisbursementVo.java b/src/main/java/ai/silot/taurus/model/disbursement/DisbursementVo.java index 8ff3d56..e722218 100644 --- a/src/main/java/ai/silot/taurus/model/disbursement/DisbursementVo.java +++ b/src/main/java/ai/silot/taurus/model/disbursement/DisbursementVo.java @@ -1,3 +1,19 @@ +/* + * Copyright 2021 silot.ai + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package ai.silot.taurus.model.disbursement; import lombok.Data; diff --git a/src/main/java/ai/silot/taurus/service/DisbursementService.java b/src/main/java/ai/silot/taurus/service/DisbursementService.java index fabe083..f45195c 100644 --- a/src/main/java/ai/silot/taurus/service/DisbursementService.java +++ b/src/main/java/ai/silot/taurus/service/DisbursementService.java @@ -1,3 +1,19 @@ +/* + * Copyright 2021 silot.ai + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package ai.silot.taurus.service; import ai.silot.taurus.config.Taurus; diff --git a/src/main/java/ai/silot/taurus/service/InvoiceService.java b/src/main/java/ai/silot/taurus/service/InvoiceService.java index 8533e8f..4f1d7ec 100644 --- a/src/main/java/ai/silot/taurus/service/InvoiceService.java +++ b/src/main/java/ai/silot/taurus/service/InvoiceService.java @@ -1,3 +1,19 @@ +/* + * Copyright 2021 silot.ai + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package ai.silot.taurus.service; import ai.silot.taurus.config.Taurus; diff --git a/src/main/java/ai/silot/taurus/util/Base64.java b/src/main/java/ai/silot/taurus/util/Base64.java index aee908d..6805cf7 100644 --- a/src/main/java/ai/silot/taurus/util/Base64.java +++ b/src/main/java/ai/silot/taurus/util/Base64.java @@ -1,3 +1,19 @@ +/* + * Copyright 2021 silot.ai + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package ai.silot.taurus.util; public class Base64 { diff --git a/src/main/java/ai/silot/taurus/util/HttpRequest.java b/src/main/java/ai/silot/taurus/util/HttpRequest.java index 4355e0d..4ca024c 100644 --- a/src/main/java/ai/silot/taurus/util/HttpRequest.java +++ b/src/main/java/ai/silot/taurus/util/HttpRequest.java @@ -1,3 +1,19 @@ +/* + * Copyright 2021 silot.ai + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package ai.silot.taurus.util; diff --git a/src/main/java/ai/silot/taurus/util/HttpResponse.java b/src/main/java/ai/silot/taurus/util/HttpResponse.java index 2186bc0..2da4c06 100644 --- a/src/main/java/ai/silot/taurus/util/HttpResponse.java +++ b/src/main/java/ai/silot/taurus/util/HttpResponse.java @@ -1,3 +1,19 @@ +/* + * Copyright 2021 silot.ai + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package ai.silot.taurus.util; public class HttpResponse { diff --git a/src/main/java/ai/silot/taurus/util/Method.java b/src/main/java/ai/silot/taurus/util/Method.java index 598812b..acf9539 100644 --- a/src/main/java/ai/silot/taurus/util/Method.java +++ b/src/main/java/ai/silot/taurus/util/Method.java @@ -1,3 +1,19 @@ +/* + * Copyright 2021 silot.ai + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package ai.silot.taurus.util; public enum Method { diff --git a/src/main/java/ai/silot/taurus/util/TaurusHttpUtil.java b/src/main/java/ai/silot/taurus/util/TaurusHttpUtil.java index 7796230..ed827e2 100644 --- a/src/main/java/ai/silot/taurus/util/TaurusHttpUtil.java +++ b/src/main/java/ai/silot/taurus/util/TaurusHttpUtil.java @@ -1,3 +1,19 @@ +/* + * Copyright 2021 silot.ai + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package ai.silot.taurus.util; import ai.silot.taurus.config.Taurus;