mbam

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GetLeavePageFormatMethodName = methodNamePrefix + "/leave/apply"
)

Variables

This section is empty.

Functions

func ApproveLeave

func ApproveLeave(params *ApproveLeaveRequest) error

func ConditionJudgeCallback added in v0.9.55

func ConditionJudgeCallback(flowExecuteId string, conditionGroupId string) (bool, error)

func CreateCustomForm added in v0.9.5

func CreateCustomForm(req *CreateWorkflowCustomFormParam) (string, error)

func CreateCwsFlow added in v0.9.5

func CreateCwsFlow(req *CreateCwsFlowParam) error

func CreateDefaultCopyTo added in v0.8.8

func CreateDefaultCopyTo(req *CreateDefaultCopyToRequest) (string, error)

func CreateLeave

func CreateLeave(params *CreateLeaveRequest) (string, error)

func DeleteDefaultCopyTo added in v0.8.8

func DeleteDefaultCopyTo(id string) error

func DeleteWorkflow added in v0.9.55

func DeleteWorkflow(req *ChangeWorkflowStateRequest) error

func Destroy

func Destroy()

func DisableWorkflow added in v0.9.55

func DisableWorkflow(req *ChangeWorkflowStateRequest) error

func EnableWorkflow added in v0.9.55

func EnableWorkflow(req *ChangeWorkflowStateRequest) error

func GetFlowExprOfExecute added in v0.11.6

func GetFlowExprOfExecute(req *GetFlowExprOfExecuteRequest) (string, error)

func GetFlowExprOfWorkflow added in v0.9.50

func GetFlowExprOfWorkflow(req *GetFlowExprOfWorkflowRequest) (string, error)

func GetWorkflowCatalogs added in v0.13.57

func GetWorkflowCatalogs() ([]string, error)

func HasWaitingApproval added in v0.13.82

func HasWaitingApproval(req *HasWaitingApprovalParam) (bool, error)

func Init

func Init(baseUrl string, timeoutSec time.Duration)

func LaunchWorkflow added in v0.9.5

func LaunchWorkflow(req *LaunchWorkflowParam) error

func NotifyHumanTaskCallback added in v0.9.55

func NotifyHumanTaskCallback(req *HumanTaskNotifyRequest) error

func PassApproval added in v0.9.5

func PassApproval(req *PassApprovalRequest) error

func RejectApproval added in v0.9.5

func RejectApproval(req *RejectApprovalRequest) error

func RevokeLeave

func RevokeLeave(params *RevokeLeaveRequest) error

func SetWorkflowCommon added in v0.13.62

func SetWorkflowCommon(req *SetWorkflowCommonParam) error

func SideEffectTaskCallback added in v0.9.55

func SideEffectTaskCallback(flowExecuteId string, body []byte) error

func TerminateWorkflow added in v0.9.5

func TerminateWorkflow(req *TerminateFlowRequest) error

func UpdateCustomForm added in v0.9.5

func UpdateCustomForm(req *UpdateCustomFormParam) error

func UpdateCwsFlow added in v0.9.5

func UpdateCwsFlow(req *UpdateCwsFlowParam) error

func UpdateLeave

func UpdateLeave(params *UpdateLeaveRequest) error

func UploadFormPic added in v0.12.25

func UploadFormPic(req *UploadFormPicRequest) (string, error)

Types

type ApplyInfo

type ApplyInfo struct {
	ID                   string  `json:"id"`
	Type                 uint8   `json:"type"`
	StartTime            string  `json:"startTime"`
	EndTime              string  `json:"endTime"`
	Duration             float32 `json:"duration"`
	Reason               string  `json:"reason"`
	CompanyID            string  `json:"CompanyId"`
	DeptID               string  `json:"deptId"`
	FlowLevel            uint8   `json:"flowLevel"`
	Status               uint8   `json:"status"`
	CurrApprovedMemberID string  `json:"currApprovedMemberId"`
	ApplyMemberID        string  `json:"applyMemberId"`
	ApplyTime            string  `json:"applyTime"`
}

func GetLeavePage

