oa

package
v1.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCheckinUserFace

func AddCheckinUserFace(userID, userFace string) wx.Action

AddCheckinUserFace 录入打卡人员人脸信息

func AddMeetingRoom

func AddMeetingRoom(params *ParamsMeetingRoomAdd, result *ResultMeetingRoomAdd) wx.Action

AddMeetingRoom 添加会议室

func ApplyEvent

func ApplyEvent(params *ParamsApplyEvent, result *ResultApplyEvent) wx.Action

ApplyEvent 提交审批申请

func BookMeetingRoom

func BookMeetingRoom(params *ParamsMeetingRoomBook, result *ResultMeetingRoomBook) wx.Action

BookMeetingRoom 预定会议室

func CallPstncc

func CallPstncc(calleeUserIDs []string, result *ResultPstnccCall) wx.Action

CallPstncc 发起语音电话

func CancelBookMeetingRoom

func CancelBookMeetingRoom(meetingID string, keepSchedule int) wx.Action

取消预定会议室

func DeleteMeetingRoom

func DeleteMeetingRoom(meetingRoomID int64) wx.Action

DeleteMeetingRoom 删除会议室

func EditMeetingRoom

func EditMeetingRoom(params *ParamsMeetingRoomEdit) wx.Action

EditMeetingRoom 编辑会议室

func GetApprovalDetail

func GetApprovalDetail(spno string, result *ResultApprovalDetail) wx.Action

GetApprovalDetail 获取审批申请详情

func GetApprovalInfo

func GetApprovalInfo(params *ParamsApprovalInfo, result *ResultApprovalInfo) wx.Action

GetApprovalInfo 批量获取审批单号

func GetCheckinData

func GetCheckinData(dataType int, starttime, endtime int64, userIDs []string, result *ResultCheckinData) wx.Action

GetCheckinData 获取打卡记录数据

func GetCheckinDayData

func GetCheckinDayData(starttime, endtime int64, userIDs []string, result *ResultCheckinDayData) wx.Action

GetCheckinDayData 获取打卡日报数据

func GetCheckinMonthData

func GetCheckinMonthData(starttime, endtime int64, userIDs []string, result *ResultCheckinMonthData) wx.Action

GetCheckinMonthData 获取打卡月报数据

func GetCheckinOption

func GetCheckinOption(datetime int64, userIDs []string, result *ResultCheckinOption) wx.Action

GetCheckinOption 获取员工打卡规则

func GetCheckinScheduleList

func GetCheckinScheduleList(starttime, endtime int64, userIDs []string, result *ResultCheckinScheduleListGet) wx.Action

GetCheckinScheduleList 获取打卡人员排班信息

func GetCorpCheckinOption

func GetCorpCheckinOption(result *ResultCorpCheckinOption) wx.Action

GetCorpCheckinOption 获取企业所有打卡规则

func GetCorpVacationConf

func GetCorpVacationConf(result *ResultCorpVacationConf) wx.Action

GetCorpVacationConf 获取企业假期管理配置

func GetHardwareCheckinData

func GetHardwareCheckinData(filterType int, starttime, endtime int64, userIDs []string, result *ResultHardwareCheckinData) wx.Action

GetHardwareCheckinData 获取设备打卡数据

func GetJournalRecordDetail

func GetJournalRecordDetail(journaluuid string, result *ResultJournalRecordDetail) wx.Action

GetJournalRecordDetail 获取汇报记录详情

func GetMeetingRoomBookingInfo

func GetMeetingRoomBookingInfo(params *ParamsMeetingRoomBookingInfo, result *ResultMeetingRoomBookingInfo) wx.Action

GetMeetingRoomBookingInfo 查询会议室的预定信息

func GetMeetingRoomBookingInfoByID

func GetMeetingRoomBookingInfoByID(meetingRoomID int64, meetingID string, result *MeetingRoomBookingInfo) wx.Action

GetMeetingRoomBookingInfoByID 根据会议ID查询会议室的预定信息

func GetOpenApprovalData

func GetOpenApprovalData(thirdNO string, result *ResultOpenApprovalData) wx.Action

GetOpenApprovalData 查询自建应用审批单当前状态

func GetPstnccStates

func GetPstnccStates(calleeUserID, callID string, result *ResultPstnccStates) wx.Action

GetPstnccStates 获取接听状态

func GetTemplateDetail

func GetTemplateDetail(templateID string, result *ResultTemplateDetail) wx.Action

GetTemplateDetail 获取审批模板详情

func GetUserVacationQuota

func GetUserVacationQuota(userID string, result *ResultUserVacationQuota) wx.Action

GetUserVacationQuota 获取成员假期余额

func ListJouralRecord

func ListJouralRecord(params *ParamsJournalRecordList, result *ResultJournalRecordList) wx.Action

ListJouralRecord 批量获取汇报记录单号

func ListJournalStat

func ListJournalStat(templateID string, starttime, endtime int64, result *ResultJournalStatList) wx.Action

ListJournalStat 获取汇报统计数据

func ListMeetingRoom

func ListMeetingRoom(params *ParamsMeetingRoomList, result *ResultMeetingRoomList) wx.Action

ListMeetingRoom 查询会议室

func SetCheckinScheduleList

func SetCheckinScheduleList(groupID int64, yearmonth int, items ...*ScheduleListItem) wx.Action

SetCheckinScheduleList 为打卡人员排班

func SetOneUserQuota

func SetOneUserQuota(params *ParamsOneUserQuotaSet) wx.Action

SetOneUserQuota 修改成员假期余额

Types

type ApplyContent

type ApplyContent struct {
	Control ControlType    `json:"control"`
	ID      string         `json:"id"`
	Title   []*DisplayText `json:"title,omitempty"`
	Value   *ControlValue  `json:"value"`
}

type ApplyData

type ApplyData struct {
	Contents []*ApplyContent `json:"contents"`
}

type ApplySummaryInfo

type ApplySummaryInfo struct {
	SummaryInfo []*DisplayText `json:"summary_info"`
}

type Applyer

type Applyer struct {
	UserID  string `json:"userid"`
	PartyID string `json:"partyid"`
}

type ApprovalComment

