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-05-12 17:29:41 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
db56fe2636988ce856b19a81ef89b50fe94979a9
db56fe26
1 parent
8b4d817a
doc api
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
6 deletions
boxfish-四会课小程序/四会课小程序领取0512.md
boxfish-四会课小程序/四会课小程序领取0512.md
View file @
db56fe2
...
...
@@ -11,11 +11,13 @@
-
RequestBody:
```
json
//
登录凭证
private
String
jsCode;
//
用户信息
private
String
nickName;
private
String
avatarUrl;
{
//
登录凭证
"jsCode"
:
"wx_jsCode"
,
//
用户信息
"nickName"
:
"user_nickName"
,
"avatarUrl"
:
"user_avatarUrl"
}
```
-
ResponseBody:
...
...
@@ -27,4 +29,49 @@
//
body
private
String
openId;
private
String
wxToken;
```
\ No newline at end of file
```
##### 2. 通过邀请码,建立邀请关系
-
URL: {{localhost}}/boxfish-online-card/wxUser/addRelationship
-
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
sourceOpenId
;
private
String
sourceNickName
;
private
String
sourceAvatarUrl
;
// 领取人信息
private
String
targetOpenId
;
private
String
targetNickName
;
private
String
targetAvatarUrl
;
// 用户当前状态
private
Boolean
flagUserHasObtain
;
// 是否领取课程
private
Long
invitationCode
;
// 已经领取,返回当前用户的邀请码
}
```
##### 3. 微信用户获取全部的教材版本、年级信息
-
URL: {{localhost}}/boxfish-online-card/textbook/version/getTextbookGrade
-
Method: GET
-
RequestBody:
\ No newline at end of file
...
...
Please
register
or
login
to post a comment