소스 검색

feat: 添加GenBusinessEntity

wangbo 2 주 전
부모
커밋
9cc7b605fb
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      ng_cws_client/callback_info.go

+ 8 - 0
ng_cws_client/callback_info.go

@@ -60,3 +60,11 @@ func (ce CloudEvent) GetDataProcess() (*WorkflowEventDataProcess, error) {
 	}
 	return dataProcess, nil
 }
+
+func (dp *DataProcess) GenBusinessEntity(businessEntity any) error {
+	err := json.Unmarshal([]byte(dp.BusinessEntityInstance), businessEntity)
+	if err != nil {
+		return err
+	}
+	return nil
+}