type ApprovalComment struct {
	CommentUserInfo *OAUser  `json:"commentUserInfo"`
	CommentTime     int64    `json:"commenttime"`
	CommentContent  string   `json:"commentcontent"`
	CommentID       string   `json:"commentid"`
	MediaID         []string `json:"media_id"`
}

type ApprovalDetail

type ApprovalDetail struct {
	SPNO       string              `json:"sp_no"`
	SPName     string              `json:"sp_name"`
	SPStatus   int                 `json:"sp_status"`
	TemplateID string              `json:"template_id"`
	ApplyTime  int64               `json:"apply_time"`
	Applyer    *Applyer            `json:"applyer"`
	SPRecord   []*ApprovalSPRecord `json:"sp_record"`
	Notifyer   []*OAUser           `json:"notifyer"`
	ApplyData  *ApplyData          `json:"apply_data"`
	Comments   []*ApprovalComment  `json:"comments"`
}

type ApprovalNode

type ApprovalNode struct {
	NodeStatus int                `json:"NodeStatus"`
	NodeAttr   int                `json:"NodeAttr"`
	NodeType   int                `json:"NodeType"`
	Items      *ApprovalNodeItems `json:"Items"`
}

type ApprovalNodeItem

type ApprovalNodeItem struct {
	ItemName   string `json:"ItemName"`
	ItemParty  string `json:"ItemParty"`
	ItemImage  string `json:"ItemImage"`
	ItemUserID string `json:"ItemUserId"`
	ItemStatus int    `json:"ItemStatus"`
	ItemSpeech string `json:"ItemSpeech"`
	ItemOPTime int64  `json:"ItemOPTime"`
}

type ApprovalNodeItems

type ApprovalNodeItems struct {
	Item []*ApprovalNodeItem `json:"Item"`
}

type ApprovalNodes

type ApprovalNodes struct {
	ApprovalNode []*ApprovalNode `json:"ApprovalNode"`
}

type ApprovalNotifyNode

type ApprovalNotifyNode struct {
	ItemName   string `json:"ItemName"`
	ItemParty  string `json:"ItemParty"`
	ItemImage  string `json:"ItemImage"`
	ItemUserID string `json:"ItemUserId"`
}

type ApprovalNotifyNodes

type ApprovalNotifyNodes struct {
	NotifyNode []*ApprovalNotifyNode `json:"NotifyNode"`
}

type ApprovalSPDetail

type ApprovalSPDetail struct {
	Approver *OAUser  `json:"approver"`
	Speech   string   `json:"speech"`
	SPStatus int      `json:"sp_status"`
	SPTime   int64    `json:"sptime"`
	MediaID  []string `json:"media_id"`
}

type ApprovalSPRecord

type ApprovalSPRecord struct {
	SPStatus     int                 `json:"sp_status"`
	ApproverAttr int                 `json:"approverattr"`
	Details      []*ApprovalSPDetail `json:"details"`
}

type Approver

type Approver struct {
	Attr   int      `json:"attr"`
	UserID []string `json:"userid"`
}

type AttendanceConfig

type AttendanceConfig struct {
	DateRange *DateRangeValue `json:"date_range"`
	Type      int             `json:"type"`
}

type AttendanceDay

type AttendanceDay struct {
	DayTime  int64 `json:"daytime"`
	Duration int   `json:"duration"`
}

type AttendanceSliceInfo

type AttendanceSliceInfo struct {
	DayItems []*AttendanceDay `json:"day_items"`
	Duration int              `json:"duration"`
	State    int              `json:"state"`
}

type AttendanceValue

type AttendanceValue struct {
	DateRange *DateRangeValue      `json:"date_range"`
	Type      int                  `json:"type"`
	SliceInfo *AttendanceSliceInfo `json:"slice_info"`
}

type CheckinCalOtTimeRule

type CheckinCalOtTimeRule struct {
	Items []*CheckinOtTimeRule `json:"items"`
}

type CheckinData

type CheckinData struct {
	UserID         string   `json:"userid"`
	GroupID        int64    `json:"groupid"`
	GroupName      string   `json:"groupname"`
	CheckinType    string   `json:"checkin_type"`
	CheckinTime    int64    `json:"checkin_time"`
	ExceptionType  string   `json:"exception_type"`
	LocationTitle  string   `json:"location_title"`
	LocationDetail string   `json:"location_detail"`
	WifiName       string   `json:"wifiname"`
	WifiMac        string   `json:"wifimac"`
	Notes          string   `json:"notes"`
	MediaIDs       []string `json:"mediaids"`
	Lat            int64    `json:"lat"`
	Lng            int64    `json:"lng"`
	DeviceID       string   `json:"deviceid"`
	SchCheckinTime int64    `json:"sch_checkin_time"`
	ScheduleID     int64    `json:"schedule_id"`
	TimelineID     int64    `json:"timeline_id"`
}

type CheckinDate

type CheckinDate struct {
	Workdays        []int          `json:"workdays"`
	CheckinTime     []*CheckinTime `json:"checkintime"`
	FlexTime        int            `json:"flex_time"`
	NoNeedOffWork   bool           `json:"noneed_offwork"`
	LimitAheadTime  int            `json:"limit_aheadtime"`
	FlexOnDutyTime  int            `json:"flex_on_duty_time"`
	FlexOffDutyTime int            `json:"flex_off_duty_time"`
}

type CheckinDayBase

type CheckinDayBase struct {
	Date        int64           `json:"date"`
	RecordType  int             `json:"record_type"`
	Name        string          `json:"name"`
	NameEX      string          `json:"name_ex"`
	DepartsName string          `json:"departs_name"`
	AcctID      string          `json:"acctid"`
	RuleInfo    *CheckinDayRule `json:"rule_info"`
}

type CheckinDayData

type CheckinDayData struct {
	BaseInfo       *CheckinDayBase     `json:"base_info"`
	SummaryInfo    *CheckinDaySummary  `json:"summary_info"`
	HolidayInfos   []*CheckinHoliday   `json:"holiday_infos"`
	ExceptionInfos []*CheckinException `json:"exception_infos"`
	OtInfo         *CheckinDayOt       `json:"ot_info"`
	SPItems        []*CheckinSPItem    `json:"sp_items"`
}

