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

OA - 打卡

Link to this section Summary

Types

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

打卡规则的规则ID

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

打卡类型

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

Link to this section Types

@type day() :: 1..31

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

@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

Link to this section Functions

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 :: timestamp(),
  end_time :: timestamp(),
  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 :: timestamp(),
  end_time :: timestamp(),
  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 :: timestamp(),
  end_time :: timestamp(),
  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 :: timestamp(),
  end_time :: timestamp(),
  WeChat.Work.Contacts.User.userid_list()
) :: 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

录入打卡人员人脸信息