View Source WeChat.Work.OA.Checkin (wechat v0.16.0)

OA - 打卡

Summary

Types

要设置的天日期,取值在1-31之间。联合 year_month 组成唯一日期 比如20201205

过滤类型,1表示按打卡时间过滤,2表示按设备上传打卡记录的时间过滤,默认值是1

打卡规则的规则ID

对应 group_id 规则下的班次id,通过预先拉取规则信息获取,0代表休息

打卡类型

排班表月份,格式为年月,如202011

Types

@type day() :: 1..31

要设置的天日期,取值在1-31之间。联合 year_month 组成唯一日期 比如20201205

@type filter_type() :: 1 | 2

过滤类型,1表示按打卡时间过滤,2表示按设备上传打卡记录的时间过滤,默认值是1

@type group_id() :: integer()

打卡规则的规则ID

@type schedule_id() :: integer()

对应 group_id 规则下的班次id,通过预先拉取规则信息获取,0代表休息

@type timestamp() :: integer()
@type type() :: 1..3

打卡类型

  • 1: 上下班打卡
  • 2: 外出打卡
  • 3: 全部打卡
@type year_month() :: String.t()

排班表月份,格式为年月,如202011

Functions

Link to this function

get_hardware_checkin_data(client, agent, filter_type \\ 1, start_time, end_time, userid_list)

View Source
@spec get_hardware_checkin_data(
  WeChat.Work.client(),
  WeChat.Work.agent(),
  filter_type(),
  start_time(),
  end_time(),
  WeChat.Work.Contacts.User.userid_list()
) :: WeChat.response()

获取设备打卡数据 - 官方文档

Link to this function

get_user_option(client, agent, timestamp, userid_list)

View Source

获取员工打卡规则 - 官方文档

Link to this function

list_data(client, agent, type, start_time, end_time, userid_list)

View Source
@spec list_data(
  WeChat.Work.client(),
  WeChat.Work.agent(),
  type(),
  start_time(),
  end_time(),
  WeChat.Work.Contacts.User.userid_list()
) :: WeChat.response()

获取打卡记录数据 - 官方文档

Link to this function

list_day_data(client, agent, start_time, end_time, userid_list)

View Source
@spec list_day_data(
  WeChat.Work.client(),
  WeChat.Work.agent(),
  start_time(),
  end_time(),
  WeChat.Work.Contacts.User.userid_list()
) :: WeChat.response()

获取打卡日报数据 - 官方文档

Link to this function

list_month_data(client, agent, start_time, end_time, userid_list)

View Source
@spec list_month_data(
  WeChat.Work.client(),
  WeChat.Work.agent(),
  start_time(),
  end_time(),
  WeChat.Work.Contacts.User.userid_list()
) :: WeChat.response()

获取打卡月报数据 - 官方文档

Link to this function

list_options(client, agent)

View Source
@spec list_options(WeChat.Work.client(), WeChat.Work.agent()) :: WeChat.response()

获取企业所有打卡规则 - 官方文档

Link to this function

list_scheduling(client, agent, start_time, end_time, userid_list)

View Source
@spec list_scheduling(
  WeChat.Work.client(),
  WeChat.Work.agent(),
  start_time(),
  end_time(),
  WeChat.Work.Contacts.User.userid_list()
) :: WeChat.response()

获取打卡人员排班信息 - 官方文档

Link to this function

re_checkin(client, agent, userid, schedule_date_time, schedule_checkin_time \\ nil, checkin_time, remark \\ "")

View Source
@spec re_checkin(
  WeChat.Work.client(),
  WeChat.Work.agent(),
  WeChat.Work.Contacts.User.userid(),
  schedule_date_time :: timestamp(),
  schedule_checkin_time :: timestamp(),
  checkin_time :: timestamp(),
  remark :: String.t()
) :: WeChat.response()

为打卡人员补卡 - 官方文档

Link to this function

set_scheduling(client, agent, group_id, year_month, items)

View Source

为打卡人员排班 - 官方文档

Link to this function

set_user_face(client, agent, userid, user_face)

View Source

录入打卡人员人脸信息 - 官方文档