type CheckinDayOt

type CheckinDayOt struct {
	OtStatus          int   `json:"ot_status"`
	OtDuration        int   `json:"ot_duration"`
	ExceptionDuration []int `json:"exception_duration"`
}

type CheckinDayRule

type CheckinDayRule struct {
	GroupID      int64          `json:"groupid"`
	GroupName    string         `json:"groupname"`
	ScheduleID   int64          `json:"scheduleid"`
	ScheduleName string         `json:"schedulename"`
	CheckinTime  []*CheckinTime `json:"checkintime"`
	DayType      int            `json:"day_type"`
}

type CheckinDaySummary

type CheckinDaySummary struct {
	CheckinCount    int `json:"checkin_count"`
	RegularWorkSec  int `json:"regular_work_sec"`
	StandardWorkSec int `json:"standard_work_sec"`
	EarliestTime    int `json:"earliest_time"`
	LastestTime     int `json:"lastest_time"`
}

type CheckinException

type CheckinException struct {
	Count     int `json:"count"`
	Duration  int `json:"duration"`
	Exception int `json:"exception"`
}

type CheckinFixTimeRule

type CheckinFixTimeRule struct {
	FixTimeBeginSec int `json:"fix_time_begin_sec"`
	FixTimeEndSec   int `json:"fix_time_end_sec"`
}

type CheckinGroup

type CheckinGroup struct {
	GroupType              int               `json:"grouptype"`
	GroupID                int64             `json:"groupid"`
	GroupName              string            `json:"groupname"`
	CheckinDate            []*CheckinDate    `json:"checkindate"`
	SpeWorkdays            []*CheckinSpeDay  `json:"spe_workdays"`
	SpeOffDays             []*CheckinSpeDay  `json:"spe_offdays"`
	SyncHolidays           bool              `json:"sync_holidays"`
	NeedPhoto              bool              `json:"need_photo"`
	WifiMacInfos           []*CheckinWifiMac `json:"wifimac_infos"`
	NoteCanUseLocalPic     bool              `json:"note_can_use_local_pic"`
	AllowCheckinOffWorkday bool              `json:"allow_checkin_offworkday"`
	AllowApplyOffWorkday   bool              `json:"allow_apply_offworkday"`
	LocInfos               []*CheckinLoc     `json:"loc_infos"`
	ScheduleList           []*OptionSchedule `json:"schedulelist"`
}

type CheckinHoliday

type CheckinHoliday struct {
	SPDescription *CheckinSPText `json:"sp_description"`
	SPNumber      string         `json:"sp_number"`
	SPTitle       *CheckinSPText `json:"sp_title"`
}

type CheckinLateRule

type CheckinLateRule struct {
	AllowOffWorkAfterTime bool               `json:"allow_offwork_after_time"`
	TimeRules             []*CheckinTimeRule `json:"timerules"`
}

type CheckinLoc

type CheckinLoc struct {
	Lat       int64  `json:"lat"`
	Lng       int64  `json:"lng"`
	LocTitle  string `json:"loc_title"`
	LocDetail string `json:"loc_detail"`
	Distance  int    `json:"distance"`
}

type CheckinMonthBase

type CheckinMonthBase struct {
	RecordType  int               `json:"record_type"`
	Name        string            `json:"name"`
	NameEX      string            `json:"name_ex"`
	DepartsName string            `json:"departs_name"`
	AcctID      string            `json:"acctid"`
	RuleInfo    *CheckinMonthRule `json:"rule_info"`
}

type CheckinMonthData

type CheckinMonthData struct {
	BaseInfo       *CheckinMonthBase    `json:"base_info"`
	SummaryInfo    *CheckinMonthSummary `json:"summary_info"`
	ExceptionInfos []*CheckinException  `json:"exception_infos"`
	SPItems        []*CheckinSPItem     `json:"sp_items"`
	OverworkInfo   *CheckinOverwork     `json:"overwork_info"`
}

type CheckinMonthRule

type CheckinMonthRule struct {
	GroupID   int64  `json:"groupid"`
	GroupName string `json:"groupname"`
}

type CheckinMonthSummary

type CheckinMonthSummary struct {
	WorkDays        int `json:"work_days"`
	ExceptDays      int `json:"except_days"`
	RegularWorkSec  int `json:"regular_work_sec"`
	StandardWorkSec int `json:"standard_work_sec"`
}

type CheckinOption

type CheckinOption struct {
	UserID string        `json:"userid"`
	Group  *CheckinGroup `json:"group"`
}

type CheckinOt

type CheckinOt struct {
	Type                 int             `json:"type"`
	AllowOtWorkingDay    bool            `json:"allow_ot_workingday"`
	AllowOtNonWorkingDay bool            `json:"allow_ot_nonworkingday"`
	OtCheckInfo          *CheckinOtCheck `json:"otcheckinfo"`
	UpTime               int64           `json:"uptime"`
	OtApplyInfo          *CheckinOtApply `json:"otapplyinfo"`
}

type CheckinOtApply

type CheckinOtApply struct {
	AllowOtWorkingDay          bool           `json:"allow_ot_workingday"`
	AllowOtNonWorkingDay       bool           `json:"allow_ot_nonworkingday"`
	UpTime                     int64          `json:"uptime"`
	OtWorkingDayRestInfo       *CheckinOtRest `json:"ot_workingday_restinfo"`
	OtNonWorkingDayRestInfo    *CheckinOtRest `json:"ot_nonworkingday_restinfo"`
	OtNonWorkingDaySpandayTime int            `json:"ot_nonworkingday_spanday_time"`
}

type CheckinOtCheck

type CheckinOtCheck struct {
	OtWorkingDayTimeStart      int            `json:"ot_workingday_time_start"`
	OtWorkingDayTimeMin        int            `json:"ot_workingday_time_min"`
	OtWorkingDayTimeMax        int            `json:"ot_workingday_time_max"`
	OtNonWorkingDayTimeMin     int            `json:"ot_nonworkingday_time_min"`
	OtNonWorkingDayTimeMax     int            `json:"ot_nonworkingday_time_max"`
	OtWorkingDayRestInfo       *CheckinOtRest `json:"ot_workingday_restinfo"`
	OtNonWorkingDayRestInfo    *CheckinOtRest `json:"ot_nonworkingday_restinfo"`
	OtNonWorkingDaySpandayTime int            `json:"ot_nonworkingday_spanday_time"`
}

