Skip to content

Commit

Permalink
* [docs] deprecate old client and update documentation accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
ysicing committed Dec 24, 2024
1 parent 783102e commit 08df8ce
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,11 @@ import "github.com/easysoft/go-zentao/v21/zentao"

### 支持PathINFO/Get内置页面接口

> 有限支持, 是对Restful API的拓展
> 暂无计划支持
## 测试账号
## 本地测试

> 推荐本地部署
> 推荐本地部署, 示例为docker compose部署
```bash
#部署方式:
Expand Down
9 changes: 9 additions & 0 deletions buildin/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# buildin

> Deprecated: please use zentao.NewBasicAuthClient instead
## Usage

```bash
go get github.com/easysoft/go-zentao/v21/buildin
```
2 changes: 2 additions & 0 deletions buildin/zentao.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ type Client struct {
Login *LoginService
}

// Deprecated: please use zentao.NewBasicAuthClient instead
// NewBasicAuthClient 使用用户名和密码创建一个客户端
func NewBasicAuthClient(username, password string, options ...ClientOptionFunc) (*Client, error) {
client, err := newClient(options...)
if err != nil {
Expand Down

0 comments on commit 08df8ce

Please sign in to comment.