-
Notifications
You must be signed in to change notification settings - Fork 9
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
Conversation
@@ -65,7 +65,7 @@ struct Picture{ | |||
|
|||
// 又拍云文件目录结构 | |||
struct UpYunFileDir { | |||
1: required string basePath, | |||
1: required string base_path, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个字段加个注释吧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好吧,其实我的意思是说明一下为什么 base_path 这个字段使用下划线
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
原本写的时候basePath才对,然后说要兼容就改成base_path了,但其实刚才我已经在别处实现了兼容,这里理应改回去,算是我漏掉了
pkg/errno/code.go
Outdated
@@ -76,3 +76,8 @@ const ( | |||
InternalETCDErrorCode = 50019 // ETCD错误 | |||
InternalTraceErrorCode = 50020 // Trace错误 | |||
) | |||
|
|||
// paper的SuccessCode是2000, 不是 10000 | |||
const ( |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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里吧?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个PaperData是因为兼容才写的,别的地方用不到,所以就没放model了,但确实放model里比较好
pkg/errno/code.go
Outdated
@@ -75,4 +75,7 @@ const ( | |||
InternalQueueErrorCode = 50018 // 队列错误 | |||
InternalETCDErrorCode = 50019 // ETCD错误 | |||
InternalTraceErrorCode = 50020 // Trace错误 | |||
|
|||
// paper的SuccessCode是2000, 不是 10000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
注释应该写:旧版Android的SuccessCode是2000,用作兼容
paper: url兼容问题
url: modified url format