个人中心页获取信息

地址: /api/wx/search_enterprise 参数:

  • session_token
  • enterprise_name 企业名称

返回内容 data为JSON数组,里面包含:

  • enterprise_id
  • enterprise_name

搜索企业

地址: /api/wx/search_enterprise 参数:

  • session_token
  • enterprise_name 企业名称

申请加入企业

地址: /api/wx/apply_name 参数:

  • session_token
  • enterprise_name 企业名称

返回内容 code 200成功,-1 已经有企业了 -2 企业不存在

申请企业状态

地址: /api/wx/apply_status 参数:

  • session_token

返回内容

  • code
  • msg
  • data
    • apply_eid 申请企业的id
    • apply_name 申请企业的名字
    • apply_state 申请状态 -1 拒绝 0 是申请中 1 是通过

退出企业

地址: /api/wx/exit_enterprise 参数:

  • session_token 返回:
  • code 200成功 -1 退出失败

企业界面信息

地址: /api/wx/get_enterprise_info 参数:

  • session_token 返回: data为JSON对象
    • name 企业名称
    • phone 电话
    • icon_id 企业头像

获取通讯录

地址: /api/wx/get_contacts 参数: session_token 返回内容:

code
msg
data:{department_name:部门名称, employee:[{
alias_name, email:邮箱, employee_id:员工id, entry_date: 入职日期, name: 姓名, phone: 电话, photo:头像, sex: 性别, work_num: 工号, work_phone:内部电话},{…}]}

搜索通讯录

地址: /api/wx/search_contacts 参数: session_token,content 关键字

返回内容:

code
msg
data: [{
alias_name, email:邮箱, employee_id:员工id, entry_date: 入职日期, name: 姓名, phone: 电话, photo:头像, sex: 性别, work_num: 工号, work_phone:内部电话},{…}]

results matching ""

    No results matching ""