mbas

package
v0.15.66 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

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 CreateOldUser(m map[string]string) error

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 DeleteTask(id string) error

func Destroy

func Destroy()

func GetFirstAndLastRecordTime added in v0.13.44

func GetFirstAndLastRecordTime(req *GetFirstAndLastRecordTimeParam) (*time.Time, *time.Time, error)

func GetGroup

func GetGroup(tangentId string) ([]string, error)

func Init

func Init(baseUrl string, timeoutSec time.Duration)

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"`
}

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 CreateCheckInRecordRequest

type CreateCheckInRecordRequest struct {
	TangentId   string  `json:"tangentId" binding:"required"`
	UserId      string  `json:"userId" binding:"required"`
	CheckInTime string  `json:"checkInTime" binding:"required"`
	Lng         float64 `json:"lng"`
	Lat         float64 `json:"lat"`
	Addr        string  `json:"addr"`
}

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 CreateOldCheckInUserRequest

type CreateOldCheckInUserRequest struct {
	M map[string]string `json:"m"`
}

type CreateRecordParam added in v0.15.21

type CreateRecordParam struct {
	TangentId   string  `json:"tangentId"`
	UserId      string  `json:"userId"`
	CheckInTime string  `json:"checkInTime"`
	Img         string  `json:"img"`
	Lat         float64 `json:"lat"`
	Lng         float64 `json:"lng"`
	Addr        string  `json:"addr"`
}

type CreateTaskParam added in v0.13.44

type CreateTaskParam struct {
	TangentId string `json:"tangentId,omitempty"`
	Describe  string `json:"describe,omitempty"`
}

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 ExportTaskInfo struct {
	ID        string `json:"id"`
	StartTime string `json:"startTime"`
	EndTime   string `json:"endTime"`
	State     string `json:"state"`
	Url       string `json:"url"`
	Describe  string `json:"describe"`
}

type GetCheckInRecordQuery

type GetCheckInRecordQuery struct {
	TangentId string `form:"tangentId"`
	UserId    string `form:"userId"`
	ID        string `form:"id"`
	PageNo    int    `form:"pageNo"`
	PageSize  int    `form:"pageSize"`
	Start     string `form:"start"`
	End       string `form:"end"`
	WithImage bool   `form:"withImage"`
}

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 GetFirstAndLastRecordTimeParam struct {
	TangentId string `form:"tangentId" json:"tangentId"`
	UserId    string `form:"userId" json:"userId"`
	Year      int    `form:"year" json:"year"`
	Month     int    `form:"month" json:"month"`
	Day       int    `form:"day" json:"day"`
}

type GetFirstAndLastRecordTimeResponse added in v0.13.44

type GetFirstAndLastRecordTimeResponse struct {
	FirstTime *time.Time `json:"firstTime"`
	LastTime  *time.Time `json:"lastTime"`
	// contains filtered or unexported fields
}

type GetGroupResponse

type GetGroupResponse struct {
	UserIds []string `json:"userIds"`
	// contains filtered or unexported fields
}

type GetRecordOfPersonParam added in v0.13.69

type GetRecordOfPersonParam struct {
	TangentId string `form:"tangentId"`
	UserId    string `form:"userId"`
	Date      string `form:"date"`
}

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 GetTaskParam struct {
	TangentId string `form:"tangentId,omitempty"`
	PageNo    int    `form:"pageNo,omitempty"`
	PageSize  int    `form:"pageSize,omitempty"`
}

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 OvertimeWorkInfo added in v0.15.61

type OvertimeWorkInfo struct {
	StartTime     string  `json:"startTime"`
	EndTime       string  `json:"endTime"`
	Duration      float32 `json:"duration"`
	Reason        string  `json:"reason"`
	InitiatorName string  `json:"initiatorName"`
	ApplyTime     string  `json:"applyTime"`
}

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 QueryOvertimeWorkStoreResponse added in v0.15.61

type QueryOvertimeWorkStoreResponse struct {
	Data QueryOvertimeWorkStoreResult `json:"data"`
	// contains filtered or unexported fields
}

type QueryOvertimeWorkStoreResult added in v0.15.61

type QueryOvertimeWorkStoreResult struct {
	Infos  []OvertimeWorkInfo `json:"infos"`
	Total  int64              `json:"total"`
	PageNo int                `json:"pageNo"`
}

func QueryOvertimeWorkStore added in v0.15.61

func QueryOvertimeWorkStore(param *QueryParam) (*QueryOvertimeWorkStoreResult, error)

type QueryParam added in v0.14.13

type QueryParam struct {
	PageNo      int    `form:"pageNo"`
	PageSize    int    `form:"pageSize"`
	CreatorName string `form:"creatorName"`
	CompanyID   string `form:"companyId"`
}

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 ReCheckinInfo struct {
	ReCheckinDate string `json:"reCheckinDate"`
	ReCheckinType string `json:"reCheckinType"`
	Reason        string `json:"reason"`
	ApplyTime     string `json:"applyTime"`
	InitiatorName string `json:"initiatorName"`
}

type RecordTime added in v0.13.69

type RecordTime struct {
	CheckInTime string `json:"checkInTime"`
	Type        string `json:"type"`
	Catalog     string `json:"-"`
}

type SetDefaultRuleParam added in v0.13.69

type SetDefaultRuleParam struct {
	TangentId string `json:"tangentId"`
}

type SetGroupRequest

type SetGroupRequest struct {
	TangentId string `json:"tangentId" binding:"required"`
	UserIds   string `json:"userIds" binding:"required"`
}

type StationedInfo added in v0.14.13

type StationedInfo struct {
	StationedAddress string `json:"stationedAddress"`
	DayCount         int    `json:"dayCount"`
	StartDate        string `json:"startDate"`
	EndDate          string `json:"endDate"`
	Reason           string `json:"reason"`
	ApplyTime        string `json:"applyTime"`
	InitiatorName    string `json:"initiatorName"`
}

type UpdateTaskParam added in v0.13.44

type UpdateTaskParam struct {
	Id       string `json:"id"`
	State    string `json:"state"`
	FilePath string `json:"filePath"`
}

type UpdateTaskResponse added in v0.13.44

type UpdateTaskResponse struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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