func GetLeavePage(params *GetLeavePageQuery) ([]ApplyInfo, int64, float64, error)

type ApprovalTask added in v0.9.53

type ApprovalTask struct {
	Id                string `json:"id"`
	ExecuteName       string `json:"executeName"`
	WorkflowName      string `json:"workflowName"`
	WorkflowExecuteId string `json:"workflowExecuteId"`
	CreatePersonName  string `json:"createPersonName"`
	CreateTime        string `json:"createTime"`
	State             string `json:"state"`
}

type ApproveInfo

type ApproveInfo struct {
	ID            string `json:"id"`
	ApplyID       string `json:"applyId"`
	Type          uint8  `json:"type"`
	Result        uint8  `json:"result"`
	Remark        string `json:"remark"`
	MemberID      string `json:"MemberId"`
	CompanyID     string `json:"companyId"`
	ExecTime      string `json:"execTime"`
	ApplyMemberID string `json:"applyMemberId"`
}

type ApproveLeaveRequest

type ApproveLeaveRequest struct {
	ApplyID         string `json:"applyId"`
	ApplyMemberID   string `json:"applyMemberId"`
	CompanyID       string `json:"companyId"`
	Level           uint8  `json:"level"`
	ApproveMemberID string `json:"approveMemberId"`
	ApproveResult   uint8  `json:"approveResult"`
	ApproveRemark   string `json:"approveRemark"`
}

type ApproveLeaveResponse

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

type AvailableWorkflow added in v0.13.62

type AvailableWorkflow struct {
	Workflow
	CommonUsed bool `json:"commonUsed"`
}

type AvailableWorkflowsPagingResult added in v0.13.62

type AvailableWorkflowsPagingResult struct {
	PageNo     int                 `json:"pageNo"`
	TotalCount int64               `json:"totalCount"`
	Workflows  []AvailableWorkflow `json:"workflows"`
}

func GetAvailableWorkflows added in v0.11.7

type ChangeWorkflowStateRequest added in v0.9.55

type ChangeWorkflowStateRequest struct {
	WorkflowId string `json:"workflowId"`
}

禁用、启用、删除审批流的request

type ChangeWorkflowStateResponse added in v0.9.55

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

禁用、启用、删除审批流的response

type Cond added in v0.9.5

type Cond struct {
	FieldId    string `json:"fieldId"`
	Operator   string `json:"operator"`
	RightValue string `json:"rightValue"`
}

type CondGroup added in v0.9.5

type CondGroup struct {
	Type  string `json:"type"`
	Items []Cond `json:"items"`
}

type ConditionJudgeResponse added in v0.9.55

type ConditionJudgeResponse struct {
	Fit bool `json:"fit"`
	// contains filtered or unexported fields
}

type Copy added in v0.9.55

type Copy struct {
	Id                string `json:"id"`
	ExecuteName       string `json:"executeName"`
	WorkflowName      string `json:"workflowName"`
	CreatePersonName  string `json:"createPersonName"`
	WorkflowExecuteId string `json:"workflowExecuteId"`
	CreateTime        string `json:"createTime"`
}

type CreateCustomFormResponse added in v0.9.5

type CreateCustomFormResponse struct {
	WorkflowId string `json:"workflowId"`
	// contains filtered or unexported fields
}

type CreateCwsFlowParam added in v0.9.5

type CreateCwsFlowParam struct {
	WorkflowId string `json:"workflowId"`
	FirstNode  *Node  `json:"firstNode"`
	FlowExpr   string `json:"flowExpr"`
}

type CreateCwsFlowResponse added in v0.9.5

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

type CreateDefaultCopyToRequest added in v0.8.8

type CreateDefaultCopyToRequest struct {
	CopyUserId string `json:"copyUserId"`
	CompanyId  string `json:"companyId"`
	Order      int    `json:"order"`
}

type CreateDefaultCopyToResponse added in v0.8.8

type CreateDefaultCopyToResponse struct {
	Id string `json:"id"`
	// contains filtered or unexported fields
}

type CreateLeaveRequest