type CheckinOtRest

type CheckinOtRest struct {
	Type          int                   `json:"type"`
	FixTimeRule   *CheckinFixTimeRule   `json:"fix_time_rule"`
	CalOtTimeRule *CheckinCalOtTimeRule `json:"cal_ottime_rule"`
}

type CheckinOtTimeRule

type CheckinOtTimeRule struct {
	OtTime   int `json:"ot_time"`
	RestTime int `json:"rest_time"`
}

type CheckinOverwork

type CheckinOverwork struct {
	WorkdayOverSec int `json:"workday_over_sec"`
}

type CheckinRange

type CheckinRange struct {
	PartyID []string `json:"partyid"`
	UserID  []string `json:"userid"`
	TagID   []int64  `json:"tagid"`
}

type CheckinReporter

type CheckinReporter struct {
	Reporters  []*OAUser `json:"reporters"`
	UpdateTime int64     `json:"updatetime"`
}

type CheckinSPItem

type CheckinSPItem struct {
	Count      int    `json:"count"`
	Duration   int    `json:"duration"`
	TimeType   int    `json:"time_type"`
	Type       int    `json:"type"`
	VacationID int    `json:"vacation_id"`
	Name       string `json:"name"`
}

type CheckinSPText

type CheckinSPText struct {
	Data []*DisplayText `json:"data"`
}

type CheckinSchedule

type CheckinSchedule struct {
	UserID    string    `json:"userid"`
	YearMonth int       `json:"yearmonth"`
	GroupID   int64     `json:"groupid"`
	GroupName string    `json:"groupname"`
	Schedule  *Schedule `json:"schedule"`
}

type CheckinSpeDay

type CheckinSpeDay struct {
	Timestamp   int64          `json:"timestamp"`
	Notes       string         `json:"notes"`
	CheckinTime []*CheckinTime `json:"checkintime"`
}

type CheckinTime

type CheckinTime struct {
	WorkSec          int `json:"work_sec"`
	OffWorkSec       int `json:"off_work_sec"`
	RemindWorkSec    int `json:"remind_work_sec"`
	RemindOffWorkSec int `json:"remind_off_work_sec"`
}

type CheckinTimeRule

type CheckinTimeRule struct {
	OffWorkAfterTime int `json:"offwork_after_time"`
	OnWorkFlexTime   int `json:"onwork_flex_time"`
}

type CheckinTimeSection

type CheckinTimeSection struct {
	TimeID           int64 `json:"time_id"`
	WorkSec          int   `json:"work_sec"`
	OffWorkSec       int   `json:"off_work_sec"`
	RemindWorkSec    int   `json:"remind_work_sec"`
	RemindOffWorkSec int   `json:"remind_off_work_sec"`
	RestBeginTime    int   `json:"rest_begin_time"`
	RestEndTime      int   `json:"rest_end_time"`
	AllowRest        bool  `json:"allow_rest"`
}

type CheckinWifiMac

type CheckinWifiMac struct {
	WifiName string `json:"wifiname"`
	WifiMac  string `json:"wifimac"`
}

type ContactConfig

type ContactConfig struct {
	Type string `json:"type"` // 选择方式:single-单选;multi-多选
	Mode string `json:"mode"` // 选择对象:user-成员;department-部门
}

type ContactDepartment

type ContactDepartment struct {
	OpenApiID string `json:"openapi_id"`
	Name      string `json:"name"`
}

type ContactMember

type ContactMember struct {
	UserID string `json:"userid"`
	Name   string `json:"name"`
}

type ControlConfig

type ControlConfig struct {
	Date         *DateConfig       `json:"date,omitempty"`
	Selector     *SelectorConfig   `json:"selector,omitempty"`
	Table        *TableConfig      `json:"table,omitempty"`
	Attendance   *AttendanceConfig `json:"attendance,omitempty"`
	VacationList *VacationConfig   `json:"vacation_list,omitempty"`
}

type ControlProperty

type ControlProperty struct {
	Control     ControlType    `json:"control"`
	ID          string         `json:"id"`
	Title       []*DisplayText `json:"title"`
	Placeholder []*DisplayText `json:"placeholder"`
	Require     int            `json:"require"`
	UnPrint     int            `json:"un_print"`
}

type ControlType

type ControlType string
const (
	ControlText            ControlType = "Text"
	ControlTextarea        ControlType = "Textarea"
	ControlNumber          ControlType = "Number"
	ControlMoney           ControlType = "Money"
	ControlDate            ControlType = "Date"
	ControlSelector        ControlType = "Selector"
	ControlContact         ControlType = "Contact"
	ControlTips            ControlType = "Tips"
	ControlFile            ControlType = "File"
	ControlTable           ControlType = "Table"
	ControlAttendance      ControlType = "Attendance"
	ControlVacation        ControlType = "Vacation"
	ControlDateRange       ControlType = "DateRange"
	ControlLocation        ControlType = "Location"
	ControlFormula         ControlType = "Formula"
	ControlSchoolContact   ControlType = "SchoolContact"
	ControlPunchCorrection ControlType = "PunchCorrection"
	ControlRelatedApproval ControlType = "RelatedApproval"
)

type ControlValue

type ControlValue struct {
	Text            string                  `json:"text,omitempty"`
	NewNumber       string                  `json:"new_number,omitempty"`
	NewMoney        string                  `json:"new_money,omitempty"`
	Tips            interface{}             `json:"tips,omitempty"`
	Date            *DateValue              `json:"date,omitempty"`
	Seletor         *SelectorValue          `json:"seletor,omitempty"`
	Members         []*ContactMember        `json:"members,omitempty"`
	Departments     []*ContactDepartment    `json:"departments,omitempty"`
	Files           []*FileValue            `json:"files,omitempty"`
	Children        []*TableValue           `json:"children,omitempty"`
	StatField       interface{}             `json:"stat_field,omitempty"`
	SumField        interface{}             `json:"sum_field,omitempty"`
	Students        []*SchoolContactStudent `json:"students,omitempty"`
	Classes         []*SchoolContactClass   `json:"classes,omitempty"`
	DateRange       *DateRangeValue         `json:"date_range,omitempty"`
	Location        *LocationValue          `json:"location,omitempty"`
	Formula         *FormulaValue           `json:"formula,omitempty"`
	Vacation        *VacationValue          `json:"vacation,omitempty"`
	Attendance      *AttendanceValue        `json:"attendance,omitempty"`
	PunchCorrection *PunchCorrectionValue   `json:"punch_correction,omitempty"`
	RelatedApproval []*RelatedApprovalValue `json:"related_approval,omitempty"`
}

