Documentation ¶
Index ¶
- Constants
- func ApproveLeave(params *ApproveLeaveRequest) error
- func CreateCustomForm(req *CreateWorkflowCustomFormParam) error
- func CreateCwsFlow(req *CreateCwsFlowParam) error
- func CreateDefaultCopyTo(req *CreateDefaultCopyToRequest) (string, error)
- func CreateLeave(params *CreateLeaveRequest) (string, error)
- func DeleteDefaultCopyTo(id string) error
- func Destroy()
- func Init(baseUrl string, timeoutSec time.Duration)
- func LaunchWorkflow(req *LaunchWorkflowParam) error
- func PassApproval(req *PassApprovalRequest) error
- func RejectApproval(req *RejectApprovalRequest) error
- func RevokeLeave(params *RevokeLeaveRequest) error
- func TerminateWorkflow(req *TerminateFlowRequest) error
- func UpdateCustomForm(req *UpdateCustomFormParam) error
- func UpdateCwsFlow(req *UpdateCwsFlowParam) error
- func UpdateLeave(params *UpdateLeaveRequest) error
- type ApplyInfo
- type ApproveInfo
- type ApproveLeaveRequest
- type ApproveLeaveResponse
- type Cond
- type CondGroup
- type CreateCustomFormResponse
- type CreateCwsFlowParam
- type CreateCwsFlowResponse
- type CreateDefaultCopyToRequest
- type CreateDefaultCopyToResponse
- type CreateLeaveRequest
- type CreateLeaveResponse
- type CreateWorkflowCustomFormParam
- type DefaultCopyToEntity
- type DeleteDefaultCopyToResponse
- type FlowExecuteProgress
- type FlowNodeExecuteLog
- type FlowNodeItemExecuteLog
- type GetApproveQuery
- type GetDefaultCopyToInfosRequest
- type GetDefaultCopyToInfosResponse
- type GetFlowExecuteLogQuery
- type GetFlowExecuteLogResponse
- type GetLeaveOneQuery
- type GetLeaveOneResponse
- type GetLeavePageQuery
- type GetLeavePageResponse
- type GetMultiResponse
- type GetOneResult
- type LaunchWorkflowParam
- type LaunchWorkflowResponse
- type MyApproveQuery
- type MyApproveResponse
- type Node
- type PagingDefaultCopyTo
- type PassApprovalRequest
- type PassApprovalResponse
- type RejectApprovalRequest
- type RejectApprovalResponse
- type RevokeLeaveRequest
- type RevokeLeaveResponse
- type Subject
- type TerminateFlowRequest
- type TerminateFlowResponse
- type UpdateCustomFormParam
- type UpdateCustomFormResponse
- type UpdateCwsFlowParam
- type UpdateCwsFlowResponse
- type UpdateLeaveRequest
- type UpdateLeaveResponse
Constants ¶
View Source
const (
GetLeavePageFormatMethodName = methodNamePrefix + "/leave/apply"
)
Variables ¶
This section is empty.
Functions ¶
func ApproveLeave ¶
func ApproveLeave(params *ApproveLeaveRequest) error
func CreateCustomForm ¶ added in v0.9.5
func CreateCustomForm(req *CreateWorkflowCustomFormParam) 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 LaunchWorkflow ¶ added in v0.9.5
func LaunchWorkflow(req *LaunchWorkflowParam) 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 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
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 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 CreateCustomFormResponse ¶ added in v0.9.5
type CreateCustomFormResponse struct {
// contains filtered or unexported fields
}
type CreateCwsFlowParam ¶ added in v0.9.5
type CreateCwsFlowResponse ¶ added in v0.9.5
type CreateCwsFlowResponse struct {
// contains filtered or unexported fields
}
type CreateDefaultCopyToRequest ¶ added in v0.8.8
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 DefaultCopyToEntity ¶ added in v0.8.8
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"` 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 GetApproveQuery ¶
type GetDefaultCopyToInfosRequest ¶ added in v0.8.8
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 GetLeaveOneQuery ¶
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 GetMultiResponse ¶
type GetMultiResponse struct { Infos []GetOneResult // 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 LaunchWorkflowParam ¶ added in v0.9.5
type LaunchWorkflowResponse ¶ added in v0.9.5
type LaunchWorkflowResponse struct {
// contains filtered or unexported fields
}
type MyApproveQuery ¶ added in v0.9.35
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:"conditions"` //条件组,只对条件节点有意义 ConditionNodes []*Node `json:"conditionNodes"` //条件节点,只对路由节点有意义 CopyTo []string `json:"copyTo"` //抄送人ID,只对副作用节点有意义 ChildNode *Node `json:"childNode"` //下一节点,对所有节点都有意义 }
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 {
ApprovalToken string `json:"approvalToken"`
}
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 {
ApprovalToken string `json:"approvalToken"`
}
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 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 UpdateCustomFormResponse ¶ added in v0.9.5
type UpdateCustomFormResponse struct {
// contains filtered or unexported fields
}
type UpdateCwsFlowParam ¶ added in v0.9.5
type UpdateCwsFlowResponse ¶ added in v0.9.5
type UpdateCwsFlowResponse struct {
// contains filtered or unexported fields
}
type UpdateLeaveRequest ¶
type UpdateLeaveResponse ¶
type UpdateLeaveResponse struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.