feat(drivers): add doubao_new driver #2114
Merged
xrgzs merged 18 commits intoOpenListTeam:mainfrom Mar 23, 2026
Merged
Conversation
Signed-off-by: MadDogOwner <xiaoran@xrgzs.top>
Signed-off-by: MadDogOwner <xiaoran@xrgzs.top>
Signed-off-by: MadDogOwner <xiaoran@xrgzs.top>
Signed-off-by: MadDogOwner <xiaoran@xrgzs.top>
Signed-off-by: MadDogOwner <xiaoran@xrgzs.top>
Signed-off-by: MadDogOwner <xiaoran@xrgzs.top>
Signed-off-by: MadDogOwner <xiaoran@xrgzs.top>
Signed-off-by: MadDogOwner <xiaoran@xrgzs.top>
Signed-off-by: MadDogOwner <xiaoran@xrgzs.top>
7 tasks
Signed-off-by: MadDogOwner <xiaoran@xrgzs.top>
Signed-off-by: MadDogOwner <xiaoran@xrgzs.top>
cfb84b8 to
daf6126
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
This PR ports and registers a new doubao_new storage driver to restore functionality after upstream Doubao/Feishu API migration, addressing the issues reported in #2079 and related PRs.
Changes:
- Added the new
drivers/doubao_newimplementation (auth/token handling, listing, linking/preview, upload, and basic file operations). - Registered the driver via
drivers/all.goso it’s included in the build.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| drivers/doubao_new/driver.go | Core driver implementation: list/link/preview, mkdir/move/rename/remove, upload workflow, storage details. |
| drivers/doubao_new/auth.go | DPoP generation/parsing, token refresh logic, encrypted keypair parsing, request auth header application. |
| drivers/doubao_new/util.go | Shared request/response helpers, pagination for listing, CSRF retry helpers, preview link helper. |
| drivers/doubao_new/upload.go | Upload prepare/block negotiation, merge-block upload, v3 fallback block upload, finish upload. |
| drivers/doubao_new/types.go | API response/request type definitions used across the driver. |
| drivers/doubao_new/meta.go | Driver config/registration and Addition fields. |
| drivers/all.go | Imports the new driver so it’s registered at runtime. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Member
|
已实现使用 Cookie 刷新 token |
7 tasks
Signed-off-by: MadDogOwner <xiaoran@xrgzs.top>
jyxjjj
previously approved these changes
Mar 23, 2026
Signed-off-by: MadDogOwner <xiaoran@xrgzs.top>
jyxjjj
approved these changes
Mar 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description / 描述
从 Alist 移植了
doubao_new驱动Motivation and Context / 背景
原有的豆包驱动疑似API迁移,无法获得新API后的所有操作更新,也无法进行操作。
这是我提出的issue:Closes #2079
这是续接旧的已关闭PR:Closes #2093
Closes #2236
How Has This Been Tested? / 测试
通过docker构建移植后的新版本后测试该驱动可以正常使用。
Checklist / 检查清单
I have read the CONTRIBUTING document.
我已阅读 CONTRIBUTING 文档。
I have formatted my code with
go fmtor prettier.我已使用
go fmt或 prettier 格式化提交的代码。I have added appropriate labels to this PR (or mentioned needed labels in the description if lacking permissions).
我已为此 PR 添加了适当的标签(如无权限或需要的标签不存在,请在描述中说明,管理员将后续处理)。
I have requested review from relevant code authors using the "Request review" feature when applicable.
我已在适当情况下使用"Request review"功能请求相关代码作者进行审查。
I have updated the repository accordingly (If it’s needed).
我已相应更新了相关仓库(若适用)。