黄鹏宇
发布于 2023-05-28 / 270 阅读
0
0

学而思志愿填报接口

baseUrl = https://aceword.yicp.fun/
在header中需携带openid = openid

已完成

  1. 获取手机号,同时会更新userInfo中的手机号
    GET /phone-num?code=【code】
  2. 获取openid
    GET /openid?code=【code】
  3. 获取formDataList
    GET /form-data-list
    返回值:
[
        {
            "openid": "123",
            "uuid": "b305f462-8297-488f-b8ad-8ffc429e6227",
            "district": "区",
            "middleSchool": "二中",
            "hasHighSchoolQuota": true,
            "estimatedScore": 123.0,
            "middleSchoolRank": 12,
            "includePrivateSchool": true,
            "includeOuterDistrictSchool": true,
            "includeNoRoomSchool": true,
            "isCreateMode": null,
            "updateDate": "2023-05-28 23:13:35"
        }
    ]
  1. 插入一个formData
    POST /form-data
    data:
{
    "district": "区",
    "middleSchool": "二中",
    "hasHighSchoolQuota": true,
    "estimatedScore": 123,
    "middleSchoolRank": 12,
    "includePrivateSchool": true,
    "includeOuterDistrictSchool": true,
    "includeNoRoomSchool": true,
    "isCreateMode": true
}
  1. 获取userInfo
    GET /user-info
{
        "openid": "123",
        "phoneNum": "176858373711",
        "district": "区",
        "middleSchool": "二中",
        "hasHighSchoolQuota": true,
        "estimatedScore": 123.0,
        "middleSchoolRank": 12,
        "includePrivateSchool": true,
        "includeOuterDistrictSchool": true,
        "includeNoRoomSchool": true,
        "createDate": "2023-05-28T14:53:39.000+00:00"
    }

未完成

  1. 填写平行志愿
  2. 获取平行志愿列表
  3. 根据id,获取平行志愿详情
  4. 删除平行志愿
  5. 删除推荐志愿

评论