作者 唐旭辉

Merge branch 'dev' of http://gitlab.fjmaimaimai.com/mmm-go/oppmg into dev

... ... @@ -81,7 +81,7 @@ func (input ValidateInputRedio) ValidateConfig() error {
type TemplateAddRequest struct {
Template Template `json:"template"`
Example string `json:"example"` //示例
AuditFlowConfig AuditFlowConfig `json:"audit_flow_config"`
AuditFlowConfig AuditFlowConfig `json:"auditFlowConfig"`
}
type TemplateAddResponse struct {
}
... ... @@ -97,24 +97,24 @@ type Template struct {
}
type AuditFlowConfig struct {
NoApprover int `json:"no_approver" valid:"Required;"` //审核人为空【1:自动通过】【2:转交给管理员】
ProcessConfig []ProcessConfig `json:"process_config"` //创建时 0
NoApprover int `json:"noApprover" valid:"Required;"` //审核人为空【1:自动通过】【2:转交给管理员】
ProcessConfig []ProcessConfig `json:"processConfig"` //创建时 0
}
type ProcessConfig struct {
ApproveType int `json:"approve_type"` //1.部门长 2 指定成员 3.指定角色
ProcessType int `json:"process_type"` //审批类型 1:正常审核 2:特殊审核
AcitonType int `json:"aciton_type"` //审批执行方式【1:or】【2:and】
GroupId int `json:"group_id"` //分组id
FromSpecialUser []VisibleObject `json:"from_special_user"`
ToRole []VisibleObject `json:"to_role"`
ToUser []VisibleObject `json:"to_user"`
ApproveType int `json:"approveType"` //1.部门长 2 指定成员 3.指定角色
ProcessType int `json:"processType"` //审批类型 1:正常审核 2:特殊审核
AcitonType int `json:"acitonType"` //审批执行方式【1:or】【2:and】
GroupId int `json:"groupId"` //分组id
FromSpecialUser []VisibleObject `json:"fromSpecialUser"`
ToRole []VisibleObject `json:"toRole"`
ToUser []VisibleObject `json:"toUser"`
}
/*TemplateUpdate */
type TemplateUpdateRequest struct {
Template Template `json:"template"`
Example string `json:"example"` //示例`
AuditFlowConfig AuditFlowConfig `json:"audit_flow_config"`
AuditFlowConfig AuditFlowConfig `json:"auditFlowConfig"`
}
type TemplateUpdateResponse struct {
}
... ...