Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: solve some problems in paper and url service #93

Merged
merged 4 commits into from
Nov 12, 2024

Conversation

penqee
Copy link
Contributor

@penqee penqee commented Nov 11, 2024

paper: url兼容问题
url: modified url format

@penqee penqee requested review from mutezebra, ozline, jiuxia211 and a team as code owners November 11, 2024 09:16
api/router/custom_router.go Outdated Show resolved Hide resolved
@@ -65,7 +65,7 @@ struct Picture{

// 又拍云文件目录结构
struct UpYunFileDir {
1: required string basePath,
1: required string base_path,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个字段加个注释吧

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好吧,其实我的意思是说明一下为什么 base_path 这个字段使用下划线

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

原本写的时候basePath才对,然后说要兼容就改成base_path了,但其实刚才我已经在别处实现了兼容,这里理应改回去,算是我漏掉了

api/router/custom_router.go Show resolved Hide resolved
@@ -76,3 +76,8 @@ const (
InternalETCDErrorCode = 50019 // ETCD错误
InternalTraceErrorCode = 50020 // Trace错误
)

// paper的SuccessCode是2000, 不是 10000
const (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不用新的const吧,加在上面就可以,单开一行加注释这样

@@ -65,7 +65,7 @@ struct Picture{

// 又拍云文件目录结构
struct UpYunFileDir {
1: required string basePath,
1: required string base_path,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好吧,其实我的意思是说明一下为什么 base_path 这个字段使用下划线

idl/api.thrift Outdated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

request 和 response 的顺序 ?还是规范一点一个req一个resp,还有,PaperData 这种应该放在model里吧?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个PaperData是因为兼容才写的,别的地方用不到,所以就没放model了,但确实放model里比较好

@@ -75,4 +75,7 @@ const (
InternalQueueErrorCode = 50018 // 队列错误
InternalETCDErrorCode = 50019 // ETCD错误
InternalTraceErrorCode = 50020 // Trace错误

// paper的SuccessCode是2000, 不是 10000
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

注释应该写:旧版Android的SuccessCode是2000,用作兼容

@ozline ozline merged commit 805eb3c into west2-online:main Nov 12, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants