Documentation ¶
Index ¶
- func CreateCheckInRule(param *CreateCheckInRuleParam) error
- func CreateOldUser(m map[string]string) error
- func CreateRecord(param *CreateRecordParam) error
- func CreateTask(param *CreateTaskParam) (string, error)
- func DeleteTask(id string) error
- func Destroy()
- func GetFirstAndLastRecordTime(req *GetFirstAndLastRecordTimeParam) (*time.Time, *time.Time, error)
- func GetGroup(tangentId string) ([]string, error)
- func Init(baseUrl string, timeoutSec time.Duration)
- func SetDefaultRule(param *SetDefaultRuleParam) error
- func SetGroup(req *SetGroupRequest) error
- func UpdateTask(param *UpdateTaskParam) error
- type BusinessTripInfo
- type CheckInRecordInfo
- type CheckInRuleInfo
- type CreateCheckInRecordRequest
- type CreateCheckInRuleParam
- type CreateOldCheckInUserRequest
- type CreateRecordParam
- type CreateTaskParam
- type CreateTaskResponse
- type DailyAttendanceInfo
- type DeleteTaskResponse
- type DeployRestInfo
- type ExportTaskInfo
- type GetCheckInRecordQuery
- type GetCheckInRecordResponse
- type GetFirstAndLastRecordTimeParam
- type GetFirstAndLastRecordTimeResponse
- type GetGroupResponse
- type GetRecordOfPersonParam
- type GetRecordOfPersonResponse
- type GetRuleResponse
- type GetTaskParam
- type GetTasksResponse
- type GoOutInfo
- type LeaveRequestInfo
- type QueryBusinessTripStoreResponse
- type QueryBusinessTripStoreResult
- type QueryDeployRestInfoResult
- type QueryDeployRestStoreResponse
- type QueryGoOutStoreResponse
- type QueryGoOutStoreResult
- type QueryLeaveRequestStoreResponse
- type QueryLeaveRequestStoreResult
- type QueryParam
- type QueryReCheckinStoreResponse
- type QueryReCheckinStoreResult
- type QueryStationedStoreResponse
- type QueryStationedStoreResult
- type ReCheckinInfo
- type RecordTime
- type SetDefaultRuleParam
- type SetGroupRequest
- type StationedInfo
- type UpdateTaskParam
- type UpdateTaskResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCheckInRule ¶ added in v0.13.69
func CreateCheckInRule(param *CreateCheckInRuleParam) error
func CreateOldUser ¶
func CreateRecord ¶ added in v0.15.21
func CreateRecord(param *CreateRecordParam) error
func CreateTask ¶ added in v0.13.44
func CreateTask(param *CreateTaskParam) (string, error)
func DeleteTask ¶ added in v0.13.44
func GetFirstAndLastRecordTime ¶ added in v0.13.44
func SetDefaultRule ¶ added in v0.13.69
func SetDefaultRule(param *SetDefaultRuleParam) error
func SetGroup ¶
func SetGroup(req *SetGroupRequest) error
func UpdateTask ¶ added in v0.13.44
func UpdateTask(param *UpdateTaskParam) error
Types ¶
type BusinessTripInfo ¶ added in v0.14.15
type BusinessTripInfo struct { Destination string `json:"destination,omitempty"` StartTime string `json:"startTime,omitempty"` EndTime string `json:"endTime,omitempty"` Reason string `json:"reason,omitempty"` InitiatorName string `json:"initiatorName,omitempty"` ApplyTime string `json:"applyTime,omitempty"` }
type CheckInRecordInfo ¶
type CheckInRecordInfo struct { ID string `json:"id"` CheckInTime string `json:"checkInTime"` UserId string `json:"userId"` TangentId string `json:"tangentId"` Image string `json:"image"` }
func GetRecord ¶
func GetRecord(req GetCheckInRecordQuery) ([]CheckInRecordInfo, int64, error)
type CheckInRuleInfo ¶ added in v0.13.44
type CheckInRuleInfo struct { ID string `json:"id"` Name string `json:"name"` ClockInTimeStart string `json:"clockInTimeStart"` ClockInTimeEnd string `json:"clockInTimeEnd"` ClockOffTimeStart string `json:"clockOffTimeStart"` ClockOffTimeEnd string `json:"clockOffTimeEnd"` MorningWorkTimeStart string `json:"morningWorkTimeStart"` MorningWorkTimeEnd string `json:"morningWorkTimeEnd"` AfternoonWorkTimeStart string `json:"afternoonWorkTimeStart"` AfternoonWorkTimeEnd string `json:"afternoonWorkTimeEnd"` }
func GetRule ¶ added in v0.13.44
func GetRule(tangentId string) (*CheckInRuleInfo, error)
type CreateCheckInRuleParam ¶ added in v0.13.69
type CreateCheckInRuleParam struct { ClockInTimeStart string `json:"clockInTimeStart"` ClockInTimeEnd string `json:"clockInTimeEnd"` ClockOffTimeStart string `json:"clockOffTimeStart"` ClockOffTimeEnd string `json:"clockOffTimeEnd"` MorningWorkTimeStart string `json:"morningWorkTimeStart"` MorningWorkTimeEnd string `json:"morningWorkTimeEnd"` AfternoonWorkTimeStart string `json:"afternoonWorkTimeStart"` AfternoonWorkTimeEnd string `json:"afternoonWorkTimeEnd"` TangentId string `json:"tangentId"` }
type CreateRecordParam ¶ added in v0.15.21
type CreateTaskParam ¶ added in v0.13.44
type CreateTaskResponse ¶ added in v0.13.44
type CreateTaskResponse struct { Id string `json:"id"` // contains filtered or unexported fields }
type DailyAttendanceInfo ¶ added in v0.13.69
type DailyAttendanceInfo struct { Records []RecordTime `json:"records"` State string `json:"state"` Msg []string `json:"msg"` }
func GetRecordOfPerson ¶ added in v0.13.69
func GetRecordOfPerson(param *GetRecordOfPersonParam) (*DailyAttendanceInfo, error)
type DeleteTaskResponse ¶ added in v0.13.44
type DeleteTaskResponse struct {
// contains filtered or unexported fields
}
type DeployRestInfo ¶ added in v0.14.15
type DeployRestInfo struct { Duration float32 `json:"duration,omitempty"` StartTime string `json:"startTime,omitempty"` EndTime string `json:"endTime,omitempty"` Reason string `json:"reason,omitempty"` InitiatorName string `json:"initiatorName,omitempty"` ApplyTime string `json:"applyTime,omitempty"` }
type ExportTaskInfo ¶ added in v0.13.44
type GetCheckInRecordQuery ¶
type GetCheckInRecordResponse ¶
type GetCheckInRecordResponse struct { Infos []CheckInRecordInfo `json:"infos"` TotalCount int64 `json:"totalCount"` PageNo int `json:"pageNo"` // contains filtered or unexported fields }
type GetFirstAndLastRecordTimeParam ¶ added in v0.13.44
type GetFirstAndLastRecordTimeResponse ¶ added in v0.13.44
type GetGroupResponse ¶
type GetGroupResponse struct { UserIds []string `json:"userIds"` // contains filtered or unexported fields }
type GetRecordOfPersonParam ¶ added in v0.13.69
type GetRecordOfPersonResponse ¶ added in v0.13.69
type GetRecordOfPersonResponse struct { Data *DailyAttendanceInfo `json:"data"` // contains filtered or unexported fields }
type GetRuleResponse ¶ added in v0.13.44
type GetRuleResponse struct { Rule *CheckInRuleInfo `json:"rule"` // contains filtered or unexported fields }
type GetTaskParam ¶ added in v0.13.44
type GetTasksResponse ¶ added in v0.13.44
type GetTasksResponse struct { Count int64 `json:"count"` PageNo int `json:"pageNo"` Tasks []ExportTaskInfo `json:"tasks"` // contains filtered or unexported fields }
func GetTasks ¶ added in v0.13.44
func GetTasks(param *GetTaskParam) (*GetTasksResponse, error)
type GoOutInfo ¶ added in v0.14.13
type GoOutInfo struct { Destination string `json:"destination,omitempty"` Duration float32 `json:"duration,omitempty"` StartTime string `json:"startTime,omitempty"` EndTime string `json:"endTime,omitempty"` Reason string `json:"reason,omitempty"` InitiatorName string `json:"initiatorName,omitempty"` ApplyTime string `json:"applyTime,omitempty"` }
type LeaveRequestInfo ¶ added in v0.14.13
type LeaveRequestInfo struct { Type string `json:"type,omitempty"` StartTime string `json:"startTime,omitempty"` EndTime string `json:"endTime,omitempty"` Duration float32 `json:"duration,omitempty"` Reason string `json:"reason,omitempty"` InitiatorName string `json:"initiatorName,omitempty"` ApplyTime string `json:"applyTime,omitempty"` }
type QueryBusinessTripStoreResponse ¶ added in v0.14.15
type QueryBusinessTripStoreResponse struct { Data QueryBusinessTripStoreResult `json:"data"` // contains filtered or unexported fields }
type QueryBusinessTripStoreResult ¶ added in v0.14.15
type QueryBusinessTripStoreResult struct { Infos []BusinessTripInfo `json:"infos"` Total int64 `json:"total"` PageNo int `json:"pageNo"` }
func QueryBusinessTripStore ¶ added in v0.14.15
func QueryBusinessTripStore(param *QueryParam) (*QueryBusinessTripStoreResult, error)
type QueryDeployRestInfoResult ¶ added in v0.14.15
type QueryDeployRestInfoResult struct { Infos []DeployRestInfo `json:"infos"` Total int64 `json:"total"` PageNo int `json:"pageNo"` }
func QueryDeployRestStore ¶ added in v0.14.15
func QueryDeployRestStore(param *QueryParam) (*QueryDeployRestInfoResult, error)
type QueryDeployRestStoreResponse ¶ added in v0.14.15
type QueryDeployRestStoreResponse struct { Data QueryDeployRestInfoResult `json:"data"` // contains filtered or unexported fields }
type QueryGoOutStoreResponse ¶ added in v0.14.13
type QueryGoOutStoreResponse struct { Data QueryGoOutStoreResult `json:"data"` // contains filtered or unexported fields }
type QueryGoOutStoreResult ¶ added in v0.14.13
type QueryGoOutStoreResult struct { Infos []GoOutInfo `json:"infos"` Total int64 `json:"total"` PageNo int `json:"pageNo"` }
func QueryGoOutStore ¶ added in v0.14.13
func QueryGoOutStore(param *QueryParam) (*QueryGoOutStoreResult, error)
type QueryLeaveRequestStoreResponse ¶ added in v0.14.13
type QueryLeaveRequestStoreResponse struct { Data QueryLeaveRequestStoreResult `json:"data"` // contains filtered or unexported fields }
type QueryLeaveRequestStoreResult ¶ added in v0.14.13
type QueryLeaveRequestStoreResult struct { Infos []LeaveRequestInfo `json:"infos"` Total int64 `json:"total"` PageNo int `json:"pageNo"` }
func QueryLeaveRequestStore ¶ added in v0.14.13
func QueryLeaveRequestStore(param *QueryParam) (*QueryLeaveRequestStoreResult, error)
type QueryParam ¶ added in v0.14.13
type QueryReCheckinStoreResponse ¶ added in v0.14.13
type QueryReCheckinStoreResponse struct { Data QueryReCheckinStoreResult `json:"data"` // contains filtered or unexported fields }
type QueryReCheckinStoreResult ¶ added in v0.14.13
type QueryReCheckinStoreResult struct { Infos []ReCheckinInfo `json:"infos"` Total int64 `json:"total"` PageNo int `json:"pageNo"` }
func QueryReCheckinStore ¶ added in v0.14.13
func QueryReCheckinStore(param *QueryParam) (*QueryReCheckinStoreResult, error)
type QueryStationedStoreResponse ¶ added in v0.14.13
type QueryStationedStoreResponse struct { Data QueryStationedStoreResult `json:"data"` // contains filtered or unexported fields }
type QueryStationedStoreResult ¶ added in v0.14.13
type QueryStationedStoreResult struct { Infos []StationedInfo `json:"infos"` Total int64 `json:"total"` PageNo int `json:"pageNo"` }
func QueryStationedStore ¶ added in v0.14.13
func QueryStationedStore(param *QueryParam) (*QueryStationedStoreResult, error)
type ReCheckinInfo ¶ added in v0.14.13
type RecordTime ¶ added in v0.13.69
type SetDefaultRuleParam ¶ added in v0.13.69
type SetDefaultRuleParam struct {
TangentId string `json:"tangentId"`
}
type SetGroupRequest ¶
type StationedInfo ¶ added in v0.14.13
type UpdateTaskParam ¶ added in v0.13.44
type UpdateTaskResponse ¶ added in v0.13.44
type UpdateTaskResponse struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.