type CreateLeaveRequest struct {
	ID               string  `json:"id"`
	Type             uint8   `json:"type"`
	StartTime        string  `json:"startTime"`
	EndTime          string  `json:"endTime"`
	Duration         float32 `json:"duration"`
	Reason           string  `json:"reason"`
	CompanyID        string  `json:"companyId"`
	DeptID           string  `json:"deptId"`
	ApplyMemberID    string  `json:"applyMemberId"`
	ApproveMemberIds string  `json:"approveMemberIds"`
	CopyMemberIds    string  `json:"copyMemberIds"`
}

type CreateLeaveResponse

type CreateLeaveResponse struct {
	ID string `json:"id" binding:"required"`
	// contains filtered or unexported fields
}

type CreateWorkflowCustomFormParam added in v0.9.5

type CreateWorkflowCustomFormParam struct {
	WorkflowName string `json:"workflowName"`
	FormExpr     string `json:"formExpr"`
	CompanyId    string `json:"companyId"`
	Catalog      string `json:"catalog"`
}

type CustomForm added in v0.9.51

type CustomForm struct {
	WorkflowId string `json:"workflowId"`
	FormExpr   string `json:"formExpr"`
	Version    uint   `json:"version"`
}

func GetFormExprOfWorkflow added in v0.9.49

func GetFormExprOfWorkflow(req *GetFormExprOfWorkflowRequest) (*CustomForm, error)

type CustomFormAndValue added in v0.9.49

type CustomFormAndValue struct {
	FormExpr  string `json:"formExpr"`
	FormValue string `json:"formValue"`
}

func GetFormExprOfExecute added in v0.9.49

func GetFormExprOfExecute(req *GetFormExprOfExecuteRequest) (*CustomFormAndValue, error)

type CustomFormField added in v0.9.48

type CustomFormField struct {
	FieldName     string `json:"fieldName"`
	FieldIdentity string `json:"fieldIdentity"`
}

func GetCustomFormFieldsOfExecute added in v0.11.13

func GetCustomFormFieldsOfExecute(req *GetCustomFormFieldsOfExecuteRequest) ([]CustomFormField, error)

func GetCustomTableFields added in v0.9.48

func GetCustomTableFields(req *GetCustomTableFieldsRequest) ([]CustomFormField, error)

type DefaultCopyToEntity added in v0.8.8

type DefaultCopyToEntity struct {
	Id         string `json:"id"`
	CopyUserId string `json:"copyUserId"`
	CompanyId  string `json:"companyId"`
	Order      int    `json:"order"`
}

type DeleteDefaultCopyToResponse added in v0.8.8

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

type FlowExecuteProgress added in v0.9.5

type FlowExecuteProgress struct {
	FlowExecuteId   string                `json:"flowExecuteId"`
	ExecuteName     string                `json:"executeName"`
	StartTime       string                `json:"startTime"`
	StopTime        string                `json:"stopTime"`
	State           string                `json:"state"`
	ErrMsg          string                `json:"errMsg"`
	NodeExecuteLogs []*FlowNodeExecuteLog `json:"nodeExecuteLogs"`
}

func GetWorkflowExecuteProgress added in v0.9.5

func GetWorkflowExecuteProgress(req *GetFlowExecuteLogQuery) (*FlowExecuteProgress, error)

type FlowNodeExecuteLog added in v0.9.5

type FlowNodeExecuteLog struct {
	FlowNodeName    string                    `json:"flowNodeName"`
	NodeType        uint8                     `json:"nodeType"`
	CreateTime      string                    `json:"createTime"`
	Remark          string                    `json:"remark"`
	ItemExecuteLogs []*FlowNodeItemExecuteLog `json:"itemExecuteLogs"`
}

type FlowNodeItemExecuteLog added in v0.9.5

type FlowNodeItemExecuteLog struct {
	SubjectName  string `json:"subjectName"`
	State        string `json:"state"`
	CompleteTime string `json:"completeTime"`
	Remark       string `json:"remark"`
}

type GetApproveQuery

type GetApproveQuery struct {
	CompanyID string `form:"companyId"`
	MemberID  string `form:"memberId"`
}

