-
Notifications
You must be signed in to change notification settings - Fork 10
/
AlibabaMosflowWorkStartprocessRequest.go
64 lines (48 loc) · 1.46 KB
/
AlibabaMosflowWorkStartprocessRequest.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package mos
import (
"net/url"
"github.com/bububa/opentaobao/model"
)
/*
发起流程 APIRequest
alibaba.mosflow.work.startprocess
业务发起流程审批
*/
type AlibabaMosflowWorkStartprocessRequest struct {
model.Params
// 参数二:额外业务参数,Map的JSON串
variables string
// 流程必传参数
parameterEntity *ParameterEntity
}
func NewAlibabaMosflowWorkStartprocessRequest() *AlibabaMosflowWorkStartprocessRequest{
return &AlibabaMosflowWorkStartprocessRequest{
Params: model.NewParams(),
}
}
func (r AlibabaMosflowWorkStartprocessRequest) GetApiMethodName() string {
return "alibaba.mosflow.work.startprocess"
}
func (r AlibabaMosflowWorkStartprocessRequest) GetApiParams() url.Values {
params := url.Values{}
for k, v := range r.GetRawParams() {
params.Set(k, v.String())
}
return params
}
func (r *AlibabaMosflowWorkStartprocessRequest) SetVariables(variables string) error {
r.variables = variables
r.Set("variables", variables)
return nil
}
func (r AlibabaMosflowWorkStartprocessRequest) GetVariables() string {
return r.variables
}
func (r *AlibabaMosflowWorkStartprocessRequest) SetParameterEntity(parameterEntity *ParameterEntity) error {
r.parameterEntity = parameterEntity
r.Set("parameter_entity", parameterEntity)
return nil
}
func (r AlibabaMosflowWorkStartprocessRequest) GetParameterEntity() *ParameterEntity {
return r.parameterEntity
}