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

核心:认证、报错 #1

Open
shaunthegeek opened this issue Oct 22, 2021 · 0 comments
Open

核心:认证、报错 #1

shaunthegeek opened this issue Oct 22, 2021 · 0 comments
Assignees

Comments

@shaunthegeek
Copy link
Member

CODING API 正确时返回:

{
   "Response" : {
      "foo" : {
         "key1" : "value1",
         "key2" : "value2",
         ...
      }
  },
  "RequestId": "foo-bar"
}

错误时返回:

{
   "Response" : {
      "Error" : {
         "Code" : "foo",
         "Message" : "bar"
      }
  },
  "RequestId": "foo-bar"
}

需要封装成异常,做成核心请求方法

@shaunthegeek shaunthegeek self-assigned this Oct 22, 2021
shaunthegeek added a commit that referenced this issue Oct 22, 2021
shaunthegeek added a commit that referenced this issue Oct 22, 2021
shaunthegeek added a commit that referenced this issue Oct 22, 2021
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

No branches or pull requests

1 participant