type GetAvailableWorkflowsRequest added in v0.13.62

type GetAvailableWorkflowsRequest struct {
	Name      string `form:"name"`
	PageNo    int    `form:"pageNo"`
	PageSize  int    `form:"pageSize"`
	CompanyId string `form:"companyId"`
	Catalog   string `form:"catalog"`
	UserId    string `form:"userId"`
}

type GetAvailableWorkflowsResponse added in v0.13.62

type GetAvailableWorkflowsResponse struct {
	Data *AvailableWorkflowsPagingResult `json:"data"`
	// contains filtered or unexported fields
}

type GetCustomFormFieldsOfExecuteRequest added in v0.11.13

type GetCustomFormFieldsOfExecuteRequest struct {
	WorkflowExecuteId string `form:"workflowExecuteId"`
}

type GetCustomTableFieldsRequest added in v0.9.48

type GetCustomTableFieldsRequest struct {
	WorkflowId string `form:"workflowId"`
}

type GetCustomTableFieldsResponse added in v0.9.48

type GetCustomTableFieldsResponse struct {
	Fields []CustomFormField `json:"fields"`
	// contains filtered or unexported fields
}

type GetDefaultCopyToInfosRequest added in v0.8.8

type GetDefaultCopyToInfosRequest struct {
	CompanyId string `form:"companyId"`
	PageNo    int    `form:"pageNo"`
	PageSize  int    `form:"pageSize"`
}

type GetDefaultCopyToInfosResponse added in v0.8.8

type GetDefaultCopyToInfosResponse struct {
	PagingDefaultCopyTo
	// contains filtered or unexported fields
}

type GetFlowExecuteLogQuery added in v0.9.8

type GetFlowExecuteLogQuery struct {
	FlowExecuteId string `form:"flowExecuteId"`
}

type GetFlowExecuteLogResponse added in v0.9.5

type GetFlowExecuteLogResponse struct {
	*FlowExecuteProgress
	// contains filtered or unexported fields
}

type GetFlowExprOfExecuteRequest added in v0.11.6

type GetFlowExprOfExecuteRequest struct {
	WorkflowExecuteId string `form:"workflowExecuteId"`
}

type GetFlowExprOfExecuteResponse added in v0.11.6

type GetFlowExprOfExecuteResponse struct {
	FlowExpr string `json:"flowExpr"`
	// contains filtered or unexported fields
}

type GetFlowExprOfWorkflowRequest added in v0.9.50

type GetFlowExprOfWorkflowRequest struct {
	WorkflowId string `form:"workflowId"`
}

type GetFlowExprOfWorkflowResponse added in v0.9.50

type GetFlowExprOfWorkflowResponse struct {
	FlowExpr string `json:"flowExpr"`
	// contains filtered or unexported fields
}

type GetFormExprOfExecuteRequest added in v0.9.49

type GetFormExprOfExecuteRequest struct {
	WorkflowExecuteId string `form:"workflowExecuteId"`
}

type GetFormExprOfWorkflowExecuteResponse added in v0.9.49

type GetFormExprOfWorkflowExecuteResponse struct {
	FormAndValue *CustomFormAndValue `json:"formAndValue"`
	// contains filtered or unexported fields
}

type GetFormExprOfWorkflowRequest added in v0.9.49

type GetFormExprOfWorkflowRequest struct {
	WorkflowId string `form:"workflowId"`
}

type GetFormExprOfWorkflowResponse added in v0.9.49

type GetFormExprOfWorkflowResponse struct {
	Form *CustomForm `json:"form"`
	// contains filtered or unexported fields
}

type GetLeaveOneQuery

type GetLeaveOneQuery struct {
	ID        string `form:"id"`
	CompanyID string `form:"companyId"`
}

type GetLeaveOneResponse

type GetLeaveOneResponse struct {
	Info *GetOneResult
	// contains filtered or unexported fields
}

type GetLeavePageQuery

