func()

in cmd/controller/workflow.go [111:123]


func (c *WorkflowController) QueryDetail(ctx *gin.Context) {
	workflowID := ctx.Param(workflowIDParam)
	res, err := c.workflowDAL.Select(ctx, dal.GetDalClient(), workflowID)
	if err != nil {
		ctx.JSON(http.StatusInternalServerError, err.Error())
		return
	}
	if res == nil {
		ctx.JSON(http.StatusOK, nil)
		return
	}
	ctx.JSON(http.StatusOK, &QueryWorkflowResponse{Workflow: *res})
}