Documentation ¶
Index ¶
- func CreateGroup(param Group) error
- func CreateRecord(param Record) error
- func CreateSchema(param Schema) error
- func DelGroup(tangentId, id string) error
- func DelSchema(tangentId, id string) error
- func Destroy()
- func Init(baseUrl string, timeoutSec time.Duration)
- func RecordAddRemark(param RecordAddRemarkParam) error
- func UptGroup(param Group) error
- func UptSchema(param Schema) error
- type ClockInMode
- type ConflictDetail
- type DeptUser
- type GetGroupParam
- type GetRecordParam
- type GetSchemaParam
- type Group
- type Info
- type MiniGroup
- type PlaceClockInSetting
- type Record
- type RecordAddRemarkParam
- type Resp
- type Result
- type Schema
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateGroup ¶ added in v0.15.30
func CreateRecord ¶
func CreateSchema ¶ added in v0.15.35
func RecordAddRemark ¶
func RecordAddRemark(param RecordAddRemarkParam) error
Types ¶
type ClockInMode ¶ added in v0.15.30
type ClockInMode struct { Id string `json:"id"` Mode uint8 `json:"mode"` // Setting 打卡方式配置明细 Setting []any `json:"setting"` }
ClockInMode 打卡方式
type ConflictDetail ¶ added in v0.15.34
type DeptUser ¶ added in v0.15.30
type DeptUser struct { DeptId string `json:"deptId"` Num int `json:"num"` UserIds []string `json:"userIds"` AutoJoin bool `json:"autoJoin"` }
DeptUser 部门考勤人员信息
type GetGroupParam ¶ added in v0.15.35
type GetRecordParam ¶
type GetRecordParam struct { TangentId string `validate:"required,len=32" form:"tangentId"` UserId string `validate:"required,len=32" form:"userId"` Start string `form:"start"` End string `form:"end"` CheckInDate string `form:"checkIndDate"` RecordType uint8 `form:"recordType"` PageNo int `form:"pageNo"` PageSize int `form:"pageSize"` }
type GetSchemaParam ¶ added in v0.15.35
type Group ¶ added in v0.15.30
type Group struct { Id string `json:"id"` Name string `json:"name"` TangentId string `json:"tangentId"` SchemaId string `json:"schemaId"` Modes []ClockInMode `json:"modes"` AllowOut bool `json:"allowOut"` User `json:"user"` }
Group 考勤组
type Info ¶ added in v0.15.35
type Info struct { Id string `json:"id"` Name string `json:"name"` TangentId string `json:"tangentId"` Modes []ClockInMode `json:"modes"` AllowOut bool `json:"allowOut"` User `json:"user"` Schema `json:"schema"` }
Info 考勤组信息
func GroupDetail ¶ added in v0.15.30
type MiniGroup ¶ added in v0.15.30
type MiniGroup struct { Id string `json:"id"` Name string `json:"name"` SchemaId string `json:"schemaId"` SchemaName string `json:"schemaName"` UserNum int `json:"userNum"` TangentId string `json:"tangentId"` CreatedAt string `json:"createdAt"` ClockModes []uint8 `json:"clockMode"` AllowOut bool `json:"allowOut"` }
type PlaceClockInSetting ¶ added in v0.15.30
type PlaceClockInSetting struct { Id string `json:"id"` Lat float64 `json:"lat"` Lng float64 `json:"lng"` ShortName string `json:"shortName"` Addr string `json:"addr"` Range int `json:"range"` }
PlaceClockInSetting 地点打卡配置
type Record ¶
type Record struct { Id string `json:"id"` TangentId string `validate:"required,len=32" json:"tangentId"` UserId string `validate:"required,len=32" json:"userId"` CheckInTime string `validate:"required" json:"checkInTime"` Img string `json:"img"` Lat float64 `json:"lat"` Lng float64 `json:"lng"` Addr string `json:"addr"` Type uint8 `json:"type"` Status uint8 `json:"status"` Remark string `json:"remark"` Way uint8 `json:"way"` TimeOffset float64 `json:"timeOffset"` }
type RecordAddRemarkParam ¶
type Result ¶
type Result[T any] struct { Info []T `json:"info"` TotalCount int `json:"totalCount"` PageNo int `json:"pageNo"` }
func GetBigDataRecords ¶ added in v0.15.52
func GetBigDataRecords(param GetRecordParam) (Result[Record], error)
func GetRecords ¶
func GetRecords(param GetRecordParam) (Result[Record], error)
type Schema ¶ added in v0.15.30
type Schema struct { Id string `json:"id" form:"id"` Name string `validate:"required,min=1,max=20" json:"name" form:"name"` TangentId string `validate:"required,len=32" json:"tangentId" form:"tangentId"` Mode uint8 `validate:"required" json:"mode" form:"mode"` ClockInTimeEnd string `json:"clockInTimeEnd" form:"clockInTimeEnd"` ClockInTimeStart string `json:"clockInTimeStart" form:"clockInTimeStart"` ClockOffTimeStart string `json:"clockOffTimeStart" form:"clockOffTimeStart"` ClockOffTimeEnd string `json:"clockOffTimeEnd" form:"clockOffTimeEnd"` MorningWorkTimeStart string `json:"morningWorkTimeStart" form:"morningWorkTimeStart"` MorningWorkTimeEnd string `json:"morningWorkTimeEnd" form:"morningWorkTimeEnd"` AfternoonWorkTimeStart string `json:"afternoonWorkTimeStart" form:"afternoonWorkTimeStart"` AfternoonWorkTimeEnd string `json:"afternoonWorkTimeEnd" form:"afternoonWorkTimeEnd"` MorningWorkOffClockOutStart string `json:"morningWorkOffClockInStart" form:"morningWorkOffClockOutStart"` MorningWorkOffClockOutEnd string `json:"morningWorkOffClockInEnd" form:"morningWorkOffClockOutEnd"` AfternoonWorkClockInStart string `json:"afternoonWorkClockInStart" form:"afternoonWorkClockInStart"` AfternoonWorkClockInEnd string `json:"afternoonWorkClockInEnd" form:"afternoonWorkClockInEnd"` Remark string `json:"remark" form:"remark"` }
Schema 考勤方案
Click to show internal directories.
Click to hide internal directories.