Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Approve ¶
type Approve struct { Id string `gorm:"primary_key"` Procinst_id string Procflow_id string Form_id string User_id string User_name string User_dept_id string User_dept_name string User_email string User_phone string Node_id string Node_type string Data string Deal_time *time.Time Deal_result string Update_id string Create_id string Create_time *time.Time Update_time *time.Time Status string }
type ApproveList ¶
type Fork ¶
type Fork struct { Name string `json:"name,omitempty"` Id string `json:"id"` NextId []string `json:"nextId,omitempty"` Conds string `json:"conds,omitempty"` Params []*Param `json:"params,omitempty"` //result can set nodeid as name, stop as value to stop process Results []*Result `json:"results,omitempty"` }
type Process ¶
type Process struct { Id string `json:"id"` Name string `json:"name"` Start *Start `json:"start"` End []*End `json:"end"` Tasks []*Task `json:"tasks"` Forks []*Fork `json:"forks"` }
node type: start, end, task, fork, join
type Procinst ¶
type Procinst struct { Id string `gorm:"primary_key"` Name string Procdef_id string Create_name string Create_dept_id string Create_dept_name string Create_email string Create_phone string Current_flow string Current_name string Start_id string Create_id string Version int Update_id string Create_time *time.Time Update_time *time.Time Status string }
type Task ¶
type Task struct { Name string `json:"name,omitempty"` Id string `json:"id"` PrevId string `json:"prevId,omitempty"` NextId string `json:"nextId,omitempty"` // 0 noneed: noneed approve, direct to next node // 1 list: select approvers from approver list // 2 manual: manual select approvers // 4 manager: select user direct manager as approver // Support combine with add: i.e. 5=4+1=manager+list ApproveType int `json:"approveType,omitempty"` Approvers []*User `json:"approvers,omitempty"` // and sign need number, defaule need all sign ApproveNum int `json:"approveNum,omitempty"` RejectNum int `json:"rejectNum,omitempty"` // and sign , or sign : default or sign, ActType string `json:"actType,omitempty"` Url string `json:"url,omitempty"` FormId string `json:"formId,omitempty"` ValueMap map[string]any `json:"valueMap,omitempty"` }
type User ¶
type User struct { Name string `json:"name,omitempty"` Id string `json:"id,omitempty"` DeptId string `json:"deptId,omitempty"` DeptName string `json:"deptName,omitempty"` Phone string `json:"phone,omitempty"` Email string `json:"email,omitempty"` ManagerId string `json:"managerId,omitempty"` ManagerName string `json:"managerName,omitempty"` }
Click to show internal directories.
Click to hide internal directories.