type GetLeavePageQuery struct {
	ID                   string  `form:"id"`
	Type                 uint8   `form:"type"`
	Duration             float64 `form:"duration"`
	CompanyID            string  `form:"companyId"`
	DeptID               string  `form:"deptId"`
	FlowLevel            uint8   `form:"flowLevel"`
	Status               string  `form:"status"`
	CurrApprovedMemberID string  `form:"currApprovedMemberId"`
	ApplyMemberID        string  `form:"applyMemberId"`
	PageNo               int     `form:"pageNo"`
	PageSize             int     `form:"pageSize"`
}

type GetLeavePageResponse

type GetLeavePageResponse struct {
	Infos      []ApplyInfo
	TotalCount int64
	PageNo     int
	MonthCount float64
	// contains filtered or unexported fields
}

type GetMultiResponse

type GetMultiResponse struct {
	Infos []GetOneResult
	// contains filtered or unexported fields
}

type GetMyApprovalTaskParam added in v0.9.53

type GetMyApprovalTaskParam struct {
	PageNo    int    `form:"pageNo"`
	PageSize  int    `form:"pageSize"`
	UserId    string `form:"userId"`
	CompanyId string `form:"companyId"`
}

type GetMyApprovalTaskResponse added in v0.9.53

type GetMyApprovalTaskResponse struct {
	Data *PagingApprovalTask
	// contains filtered or unexported fields
}

type GetMyCommonWorkflowParam added in v0.13.62

type GetMyCommonWorkflowParam struct {
	UserId    string `form:"userId"`
	CompanyId string `form:"companyId"`
}

type GetMyCommonWorkflowResponse added in v0.13.62

type GetMyCommonWorkflowResponse struct {
	Data []Workflow `json:"data"`
	// contains filtered or unexported fields
}

type GetMyCopyParam added in v0.9.55

type GetMyCopyParam struct {
	PageNo       int    `form:"pageNo"`
	PageSize     int    `form:"pageSize"`
	UserId       string `form:"userId"`
	CompanyId    string `form:"companyId"`
	Initiator    string `form:"initiator"`
	WorkflowName string `form:"workflowName"`
}

type GetMyCopyResponse added in v0.9.55

type GetMyCopyResponse struct {
	Data *PagingCopy `json:"data"`
	// contains filtered or unexported fields
}

type GetOneResult

type GetOneResult struct {
	ApplyInfo    *ApplyInfo
	ApproveInfos []ApproveInfo
}

func GetLeaveCopy

func GetLeaveCopy(params *GetApproveQuery) ([]GetOneResult, error)

func GetLeaveExec

func GetLeaveExec(params *GetApproveQuery) ([]GetOneResult, error)

func GetLeaveOne

func GetLeaveOne(params *GetLeaveOneQuery) (*GetOneResult, error)

func GetLeaveWait

func GetLeaveWait(params *GetApproveQuery) ([]GetOneResult, error)

type GetWorkflowCatalogsResponse added in v0.13.57

type GetWorkflowCatalogsResponse struct {
	Data []string `json:"data"`
	// contains filtered or unexported fields
}

type GetWorkflowExecutesRequest added in v0.9.50

type GetWorkflowExecutesRequest struct {
	PageNo         int    `form:"pageNo"`
	PageSize       int    `form:"pageSize"`
	CreatePersonId string `form:"createPersonId"`
	CompanyId      string `form:"companyId"`
	WorkflowId     string `form:"workflowId"`
	ExecuteName    string `form:"executeName"`
}

type GetWorkflowExecutesResponse added in v0.9.50

type GetWorkflowExecutesResponse struct {
	Data *WorkflowExecutesPagingResult `json:"data"`
	// contains filtered or unexported fields
}

type GetWorkflowsRequest added in v0.9.49

type GetWorkflowsRequest struct {
	Name      string `form:"name"`
	PageNo    int    `form:"pageNo"`
	PageSize  int    `form:"pageSize"`
	CompanyId string `form:"companyId"`
	Catalog   string `form:"catalog"`
}

type GetWorkflowsResponse added in v0.9.49

type GetWorkflowsResponse struct {
	Data *WorkflowsPagingResult `json:"data"`
	// contains filtered or unexported fields
}

type HasWaitingApprovalParam added in v0.13.82

