mbas

package
v0.13.67 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 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,omitempty"`
	Name              string `json:"name,omitempty"`
	ClockInTimeStart  string `json:"clockInTimeStart,omitempty"`
	ClockInTimeEnd    string `json:"clockInTimeEnd,omitempty"`
	ClockOffTimeStart string `json:"clockOffTimeStart,omitempty"`
	ClockOffTimeEnd   string `json:"clockOffTimeEnd,omitempty"`
}

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