mbas

package
v0.14.25-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 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 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 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"`
}

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 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 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 {
	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 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 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
}

Jump to

Keyboard shortcuts

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