|
@@ -3,7 +3,6 @@ package workflow
|
|
|
import (
|
|
import (
|
|
|
"dashoo.cn/opms_libary/plugin/dingtalk/base"
|
|
"dashoo.cn/opms_libary/plugin/dingtalk/base"
|
|
|
"dashoo.cn/opms_libary/plugin/dingtalk/context"
|
|
"dashoo.cn/opms_libary/plugin/dingtalk/context"
|
|
|
- "github.com/alibabacloud-go/tea/tea"
|
|
|
|
|
"github.com/gogf/gf/frame/g"
|
|
"github.com/gogf/gf/frame/g"
|
|
|
"github.com/gogf/gf/util/gconv"
|
|
"github.com/gogf/gf/util/gconv"
|
|
|
)
|
|
)
|
|
@@ -38,16 +37,16 @@ func (w *Workflow) CreateProcessInstance(originUserId, processCode string, deptI
|
|
|
inst1.ProcessCode = &processCode
|
|
inst1.ProcessCode = &processCode
|
|
|
inst1.DeptId = &deptId
|
|
inst1.DeptId = &deptId
|
|
|
|
|
|
|
|
- formComponentValues0 := &StartProcessInstanceRequestFormComponentValues{
|
|
|
|
|
- Name: tea.String("单行输入框"),
|
|
|
|
|
- Value: tea.String("22222"),
|
|
|
|
|
- Id: tea.String("TextField-K2AD4O5B"),
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ //formComponentValues0 := &StartProcessInstanceRequestFormComponentValues{
|
|
|
|
|
+ // Name: tea.String("单行输入框"),
|
|
|
|
|
+ // Value: tea.String("22222"),
|
|
|
|
|
+ // Id: tea.String("TextField-K2AD4O5B"),
|
|
|
|
|
+ //}
|
|
|
//approvers0 := &StartProcessInstanceRequestApprovers{
|
|
//approvers0 := &StartProcessInstanceRequestApprovers{
|
|
|
// ActionType: tea.String("NONE"),
|
|
// ActionType: tea.String("NONE"),
|
|
|
// UserIds: []*string{tea.String("47073111989114")},
|
|
// UserIds: []*string{tea.String("47073111989114")},
|
|
|
//}
|
|
//}
|
|
|
- inst1.FormComponentValues = []*StartProcessInstanceRequestFormComponentValues{formComponentValues0}
|
|
|
|
|
|
|
+ //inst1.FormComponentValues = []*StartProcessInstanceRequestFormComponentValues{formComponentValues0}
|
|
|
//inst1.Approvers = []*StartProcessInstanceRequestApprovers{approvers0}
|
|
//inst1.Approvers = []*StartProcessInstanceRequestApprovers{approvers0}
|
|
|
resp, _ := w.HTTPPostJSONWithAccessToken(CreateInstanceUrl, inst1)
|
|
resp, _ := w.HTTPPostJSONWithAccessToken(CreateInstanceUrl, inst1)
|
|
|
return gconv.String(resp), nil
|
|
return gconv.String(resp), nil
|