type Coordinate

type Coordinate struct {
	Latitude  string `json:"latitude"`
	Longitude string `json:"longitude"`
}

type CorpCheckinOption

type CorpCheckinOption struct {
	GroupType              int               `json:"grouptype"`
	GroupID                int64             `json:"groupid"`
	GroupName              string            `json:"groupname"`
	CheckinDate            []*CheckinDate    `json:"checkindate"`
	SpeWorkdays            []*CheckinSpeDay  `json:"spe_workdays"`
	SpeOffDays             []*CheckinSpeDay  `json:"spe_offdays"`
	SyncHolidays           bool              `json:"sync_holidays"`
	NeedPhoto              bool              `json:"need_photo"`
	WifiMacInfos           []*CheckinWifiMac `json:"wifimac_infos"`
	NoteCanUseLocalPic     bool              `json:"note_can_use_local_pic"`
	AllowCheckinOffWorkday bool              `json:"allow_checkin_offworkday"`
	AllowApplyOffWorkday   bool              `json:"allow_apply_offworkday"`
	LocInfos               []*CheckinLoc     `json:"loc_infos"`
	Range                  *CheckinRange     `json:"range"`
	CreateTime             int64             `json:"create_time"`
	WhiteUsers             []string          `json:"white_users"`
	Type                   int               `json:"type"`
	ReporterInfo           *CheckinReporter  `json:"reporterinfo"`
	OtInfo                 *CheckinOt        `json:"ot_info"`
	AllowApplyBKCnt        int               `json:"allow_apply_bk_cnt"`
	OptionOutRange         int               `json:"option_out_range"`
	CreateUserID           string            `json:"create_userid"`
	UseFaceDetect          bool              `json:"use_face_detect"`
	AllowApplyBKDayLimit   int               `json:"allow_apply_bk_day_limit"`
	UpdateUserID           string            `json:"update_userid"`
	ScheduleList           []*OptionSchedule `json:"schedulelist"`
	OffWorkIntervalTime    int               `json:"offwork_interval_time"`
}

type DateConfig

type DateConfig struct {
	Type string `json:"type"` // 时间展示类型:day-日期;hour-日期+时间
}

type DateRangeValue

type DateRangeValue struct {
	Type        string `json:"type"`
	NewBegin    int64  `json:"new_begin"`
	NewEnd      int64  `json:"new_end"`
	NewDuration int    `json:"new_duration"`
}

type DateValue

type DateValue struct {
	Type       string `json:"type"`
	STimestamp string `json:"s_timestamp"`
}

type DisplayText

type DisplayText struct {
	Text string `json:"text"`
	Lang string `json:"lang"`
}

type FileValue

type FileValue struct {
	FileID string `json:"file_id"`
}

type FormulaValue

type FormulaValue struct {
	Value string `json:"value"`
}

type HardwareCheckinData

type HardwareCheckinData struct {
	UserID      string `json:"userid"`
	CheckinTime int64  `json:"checkin_time"`
	DeviceSN    string `json:"device_sn"`
	DeviceName  string `json:"device_name"`
}

type JournalLeader

type JournalLeader struct {
	Level int64 `json:"level"`
}

type JournalParty

type JournalParty struct {
	OpenPartyID string `json:"open_partyid"`
}

type JournalRange

type JournalRange struct {
	UserList  []*JournalUser  `json:"user_list"`
	PartyList []*JournalParty `json:"party_list"`
	TagList   []*JournalTag   `json:"tag_list"`
}

type JournalReceivers

type JournalReceivers struct {
	UserList   []*JournalUser   `json:"user_list"`
	TagList    []*JournalTag    `json:"tag_list"`
	LeaderList []*JournalLeader `json:"leader_list"`
}

type JournalRecordComment

type JournalRecordComment struct {
	CommentID       int64   `json:"commentid"`
	ToCommentID     int64   `json:"tocommentid"`
	CommentUserInfo *OAUser `json:"comment_userinfo"`
	Content         string  `json:"content"`
	CommentTime     int64   `json:"comment_time"`
}

type JournalRecordDetail

type JournalRecordDetail struct {
	JournalUUID     string                  `json:"journal_uuid"`
	TemplateName    string                  `json:"template_name"`
	ReportTime      int64                   `json:"report_time"`
	Submitter       *OAUser                 `json:"submitter"`
	Receivers       []*OAUser               `json:"receivers"`
	ReadedReceivers []*OAUser               `json:"readed_receivers"`
	ApplyData       *ApplyData              `json:"apply_data"`
	Comments        []*JournalRecordComment `json:"comments"`
}

type JournalReport

type JournalReport struct {
	User     *OAUser              `json:"user"`
	ItemList []*JournalReportItem `json:"itemlist"`
}

type JournalReportItem

type JournalReportItem struct {
	JournalUUID string `json:"journaluuid"`
	ReportTime  int64  `json:"reporttime"`
	Flag        int    `json:"flag"`
}

type JournalStat

type JournalStat struct {
	TemplateID     string            `json:"template_id"`
	TemplateName   string            `json:"template_name"`
	ReportRange    *JournalRange     `json:"report_range"`
	WhiteRange     *JournalRange     `json:"white_range"`
	Receivers      *JournalReceivers `json:"receivers"`
	CycleBeginTime int64             `json:"cycle_begin_time"`
	CycleEndTime   int64             `json:"cycle_end_time"`
	StatBeginTime  int64             `json:"stat_begin_time"`
	StatEndTime    int64             `json:"stat_end_time"`
	ReportList     []*JournalReport  `json:"report_list"`
	UnReportList   []*JournalReport  `json:"unreport_list"`
	ReportType     int               `json:"report_type"`
}

