Documentation ¶
Index ¶
- func CreateCheckInRule(param *CreateCheckInRuleParam) error
- func CreateOldUser(m map[string]string) 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 CheckInRecordInfo
- type CheckInRuleInfo
- type CreateCheckInRecordRequest
- type CreateCheckInRuleParam
- type CreateOldCheckInUserRequest
- type CreateTaskParam
- type CreateTaskResponse
- type DailyAttendanceInfo
- type DeleteTaskResponse
- type ExportTaskInfo
- type GetCheckInRecordQuery
- type GetCheckInRecordResponse
- type GetFirstAndLastRecordTimeParam
- type GetFirstAndLastRecordTimeResponse
- type GetGroupResponse
- type GetRecordOfPersonParam
- type GetRecordOfPersonResponse
- type GetRuleResponse
- type GetTaskParam
- type GetTasksResponse
- type RecordTime
- type SetDefaultRuleParam
- type SetGroupRequest
- 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 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 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 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 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 RecordTime ¶ added in v0.13.69
type SetDefaultRuleParam ¶ added in v0.13.69
type SetDefaultRuleParam struct {
TangentId string `json:"tangentId"`
}
type SetGroupRequest ¶
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.