type HasWaitingApprovalParam struct {
	UserId    string `form:"userId"`
	CompanyId string `form:"companyId"`
}

type HasWaitingApprovalResponse added in v0.13.82

type HasWaitingApprovalResponse struct {
	HasWaitingTask bool `json:"hasWaitingTask"`
	// contains filtered or unexported fields
}

type HumanTaskNotifyRequest added in v0.9.55

type HumanTaskNotifyRequest struct {
	Subject        string `json:"subject" binding:"required"`
	FakeToken      string `json:"token" binding:"required"`
	FlowExecuteId  string `json:"flowExecuteId" binding:"required"`
	ExecuteContext string `json:"executeContext"`
}

type HumanTaskNotifyResponse added in v0.9.55

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

type LaunchWorkflowParam added in v0.9.5

type LaunchWorkflowParam struct {
	WorkflowId       string         `json:"workflowId"`
	ExecuteName      string         `json:"executeName"`
	CreatePersonId   string         `json:"createPersonId"`
	CreatePersonName string         `json:"createPersonName"`
	FormJsonValue    map[string]any `json:"formJsonValue"`
	FormVersion      uint           `json:"formVersion"`
	CompanyId        string         `json:"companyId"`
}

type LaunchWorkflowResponse added in v0.9.5

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

type MyApproveQuery added in v0.9.35

type MyApproveQuery struct {
	CompanyID string `form:"companyId"`
	MemberID  string `form:"memberId"`
	PageNo    int    `form:"pageNo"`
	PageSize  int    `form:"pageSize"`
}

type MyApproveResponse added in v0.9.35

type MyApproveResponse struct {
	TotalCount int64       `json:"totalCount"`
	PageNo     int         `json:"pageNo"`
	Applies    []ApplyInfo `json:"applies"`
	// contains filtered or unexported fields
}

func MyAwait added in v0.9.35

func MyAwait(req *MyApproveQuery) (*MyApproveResponse, error)

func MyCopy added in v0.9.35

func MyCopy(req *MyApproveQuery) (*MyApproveResponse, error)

func MyExec added in v0.9.35

func MyExec(req *MyApproveQuery) (*MyApproveResponse, error)

type Node added in v0.9.5

type Node struct {
	NodeName       string     `json:"nodeName"`
	NodeType       int        `json:"nodeType"`
	ApprovalType   string     `json:"approvalType"`   //审批类型,只对审批节点有意义
	Subjects       []*Subject `json:"subjects"`       //审批主体,只对审批节点有意义
	Conditions     CondGroup  `json:"condGroup"`      //条件组,只对条件节点有意义
	ConditionNodes []*Node    `json:"conditionNodes"` //条件节点,只对路由节点有意义
	CopyTo         []*Subject `json:"copyTo"`         //抄送人ID,只对副作用节点有意义
	ChildNode      *Node      `json:"childNode"`      //下一节点,对所有节点都有意义
}

type PagingApprovalTask added in v0.9.53

type PagingApprovalTask struct {
	PageNo     int            `json:"pageNo"`
	TotalCount int64          `json:"totalCount"`
	Tasks      []ApprovalTask `json:"tasks"`
}

func GetMyApprovalTask added in v0.9.53

func GetMyApprovalTask(req *GetMyApprovalTaskParam) (*PagingApprovalTask, error)

type PagingCopy added in v0.9.55

type PagingCopy struct {
	PageNo     int    `json:"pageNo"`
	TotalCount int64  `json:"totalCount"`
	Tasks      []Copy `json:"copies"`
}

func GetMyCopy added in v0.9.55

func GetMyCopy(req *GetMyCopyParam) (*PagingCopy, error)

type PagingDefaultCopyTo added in v0.8.8

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

func GetDefaultCopyToInfos added in v0.8.8

func GetDefaultCopyToInfos(req *GetDefaultCopyToInfosRequest) (*PagingDefaultCopyTo, error)

type PassApprovalRequest added in v0.9.5

type PassApprovalRequest struct {
	ApprovalId string `json:"approvalId"`
	Remark     string `json:"remark"`
}