type JournalTag

type JournalTag struct {
	OpenTagID string `json:"open_tagid"`
}

type JournalUser

type JournalUser struct {
	UserID string `json:"userid"`
}

type KeyValue

type KeyValue struct {
	Key   string `json:"key,omitempty"`
	Value string `json:"value,omitempty"`
}

type LocationValue

type LocationValue struct {
	Latitude  string `json:"latitude"`
	Longitude string `json:"longitude"`
	Title     string `json:"title"`
	Address   string `json:"address"`
	Time      int64  `json:"time"`
}

type MeetingRoom

type MeetingRoom struct {
	MeetingRoomID int64       `json:"meetingroom_id"`
	Name          string      `json:"name"`
	Capacity      int         `json:"capacity"`
	City          string      `json:"city"`
	Building      string      `json:"building"`
	Floor         string      `json:"floor"`
	Equipment     []int64     `json:"equipment"`
	Coordinate    *Coordinate `json:"coordinate"`
	NeedApproval  int         `json:"need_approval"`
}

type MeetingRoomBookingInfo

type MeetingRoomBookingInfo struct {
	MeetingRoomID int64                         `json:"meetingroom_id"`
	Schedule      []*MeetingRoomBookingSchedule `json:"schedule"`
}

type MeetingRoomBookingSchedule

type MeetingRoomBookingSchedule struct {
	MeetingID  string `json:"meeting_id"`
	ScheduleID string `json:"schedule_id"`
	StartTime  int64  `json:"start_time"`
	EndTime    int64  `json:"end_time"`
	Booker     string `json:"booker"`
}

type OAUser

type OAUser struct {
	UserID string `json:"userid"`
}

type OpenApprovalData

type OpenApprovalData struct {
	ThirdNO        string               `json:"ThirdNo"`
	OpenTemplateID string               `json:"OpenTemplateId"`
	OpenSPName     string               `json:"OpenSpName"`
	OpenSPStatus   int                  `json:"OpenSpstatus"`
	ApplyTime      int64                `json:"ApplyTime"`
	ApplyUsername  string               `json:"ApplyUsername"`
	ApplyUserParty string               `json:"ApplyUserParty"`
	ApplyUserImage string               `json:"ApplyUserImage"`
	ApplyUserID    string               `json:"ApplyUserId"`
	ApprovalNodes  *ApprovalNodes       `json:"ApprovalNodes"`
	NotifyNodes    *ApprovalNotifyNodes `json:"NotifyNodes"`
	ApproverStep   int                  `json:"ApproverStep"`
}

type OptionSchedule

type OptionSchedule struct {
	ScheduleID          int64                 `json:"schedule_id"`
	ScheduleName        string                `json:"schedule_name"`
	TimeSection         []*CheckinTimeSection `json:"time_section"`
	LimitAheadTime      int                   `json:"limit_aheadtime"`
	NoNeedOffWork       bool                  `json:"noneed_offwork"`
	LimitOffTime        int                   `json:"limit_offtime"`
	FlexOnDutyTime      int                   `json:"flex_on_duty_time"`
	FlexOffDutyTime     int                   `json:"flex_off_duty_time"`
	AllowFlex           bool                  `json:"allow_flex"`
	LateRule            *CheckinLateRule      `json:"late_rule"`
	MaxAllowArriveEarly int                   `json:"max_allow_arrive_early"`
	MaxAllowArriveLate  int                   `json:"max_allow_arrive_late"`
}

type ParamsApplyEvent

type ParamsApplyEvent struct {
	CreatorUserID       string              `json:"creator_userid"`
	TemplateID          string              `json:"template_id"`
	UseTemplateApprover int                 `json:"use_template_approver"`
	ChooseDepartment    int64               `json:"choose_department,omitempty"`
	Approver            []*Approver         `json:"approver"`
	Notifyer            []string            `json:"notifyer"`
	NotifyType          int                 `json:"notify_type"`
	ApplyData           *ApplyData          `json:"apply_data"`
	SummaryList         []*ApplySummaryInfo `json:"summary_list"`
}

type ParamsApprovalDetail

type ParamsApprovalDetail struct {
	SPNO string `json:"sp_no"`
}

type ParamsApprovalInfo

type ParamsApprovalInfo struct {
	StartTime string      `json:"starttime"`
	EndTime   string      `json:"endtime"`
	Cursor    int         `json:"cursor"`
	Size      int         `json:"size"`
	Filters   []*KeyValue `json:"filters,omitempty"`
}

type ParamsCheckinData

type ParamsCheckinData struct {
	OpenCheckinDataType int      `json:"opencheckindatatype"`
	StartTime           int64    `json:"starttime"`
	EndTime             int64    `json:"endtime"`
	UserIDList          []string `json:"useridlist"`
}

type ParamsCheckinDayData

type ParamsCheckinDayData struct {
	StartTime  int64    `json:"starttime"`
	EndTime    int64    `json:"endtime"`
	UserIDList []string `json:"useridlist"`
}

type ParamsCheckinMonthData

type ParamsCheckinMonthData struct {
	StartTime  int64    `json:"starttime"`
	EndTime    int64    `json:"endtime"`
	UserIDList []string `json:"useridlist"`
}

type ParamsCheckinOption

type ParamsCheckinOption struct {
	DateTime   int64    `json:"datetime"`
	UserIDList []string `json:"useridlist"`
}

type ParamsCheckinScheduleListGet

type ParamsCheckinScheduleListGet struct {
	StartTime  int64    `json:"starttime"`
	EndTime    int64    `json:"endtime"`
	UserIDList []string `json:"useridlist"`
}

type ParamsCheckinScheduleListSet

type ParamsCheckinScheduleListSet struct {
	GroupID   int64               `json:"groupid"`
	YearMonth int                 `json:"yearmonth"`
	Items     []*ScheduleListItem `json:"items"`
}

type ParamsCheckinUserFaceAdd

type ParamsCheckinUserFaceAdd struct {
	UserID   string `json:"userid"`
	UserFace string `json:"userface"`
}

type ParamsHardwareCheckinData

