Toggle navigation
Toggle navigation
This project
Loading...
Sign in
huayandong
/
recommend-api
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
huayandong
2019-07-19 17:29:56 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c8e7d24174a1489547091ee513649e30e830ad16
c8e7d241
1 parent
1e5c260d
update doc api
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
95 additions
and
0 deletions
boxfish-四会课小程序/四会课小程序领取0719.md
boxfish-四会课小程序/四会课小程序领取0719.md
0 → 100644
View file @
c8e7d24
[

](https://996.icu)
### 四会课程 小程序领取接口0719
##### 1. 微信用户登录,跟原来接口一样
-
URL: {{localhost}}/boxfish-online-card/wxUser/userLogin
-
Method: POST
-
RequestBody:
```
json
{
//
登录凭证
"jsCode"
:
"wx_jsCode"
,
//
用户信息
"nickName"
:
"user_nickName"
,
"avatarUrl"
:
"user_avatarUrl"
}
```
-
ResponseBody:
```
json
//
status
private
ResponseStatus
status;
private
String
message;
//
body
private
String
openId;
private
String
wxToken;
```
##### 2. 通过邀请码,建立邀请关系
-
URL: {{localhost}}/boxfish-online-card/wx_mini/addUserRelationship/v2
-
Method: POST
-
RequestBody:
```
json
{
"openId"
:
"user_openId"
,
"invitationCode"
:
"invitation_code"
}
```
-
ResponseBody:
```
java
public
static
class
Response
{
// status
private
ResponseStatus
status
;
private
String
message
;
// 邀请人信息
private
String
invitationOpenId
;
private
String
invitationNickName
;
private
String
invitationAvatarUrl
;
}
```
##### 3. 用户查询领取信息接口
-
URL: {{localhost}}/boxfish-online-card/order/mini/getUserObtainSummary
-
Method: POST
-
RequestBody:
```
json5
{
"userOpenId": "open_id_userOpenId"
}
```
-
ResponseBody:
```
json5
{
"status": "SUCCESS",
"userObtainWordCourse": true,
"userObtainExperienceCourse": false,
"userType": "BUSINESS",
"invitationList": [
{
"openId":"invitation_openId",
"nickName": "张三",
"avatarUrl": "avatar_avatarUrl",
"flagPlaceOrder": true,
"orderTime": "2019-07-19 00:00:11"
}
]
}
```
...
...
Please
register
or
login
to post a comment