|
|
@@ -183,6 +183,25 @@ func (this *ActivitiService) GetMyTasks(processKey string, userId string) string
|
|
|
return string(p)
|
|
|
}
|
|
|
|
|
|
+func (this *ActivitiService) GetMyTasksWithTime(processKey string, userId string) []ActiMyTasksRetWithTimeVM {
|
|
|
+ var ActiMyTasks ActiMyTasksVM
|
|
|
+ ActiMyTasks.ProcessKey = processKey
|
|
|
+ ActiMyTasks.UserId = userId
|
|
|
+ jsonParam, err := json.Marshal(ActiMyTasks)
|
|
|
+ if err != nil {
|
|
|
+ fmt.Println(err, "生成json字符串错误")
|
|
|
+ }
|
|
|
+ params := string(jsonParam)
|
|
|
+ fmt.Println(params)
|
|
|
+ //token = Authorization(this.Username, this.Password)
|
|
|
+ retVal := this.Post("/my-tasks-with-time", params, "")
|
|
|
+
|
|
|
+ p, _ := ioutil.ReadAll(retVal.Body)
|
|
|
+ myTasksRetWithTimes := make([]ActiMyTasksRetWithTimeVM, 0)
|
|
|
+ json.Unmarshal(p, &myTasksRetWithTimes)
|
|
|
+ return myTasksRetWithTimes
|
|
|
+}
|
|
|
+
|
|
|
func (this *ActivitiService) GetHistoricTasks(processKey string, businessKey string, processInstanceId string) []ActiHistoricTask {
|
|
|
var ActiProcess ActiProcessVM
|
|
|
ActiProcess.ProcessKey = processKey
|