type ParamsHardwareCheckinData struct {
	FilterType int      `json:"filter_type"`
	StartTime  int64    `json:"starttime"`
	EndTime    int64    `json:"endtime"`
	UserIDList []string `json:"useridlist"`
}

type ParamsJournalRecordDetail

type ParamsJournalRecordDetail struct {
	JournalUUID string `json:"journaluuid"`
}

type ParamsJournalRecordList

type ParamsJournalRecordList struct {
	StartTime int64       `json:"starttime"`
	EndTime   int64       `json:"endtime"`
	Cursor    int         `json:"cursor"`
	Limit     int         `json:"limit"`
	Filters   []*KeyValue `json:"filters,omitempty"`
}

type ParamsJournalStatList

type ParamsJournalStatList struct {
	TemplateID string `json:"template_id"`
	StartTime  int64  `json:"starttime"`
	EndTime    int64  `json:"endtime"`
}

type ParamsMeetingRoomAdd

type ParamsMeetingRoomAdd struct {
	Name       string      `json:"name"`
	Capacity   int         `json:"capacity"`
	City       string      `json:"city,omitempty"`
	Building   string      `json:"building,omitempty"`
	Floor      string      `json:"floor,omitempty"`
	Equipment  []int64     `json:"equipment,omitempty"`
	Coordinate *Coordinate `json:"coordinate,omitempty"`
}

type ParamsMeetingRoomBook

type ParamsMeetingRoomBook struct {
	MeetingRoomID int64    `json:"meetingroom_id"`
	Subject       string   `json:"subject,omitempty"`
	StartTime     int64    `json:"start_time"`
	EndTime       int64    `json:"end_time"`
	Booker        string   `json:"booker"`
	Attendees     []string `json:"attendees,omitempty"`
}

type ParamsMeetingRoomBookCancel

type ParamsMeetingRoomBookCancel struct {
	MeetingID    string `json:"meeting_id"`
	KeepSchedule int    `json:"keep_schedule"`
}

type ParamsMeetingRoomBookingInfo

type ParamsMeetingRoomBookingInfo struct {
	MeetingRoomID int64  `json:"meetingroom_id"`
	StartTime     int64  `json:"start_time,omitempty"`
	EndTime       int64  `json:"end_time,omitempty"`
	City          string `json:"city,omitempty"`
	Building      string `json:"building,omitempty"`
	Floor         string `json:"floor,omitempty"`
}

type ParamsMeetingRoomBookingInfoByMeetingID

type ParamsMeetingRoomBookingInfoByMeetingID struct {
	MeetingRoomID int64  `json:"meetingroom_id"`
	MeetingID     string `json:"meeting_id"`
}

type ParamsMeetingRoomDelete

type ParamsMeetingRoomDelete struct {
	MeetingRoomID int64 `json:"meetingroom_id"`
}

type ParamsMeetingRoomEdit

type ParamsMeetingRoomEdit struct {
	MeetingRoomID int64       `json:"meetingroom_id"`
	Name          string      `json:"name,omitempty"`
	Capacity      int         `json:"capacity,omitempty"`
	City          string      `json:"city,omitempty"`
	Building      string      `json:"building,omitempty"`
	Floor         string      `json:"floor,omitempty"`
	Equipment     []int64     `json:"equipment,omitempty"`
	Coordinate    *Coordinate `json:"coordinate,omitempty"`
}

type ParamsMeetingRoomList

type ParamsMeetingRoomList struct {
	City      string  `json:"city,omitempty"`
	Building  string  `json:"building,omitempty"`
	Floor     string  `json:"floor,omitempty"`
	Equipment []int64 `json:"equipment,omitempty"`
}

type ParamsOneUserQuotaSet

type ParamsOneUserQuotaSet struct {
	UserID       string `json:"userid"`
	VacationID   int64  `json:"vacation_id"`
	LeftDuration int    `json:"leftduration"`
	TimeAttr     int    `json:"time_attr"`
	Remarks      string `json:"remarks"`
}

type ParamsOpenApprovalData

type ParamsOpenApprovalData struct {
	ThirdNO string `json:"thirdNo"`
}

type ParamsPstnccCall

type ParamsPstnccCall struct {
	CalleeUserID []string `json:"callee_userid"`
}

type ParamsPstnccStates

type ParamsPstnccStates struct {
	CalleeUserID string `json:"callee_userid"`
	CallID       string `json:"callid"`
}

type ParamsTemplateDetail

type ParamsTemplateDetail struct {
	TemplateID string `json:"template_id"`
}

type ParamsUserVacationQuota

type ParamsUserVacationQuota struct {
	UserID string `json:"userid"`
}

type PstnccState

type PstnccState struct {
	Code   int    `json:"code"`
	CallID string `json:"callid"`
	UserID string `json:"userid"`
}

type PunchCorrectionValue

type PunchCorrectionValue struct {
	State string `json:"state"`
	Time  int64  `json:"time"`
}

type RelatedApprovalValue

type RelatedApprovalValue struct {
	TemplateNames []*DisplayText `json:"template_names"`
	SPStatus      int            `json:"sp_status"`
	Name          string         `json:"name"`
	CreateTime    int64          `json:"create_time"`
	SPNO          string         `json:"sp_no"`
}

type ResultApplyEvent

type ResultApplyEvent struct {
	SPNO string `json:"sp_no"`
}

type ResultApprovalDetail

type ResultApprovalDetail struct {
	Info *ApprovalDetail `json:"info"`
}

type ResultApprovalInfo

type ResultApprovalInfo struct {
	SPNOList []string `json:"sp_no_list"`
}

type ResultCheckinData

type ResultCheckinData struct {
	CheckinData []*CheckinData `json:"checkindata"`
}

type ResultCheckinDayData

type ResultCheckinDayData struct {
	Datas []*CheckinDayData `json:"datas"`
}

type ResultCheckinMonthData

type ResultCheckinMonthData struct {
	Datas []*CheckinMonthData `json:"datas"`
}

type ResultCheckinOption

type ResultCheckinOption struct {
	Info []*CheckinOption `json:"info"`
}

type ResultCheckinScheduleListGet

