public class WxCpSchoolUserServiceImpl extends Object implements WxCpSchoolUserService
| 构造器和说明 | 
|---|
| WxCpSchoolUserServiceImpl() | 
| 限定符和类型 | 方法和说明 | 
|---|---|
| WxCpBatchResultList | batchCreateParent(@NonNull WxCpBatchCreateParentRequest request)批量创建家长
 请求方式:POST(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/batch_create_parent? | 
| WxCpBatchResultList | batchCreateStudent(@NonNull WxCpBatchCreateStudentRequest request)批量创建学生
 请求方式:POST(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/batch_create_student? | 
| WxCpBatchResultList | batchDeleteParent(String... userIdList)批量删除家长
 请求方式:POST(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/batch_delete_parent? | 
| WxCpBatchResultList | batchDeleteStudent(@NonNull WxCpBatchDeleteStudentRequest request)批量删除学生
 请求方式:POST(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/batch_delete_student? | 
| WxCpBatchResultList | batchUpdateParent(@NonNull WxCpBatchUpdateParentRequest request)批量更新家长
 请求方式:POST(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/batch_update_parent? | 
| WxCpBatchResultList | batchUpdateStudent(@NonNull WxCpBatchUpdateStudentRequest request)批量更新学生
 请求方式:POST(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/batch_update_student? | 
| String | convertToOpenId(@NonNull String externalUserId)外部联系人openid转换
 企业和服务商可通过此接口,将微信外部联系人的userid(如何获取?) | 
| WxCpCreateDepartment | createDepartment(@NonNull WxCpCreateDepartmentRequest request)创建部门
 
 请求方式:POST(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/department/create? | 
| WxCpBaseResp | createParent(@NonNull WxCpCreateParentRequest request)创建家长
 请求方式:POST(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/create_parent? | 
| WxCpBaseResp | createStudent(@NonNull String studentUserId,
             @NonNull String name,
             @NonNull List<Integer> departments)创建学生
 请求方式:POST(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/create_student? | 
| WxCpBaseResp | deleteDepartment(Integer id)删除部门
 请求方式:GET(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/department/delete? | 
| WxCpBaseResp | deleteParent(@NonNull String userId)删除家长
 请求方式:GET(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/delete_parent? | 
| WxCpBaseResp | deleteStudent(@NonNull String studentUserId)删除学生
 请求方式:GET(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/delete_student? | 
| WxCpAllowScope | getAllowScope(@NonNull Integer agentId)获取可使用的家长范围
 获取可在微信「学校通知-学校应用」使用该应用的家长范围,以学生或部门列表的形式返回。 | 
| WxCpExternalContact | getExternalContact(@NonNull String externalUserId)获取外部联系人详情
 学校可通过此接口,根据外部联系人的userid(如何获取?) | 
| WxCpOauth2UserInfo | getSchoolUserInfo(@NonNull String code)获取家校访问用户身份
 该接口用于根据code获取家长或者学生信息
 
 请求方式:GET(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/getuserinfo? | 
| Integer | getSubscribeMode()获取关注「学校通知」的模式
 可通过此接口获取家长关注「学校通知」的模式:“可扫码填写资料加入”或“禁止扫码填写资料加入”
 
 请求方式:GET(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/get_subscribe_mode? | 
| WxCpSubscribeQrCode | getSubscribeQrCode()获取「学校通知」二维码
 学校可通过此接口获取「学校通知」二维码,家长可通过扫描此二维码关注「学校通知」并接收学校推送的消息。 | 
| WxCpUserResult | getUser(@NonNull String userId)读取学生或家长
 请求方式:GET(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/get? | 
| WxCpOauth2UserInfo | getUserInfo(@NonNull String code)获取访问用户身份
 该接口用于根据code获取成员信息
 
 请求方式:GET(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/user/getuserinfo? | 
| WxCpUserListResult | getUserList(@NonNull Integer departmentId,
           Integer fetchChild)获取部门成员详情
 请求方式:GET(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/list? | 
| WxCpListParentResult | getUserListParent(@NonNull Integer departmentId)获取部门家长详情
 请求方式:GET(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/list_parent? | 
| WxCpDepartmentList | listDepartment(Integer id)获取部门列表
 请求方式:GET(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/department/list? | 
| WxCpBaseResp | setArchSyncMode(@NonNull Integer archSyncMode)设置家校通讯录自动同步模式
 企业和第三方可通过此接口修改家校通讯录与班级标签之间的自动同步模式,注意,一旦设置禁止自动同步,将无法再次开启。 | 
| WxCpBaseResp | setSubscribeMode(@NonNull Integer subscribeMode)设置关注「学校通知」的模式
 可通过此接口修改家长关注「学校通知」的模式:“可扫码填写资料加入”或“禁止扫码填写资料加入”
 
 请求方式:POST(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/set_subscribe_mode? | 
| WxCpSetUpgradeInfo | setUpgradeInfo(Long upgradeTime,
              Integer upgradeSwitch)修改自动升年级的配置
 请求方式: POST(HTTPS)
 请求地址: https://qyapi.weixin.qq.com/cgi-bin/school/set_upgrade_info? | 
| WxCpBaseResp | updateDepartment(@NonNull WxCpUpdateDepartmentRequest request)更新部门
 
 请求方式:POST(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/department/update? | 
| WxCpBaseResp | updateParent(@NonNull WxCpUpdateParentRequest request)更新家长
 请求方式:POST(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/update_parent? | 
| WxCpBaseResp | updateStudent(@NonNull String studentUserId,
             String newStudentUserId,
             String name,
             List<Integer> departments)更新学生
 请求方式:POST(HTTPS)
 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/user/update_student? | 
public WxCpOauth2UserInfo getUserInfo(@NonNull @NonNull String code) throws WxErrorException
WxCpSchoolUserService请求方式:GET(HTTPS) 请求地址:https://qyapi.weixin.qq.com/cgi-bin/user/getuserinfo?access_token=ACCESS_TOKEN&code=CODE
getUserInfo 在接口中 WxCpSchoolUserServicecode - the codeWxErrorException - the wx error exceptionpublic WxCpOauth2UserInfo getSchoolUserInfo(@NonNull @NonNull String code) throws WxErrorException
WxCpSchoolUserService请求方式:GET(HTTPS) 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/getuserinfo?access_token=ACCESS_TOKEN&code=CODE
getSchoolUserInfo 在接口中 WxCpSchoolUserServicecode - the codeWxErrorException - the wx error exceptionpublic WxCpBaseResp createStudent(@NonNull @NonNull String studentUserId, @NonNull @NonNull String name, @NonNull @NonNull List<Integer> departments) throws WxErrorException
WxCpSchoolUserServicecreateStudent 在接口中 WxCpSchoolUserServicestudentUserId - the student user idname - the namedepartments - the departmentsWxErrorException - the wx error exceptionpublic WxCpBatchResultList batchCreateStudent(@NonNull @NonNull WxCpBatchCreateStudentRequest request) throws WxErrorException
WxCpSchoolUserServicebatchCreateStudent 在接口中 WxCpSchoolUserServicerequest - the requestWxErrorException - the wx error exceptionpublic WxCpBatchResultList batchDeleteStudent(@NonNull @NonNull WxCpBatchDeleteStudentRequest request) throws WxErrorException
WxCpSchoolUserServicebatchDeleteStudent 在接口中 WxCpSchoolUserServicerequest - the requestWxErrorException - the wx error exceptionpublic WxCpBatchResultList batchUpdateStudent(@NonNull @NonNull WxCpBatchUpdateStudentRequest request) throws WxErrorException
WxCpSchoolUserServicebatchUpdateStudent 在接口中 WxCpSchoolUserServicerequest - the requestWxErrorException - the wx error exceptionpublic WxCpBaseResp deleteStudent(@NonNull @NonNull String studentUserId) throws WxErrorException
WxCpSchoolUserServicedeleteStudent 在接口中 WxCpSchoolUserServicestudentUserId - the student user idWxErrorException - the wx error exceptionpublic WxCpBaseResp updateStudent(@NonNull @NonNull String studentUserId, String newStudentUserId, String name, List<Integer> departments) throws WxErrorException
WxCpSchoolUserServiceupdateStudent 在接口中 WxCpSchoolUserServicestudentUserId - the student user idnewStudentUserId - the new student user idname - the namedepartments - the departmentsWxErrorException - the wx error exceptionpublic WxCpBaseResp createParent(@NonNull @NonNull WxCpCreateParentRequest request) throws WxErrorException
WxCpSchoolUserServicecreateParent 在接口中 WxCpSchoolUserServicerequest - the requestWxErrorException - the wx error exceptionpublic WxCpBatchResultList batchCreateParent(@NonNull @NonNull WxCpBatchCreateParentRequest request) throws WxErrorException
WxCpSchoolUserServicebatchCreateParent 在接口中 WxCpSchoolUserServicerequest - the requestWxErrorException - the wx error exceptionpublic WxCpBatchResultList batchDeleteParent(@NonNull String... userIdList) throws WxErrorException
WxCpSchoolUserServicebatchDeleteParent 在接口中 WxCpSchoolUserServiceuserIdList - the user id listWxErrorException - the wx error exceptionpublic WxCpBatchResultList batchUpdateParent(@NonNull @NonNull WxCpBatchUpdateParentRequest request) throws WxErrorException
WxCpSchoolUserServicebatchUpdateParent 在接口中 WxCpSchoolUserServicerequest - the requestWxErrorException - the wx error exceptionpublic WxCpUserResult getUser(@NonNull @NonNull String userId) throws WxErrorException
WxCpSchoolUserServicegetUser 在接口中 WxCpSchoolUserServiceuserId - the user idWxErrorException - the wx error exceptionpublic WxCpUserListResult getUserList(@NonNull @NonNull Integer departmentId, Integer fetchChild) throws WxErrorException
WxCpSchoolUserServicegetUserList 在接口中 WxCpSchoolUserServicedepartmentId - 获取的部门idfetchChild - 1/0:是否递归获取子部门下面的成员WxErrorException - the wx error exceptionpublic WxCpListParentResult getUserListParent(@NonNull @NonNull Integer departmentId) throws WxErrorException
WxCpSchoolUserServicegetUserListParent 在接口中 WxCpSchoolUserServicedepartmentId - 获取的部门idWxErrorException - the wx error exceptionpublic WxCpBaseResp updateParent(@NonNull @NonNull WxCpUpdateParentRequest request) throws WxErrorException
WxCpSchoolUserServiceupdateParent 在接口中 WxCpSchoolUserServicerequest - the requestWxErrorException - the wx error exceptionpublic WxCpBaseResp deleteParent(@NonNull @NonNull String userId) throws WxErrorException
WxCpSchoolUserServicedeleteParent 在接口中 WxCpSchoolUserServiceuserId - the user idWxErrorException - the wx error exceptionpublic WxCpBaseResp setArchSyncMode(@NonNull @NonNull Integer archSyncMode) throws WxErrorException
WxCpSchoolUserService请求方式:POST(HTTPS) 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/set_arch_sync_mode?access_token=ACCESS_TOKEN
setArchSyncMode 在接口中 WxCpSchoolUserServicearchSyncMode - 家校通讯录同步模式:1-禁止将标签同步至家校通讯录,2-禁止将家校通讯录同步至标签,3-禁止家校通讯录和标签相互同步WxErrorException - the wx error exceptionpublic WxCpCreateDepartment createDepartment(@NonNull @NonNull WxCpCreateDepartmentRequest request) throws WxErrorException
WxCpSchoolUserService请求方式:POST(HTTPS) 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/department/create?access_token=ACCESS_TOKEN
createDepartment 在接口中 WxCpSchoolUserServicerequest - 请求参数对象WxErrorException - the wx error exceptionpublic WxCpBaseResp updateDepartment(@NonNull @NonNull WxCpUpdateDepartmentRequest request) throws WxErrorException
WxCpSchoolUserService请求方式:POST(HTTPS) 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/department/update?access_token=ACCESS_TOKEN
updateDepartment 在接口中 WxCpSchoolUserServicerequest - the requestWxErrorException - the wx error exceptionpublic WxCpBaseResp deleteDepartment(Integer id) throws WxErrorException
WxCpSchoolUserServicedeleteDepartment 在接口中 WxCpSchoolUserServiceid - the idWxErrorException - the wx error exceptionpublic WxCpBaseResp setSubscribeMode(@NonNull @NonNull Integer subscribeMode) throws WxErrorException
WxCpSchoolUserService请求方式:POST(HTTPS) 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/set_subscribe_mode?access_token=ACCESS_TOKEN
setSubscribeMode 在接口中 WxCpSchoolUserServicesubscribeMode - 关注模式, 1:可扫码填写资料加入, 2:禁止扫码填写资料加入WxErrorException - the wx error exceptionpublic Integer getSubscribeMode() throws WxErrorException
WxCpSchoolUserService请求方式:GET(HTTPS) 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/get_subscribe_mode?access_token=ACCESS_TOKEN
getSubscribeMode 在接口中 WxCpSchoolUserServiceWxErrorException - the wx error exceptionpublic WxCpExternalContact getExternalContact(@NonNull @NonNull String externalUserId) throws WxErrorException
WxCpSchoolUserService请求方式:GET(HTTPS) 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/get?access_token=ACCESS_TOKEN&external_userid =EXTERNAL_USERID
getExternalContact 在接口中 WxCpSchoolUserServiceexternalUserId - 外部联系人的userid,注意不是学校成员的帐号WxErrorException - the wx error exceptionpublic WxCpAllowScope getAllowScope(@NonNull @NonNull Integer agentId) throws WxErrorException
WxCpSchoolUserService请求方式:GET(HTTPS) 请求地址:https://qyapi.weixin.qq.com/cgi-bin/school/agent/get_allow_scope?access_token=ACCESS_TOKEN&agentid=AGENTID
getAllowScope 在接口中 WxCpSchoolUserServiceagentId - the agent idWxErrorException - the wx error exceptionpublic String convertToOpenId(@NonNull @NonNull String externalUserId) throws WxErrorException
WxCpSchoolUserService请求方式:POST(HTTPS) 请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/convert_to_openid?access_token=ACCESS_TOKEN
convertToOpenId 在接口中 WxCpSchoolUserServiceexternalUserId - the external user idWxErrorException - the wx error exceptionpublic WxCpDepartmentList listDepartment(Integer id) throws WxErrorException
WxCpSchoolUserServicelistDepartment 在接口中 WxCpSchoolUserServiceid - the idWxErrorException - the wx error exceptionpublic WxCpSubscribeQrCode getSubscribeQrCode() throws WxErrorException
WxCpSchoolUserServicegetSubscribeQrCode 在接口中 WxCpSchoolUserServiceWxErrorException - the wx error exceptionpublic WxCpSetUpgradeInfo setUpgradeInfo(Long upgradeTime, Integer upgradeSwitch) throws WxErrorException
WxCpSchoolUserServicesetUpgradeInfo 在接口中 WxCpSchoolUserServiceupgradeTime - the upgrade timeupgradeSwitch - the upgrade switchWxErrorException - the wx error exceptionCopyright © 2024. All rights reserved.