type PassApprovalResponse added in v0.9.5

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

type RejectApprovalRequest added in v0.9.5

type RejectApprovalRequest struct {
	ApprovalId string `json:"approvalId"`
	Remark     string `json:"remark"`
}

type RejectApprovalResponse added in v0.9.5

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

type RevokeLeaveRequest

type RevokeLeaveRequest struct {
	ID string `json:"id"`
}

type RevokeLeaveResponse

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

type SetWorkflowCommonParam added in v0.13.62

type SetWorkflowCommonParam struct {
	WorkflowId string `json:"workflowId"`
	UserId     string `json:"userId"`
	CompanyId  string `json:"companyId"`
	Set        bool   `json:"set"`
}

type SetWorkflowCommonResponse added in v0.13.62

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

type SideEffectTaskResponse added in v0.9.55

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

type Subject added in v0.9.5

type Subject struct {
	SubjectId   string `json:"subjectId"`
	SubjectName string `json:"subjectName"`
}

type TerminateFlowRequest added in v0.9.5

type TerminateFlowRequest struct {
	FlowExecuteId string `json:"flowExecuteId"`
}

type TerminateFlowResponse added in v0.9.5

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

type UpdateCustomFormParam added in v0.9.5

type UpdateCustomFormParam struct {
	WorkflowId string `json:"workflowId"`
	FormExpr   string `json:"formExpr"`
}

type UpdateCustomFormResponse added in v0.9.5

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

type UpdateCwsFlowParam added in v0.9.5

type UpdateCwsFlowParam struct {
	WorkflowId string `json:"workflowId"`
	FirstNode  *Node  `json:"firstNode"`
	FlowExpr   string `json:"flowExpr"`
}

type UpdateCwsFlowResponse added in v0.9.5

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

type UpdateLeaveRequest

type UpdateLeaveRequest struct {
	ID            string  `json:"id"`
	Type          uint8   `json:"type"`
	StartTime     string  `json:"startTime"`
	EndTime       string  `json:"endTime"`
	Duration      float32 `json:"duration"`
	Reason        string  `json:"reason"`
	CompanyID     string  `json:"companyId"`
	ApplyMemberID string  `json:"applyMemberId"`
}

type UpdateLeaveResponse

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

type UploadFormPicRequest added in v0.12.25

type UploadFormPicRequest struct {
	Pic *multipart.FileHeader `form:"file"`
}

动态表单上层图片

type UploadFormPicResponse added in v0.12.25

type UploadFormPicResponse struct {
	Url string `json:"url"`
	// contains filtered or unexported fields
}

type Workflow added in v0.9.49

type Workflow struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	State       int    `json:"state"`
	StateRemark string `json:"stateRemark"`
	CreateTime  string `json:"createTime"`
	Catalog     string `json:"catalog"`
}

func GetMyCommonWorkflow added in v0.13.62

func GetMyCommonWorkflow(req *GetMyCommonWorkflowParam) ([]Workflow, error)

type WorkflowExecute added in v0.9.50

type WorkflowExecute struct {
	ID               string `json:"id"`
	ExecuteName      string `json:"executeName"`
	CreatePersonName string `json:"createPersonName"`
	WorkflowName     string `json:"workflowName"`
	CreateTime       string `json:"createTime"`
	State            string `json:"state"`
}

type WorkflowExecutesPagingResult added in v0.9.50

type WorkflowExecutesPagingResult struct {
	WorkflowExecutes []WorkflowExecute `json:"executes"`
	PageNo           int               `json:"pageNo"`
	TotalCount       int64             `json:"totalCount"`
}

func GetWorkflowExecutes added in v0.9.50

type WorkflowsPagingResult added in v0.9.49

type WorkflowsPagingResult struct {
	Workflows  []Workflow `json:"workflows"`
	PageNo     int        `json:"pageNo"`
	TotalCount int64      `json:"totalCount"`
}

func GetWorkflows added in v0.9.49

func GetWorkflows(req *GetWorkflowsRequest) (*WorkflowsPagingResult, error)

Jump to

Keyboard shortcuts

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