View Source WeChat.Work.OA.Checkin (wechat v0.12.0)
OA - 打卡
Link to this section Summary
Types
要设置的天日期,取值在1-31之间。联合 year_month
组成唯一日期 比如20201205
打卡规则的规则ID
对应 group_id
规则下的班次id,通过预先拉取规则信息获取,0代表休息
打卡类型
排班表月份,格式为年月,如202011
Functions
获取企业所有打卡规则
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
@spec get_user_option( WeChat.Work.client(), WeChat.Work.agent(), timestamp :: integer(), WeChat.Work.Contacts.User.userid_list() ) :: WeChat.response()
获取员工打卡规则
@spec list_data( WeChat.Work.client(), WeChat.Work.agent(), type(), start_time :: timestamp(), end_time :: timestamp(), WeChat.Work.Contacts.User.userid_list() ) :: WeChat.response()
获取打卡记录数据
@spec list_day_data( WeChat.Work.client(), WeChat.Work.agent(), start_time :: timestamp(), end_time :: timestamp(), WeChat.Work.Contacts.User.userid_list() ) :: WeChat.response()
获取打卡日报数据
@spec list_month_data( WeChat.Work.client(), WeChat.Work.agent(), start_time :: timestamp(), end_time :: timestamp(), WeChat.Work.Contacts.User.userid_list() ) :: WeChat.response()
获取打卡月报数据
@spec list_options(WeChat.Work.client(), WeChat.Work.agent()) :: WeChat.response()
获取企业所有打卡规则
@spec list_scheduling( WeChat.Work.client(), WeChat.Work.agent(), start_time :: timestamp(), end_time :: timestamp(), WeChat.Work.Contacts.User.userid_list() ) :: WeChat.response()
获取打卡人员排班信息
@spec set_scheduling( WeChat.Work.client(), WeChat.Work.agent(), group_id(), year_month(), items :: [{WeChat.Work.Contacts.User.userid(), day(), schedule_id()}] ) :: WeChat.response()
为打卡人员排班
@spec set_user_face( WeChat.Work.client(), WeChat.Work.agent(), WeChat.Work.Contacts.User.userid(), user_face :: String.t() ) :: WeChat.response()
录入打卡人员人脸信息