Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

更新 API #15

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

HubertZhang
Copy link

No description provided.

@@ -0,0 +1,36 @@
declare namespace my {
Copy link
Collaborator

Choose a reason for hiding this comment

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

文件名要不改成 getOpenUserInfo 吧。

*
* 成功返回 res.response 报文格式示例如下:
* ```
* `{"response": {"code": "10000","msg": "Success","countryCode": "CN","gender": "f","nickName": "XXX","avatar": "https://tfs.alipayobjects.com/images/partner/XXXXXXXX","city": "南通市","province": "江苏省"}}`
Copy link
Collaborator

Choose a reason for hiding this comment

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

要不也放一个 parse 后的类型?

interface IGetOpenUserInfoSuccessParsedResult {
  response: {
    code: 1000 | xxxx;
    ...
  }
}

* + menu:右上角分享按钮触发
* + code:执行my.showSharePanel 触发。
*/
from: 'button'|'menu'|'code';
Copy link
Collaborator

Choose a reason for hiding this comment

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

注意空格:

'button' | 'menu' | 'code'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants