import { BaseRet } from "../../../../common/interface"; export interface QueryCheckinData { opencheckindatatype: 1 | 2 | 3; starttime: number; endtime: number; useridlist: string[]; } export interface QueryCheckinOption { datetime: number; useridlist: string[]; } export interface ICheckinData { userid: string; groupname: string; checkin_type: string; exception_type: string; checkin_time: number; location_title: string; location_detail: string; wifiname: string; notes: string; wifimac: string; mediaids: string[]; lat?: number; lng?: number; deviceid?: string; } /** * @description 获取打卡信息的返回值 * @export * @interface ICheckinDataRet * @extends {BaseRet} */ export interface ICheckinDataRet extends BaseRet { checkindata: ICheckinData[]; } /** * @description 位置信息 * @export * @interface ILocInfo */ export interface ILocInfo { lat: number; lng: number; loc_title: string; loc_detail: string; distance: number; } /** * @description wifi mac 信息 * @export * @interface IWifiMacInfo */ export interface IWifiMacInfo { wifiname: string; wifimac: string; } /** * @description 单词打卡信息 * @export * @interface ICheckinTime */ export interface ICheckinTimeItem { work_sec: number; off_work_sec: number; remind_work_sec: number; remind_off_work_sec: number; } export interface ICheckinDateItem { workdays: number[]; checkintime: ICheckinTimeItem[]; flex_time: number; noneed_offwork: boolean; limit_aheadtime: number; } export interface IDaysItem { timestamp: number; notes: string; checkintime: ICheckinTimeItem[]; } export interface IRuleGroupItem { grouptype: 1 | 2 | 3; groupid: number; checkindate: ICheckinDateItem[]; spe_workdays: IDaysItem[]; spe_offdays: IDaysItem[]; sync_holidays: boolean; groupname: string; need_photo: boolean; wifimac_infos: IWifiMacInfo[]; note_can_use_local_pic: boolean; allow_checkin_offworkday: boolean; allow_apply_offworkday: boolean; loc_infos: ILocInfo[]; } export interface ICheckinOptionInfoItem { userid: string; group: IRuleGroupItem; } export interface ICheckinOptionRet extends BaseRet { info: ICheckinOptionInfoItem[]; }