using System;
using System.Xml.Serialization;
using System.Collections.Generic;
using Top.Api;
namespace DingTalk.Api.Response
{
///
/// OapiAttendanceVacationRecordListResponse.
///
public class OapiAttendanceVacationRecordListResponse : DingTalkResponse
{
///
/// dingOpenErrcode
///
[XmlElement("errcode")]
public long Errcode { get; set; }
///
/// errorMsg
///
[XmlElement("errmsg")]
public string Errmsg { get; set; }
///
/// 结果值
///
[XmlElement("result")]
public OapiLeaveRecordListVoDomain Result { get; set; }
///
/// 是否正确访问
///
[XmlElement("success")]
public bool Success { get; set; }
///
/// OapiLeaveRecordVoDomain Data Structure.
///
[Serializable]
public class OapiLeaveRecordVoDomain : TopObject
{
///
/// 计算类型(add delete update 如果是请假则为null)
///
[XmlElement("cal_type")]
public string CalType { get; set; }
///
/// 额度有效期结束时间(毫秒级时间戳)
///
[XmlElement("end_time")]
public long EndTime { get; set; }
///
/// 假期类型唯一标识
///
[XmlElement("leave_code")]
public string LeaveCode { get; set; }
///
/// 原因
///
[XmlElement("leave_reason")]
public string LeaveReason { get; set; }
///
/// 假期记录类型(leave update其中一种 请假还是更新配额)
///
[XmlElement("leave_record_type")]
public string LeaveRecordType { get; set; }
///
/// 请假状态(请假申请 init 请假通过 success 请假被拒 refuse 请假撤销 abort 撤销已同意的请假单并通过 revoke其中一种)
///
[XmlElement("leave_status")]
public string LeaveStatus { get; set; }
///
/// 显示单位(day hour 其中一种按天、小时计算)
///
[XmlElement("leave_view_unit")]
public string LeaveViewUnit { get; set; }
///
/// 假期记录标识(扣减多条假期配额 该值不为空)
///
[XmlElement("parent_record_id")]
public string ParentRecordId { get; set; }
///
/// 假期额度唯一标识
///
[XmlElement("quota_id")]
public string QuotaId { get; set; }
///
/// 假期消费记录唯一标识
///
[XmlElement("record_id")]
public string RecordId { get; set; }
///
/// 单位以天计算的消费额度(假期类型按天计算该值不为空且按百分之一天折算 例如 100=1天)
///
[XmlElement("record_num_per_day")]
public long RecordNumPerDay { get; set; }
///
/// 单位以小时计算的消费额度(假期类型按小时计算该值不为空且按百分之一小时折算 例如 100=1小时)
///
[XmlElement("record_num_per_hour")]
public long RecordNumPerHour { get; set; }
///
/// 额度有效期开始时间(毫秒级时间戳)
///
[XmlElement("start_time")]
public long StartTime { get; set; }
///
/// 员工ID
///
[XmlElement("userid")]
public string Userid { get; set; }
}
///
/// OapiLeaveRecordListVoDomain Data Structure.
///
[Serializable]
public class OapiLeaveRecordListVoDomain : TopObject
{
///
/// 是否存在更多记录
///
[XmlElement("has_more")]
public bool HasMore { get; set; }
///
/// 假期消费记录列表
///
[XmlArray("leave_records")]
[XmlArrayItem("oapi_leave_record_vo")]
public List LeaveRecords { get; set; }
}
}
}