type ResultCheckinScheduleListGet struct {
	ScheduleList []*CheckinSchedule `json:"schedule_list"`
}

type ResultCorpCheckinOption

type ResultCorpCheckinOption struct {
	Group []*CorpCheckinOption `json:"group"`
}

type ResultCorpVacationConf

type ResultCorpVacationConf struct {
	Lists []*VacationConf `json:"lists"`
}

type ResultHardwareCheckinData

type ResultHardwareCheckinData struct {
	CheckinData []*HardwareCheckinData
}

type ResultJournalRecordDetail

type ResultJournalRecordDetail struct {
	Info *JournalRecordDetail `json:"info"`
}

type ResultJournalRecordList

type ResultJournalRecordList struct {
	JournalUUIDList []string `json:"journaluuid_list"`
	NextCursor      int      `json:"next_cursor"`
	EndFlag         int      `json:"endflag"`
}

type ResultJournalStatList

type ResultJournalStatList struct {
	StatList []*JournalStat `json:"stat_list"`
}

type ResultMeetingRoomAdd

type ResultMeetingRoomAdd struct {
	MeetingRoomID int64 `json:"meetingroom_id"`
}

type ResultMeetingRoomBook

type ResultMeetingRoomBook struct {
	MeetingID  string `json:"meeting_id"`
	ScheduleID string `json:"schedule_id"`
}

type ResultMeetingRoomBookingInfo

type ResultMeetingRoomBookingInfo struct {
	BookingList []*MeetingRoomBookingInfo `json:"booking_list"`
}

type ResultMeetingRoomList

type ResultMeetingRoomList struct {
	MeetingRoomList []*MeetingRoom `json:"meetingroom_list"`
}

type ResultOpenApprovalData

type ResultOpenApprovalData struct {
	Data *OpenApprovalData `json:"data"`
}

type ResultPstnccCall

type ResultPstnccCall struct {
	States []*PstnccState `json:"states"`
}

type ResultPstnccStates

type ResultPstnccStates struct {
	IsTalked int   `json:"istalked"`
	CallTime int64 `json:"calltime"`
	TalkTime int   `json:"talktime"`
	Reason   int   `json:"reason"`
}

type ResultTemplateDetail

type ResultTemplateDetail struct {
	TemplateNames   []*DisplayText   `json:"template_names"`
	TemplateContent *TemplateContent `json:"template_content"`
}

type ResultUserVacationQuota

type ResultUserVacationQuota struct {
	Lists []*VacationQuota `json:"lists"`
}

type Schedule

type Schedule struct {
	ScheduleList []*ScheduleData `json:"scheduleList"`
}

type ScheduleData

type ScheduleData struct {
	Day          int           `json:"day"`
	ScheduleInfo *ScheduleInfo `json:"schedule_info"`
}

type ScheduleInfo

type ScheduleInfo struct {
	ScheduleID   int64                  `json:"schedule_id"`
	ScheduleName string                 `json:"schedule_name"`
	TimeSection  []*ScheduleTimeSection `json:"time_section"`
}

type ScheduleListItem

type ScheduleListItem struct {
	UserID     string `json:"userid"`
	Day        int    `json:"day"`
	ScheduleID int64  `json:"schedule_id"`
}

type ScheduleTimeSection

type ScheduleTimeSection struct {
	ID               int64 `json:"id"`
	WorkSec          int   `json:"work_sec"`
	OffWorkSec       int   `json:"off_work_sec"`
	RemindWorkSec    int   `json:"remind_work_sec"`
	RemindOffWorkSec int   `json:"remind_off_work_sec"`
}

type SchoolContactClass

type SchoolContactClass struct {
	Name string `json:"name"`
}

type SchoolContactStudent

type SchoolContactStudent struct {
	Name string `json:"name"`
}

type SelectorConfig

type SelectorConfig struct {
	Type    string // 选择类型:single-单选;multi-多选
	Options []*SelectorOption
}

type SelectorOption

type SelectorOption struct {
	Key   string         `json:"key"`
	Value []*DisplayText `json:"value"`
}

type SelectorValue

type SelectorValue struct {
	Type    string
	Options []*SelectorOption
}

type TableChildConfig

type TableChildConfig struct {
	Property *ControlProperty `json:"property"`
}

type TableChildValue

type TableChildValue struct {
	Control ControlType    `json:"control"`
	ID      string         `json:"id"`
	Title   []*DisplayText `json:"title"`
	Value   *ControlValue  `json:"value"`
}

type TableConfig

type TableConfig struct {
	Children  []*TableChildConfig `json:"children"`
	StatField interface{}         `json:"stat_field"`
}

type TableValue

type TableValue struct {
	List []*TableChildValue `json:"list"`
}

type TemplateContent

type TemplateContent struct {
	Controls []*TemplateControl `json:"controls"`
}

type TemplateControl

type TemplateControl struct {
	Property *ControlProperty `json:"property"`
	Config   *ControlConfig   `json:"config"`
}

type VacationConf

type VacationConf struct {
	ID             int64              `json:"id"`
	Name           string             `json:"name"`
	TimeAttr       int                `json:"time_attr"`
	DurationType   int                `json:"duration_type"`
	QuotaAttr      *VacationQuotaAttr `json:"quota_attr"`
	PerdayDuration int                `json:"perday_duration"`
}

type VacationConfig

type VacationConfig struct {
	Item []*VacationConfigItem `json:"item"`
}

type VacationConfigItem

type VacationConfigItem struct {
	ID   int            `json:"id"`
	Name []*DisplayText `json:"name"`
}

type VacationQuota

type VacationQuota struct {
	ID             int64  `json:"id"`
	AssignDuration int    `json:"assignduration"`
	UsedDuration   int    `json:"usedduration"`
	LeftDuration   int    `json:"leftduration"`
	VacationName   string `json:"vacationname"`
}

type VacationQuotaAttr

type VacationQuotaAttr struct {
	Type              int   `json:"type"`
	AutoresetTime     int64 `json:"autoreset_time"`
	AutoresetDuration int   `json:"autoreset_duration"`
}

type VacationValue

type VacationValue struct {
	Selector   *SelectorValue   `json:"selector"`
	Attendance *AttendanceValue `json:"attendance"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL