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
sinkcup opened this issue Oct 22, 2021 · 0 comments
Open

核心:认证、报错 #1

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

Comments

@sinkcup
Copy link
Member

sinkcup commented Oct 22, 2021

CODING API 正确时返回:

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

错误时返回:

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

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

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