From 87084b59d50af0cc042588eae537a32c115cc5b1 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期一, 28 八月 2023 10:36:42 +0800 Subject: [PATCH] 调整方法名,使之更易理解 --- api/v1/task.go | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/api/v1/task.go b/api/v1/task.go index 88a677d..7514b80 100644 --- a/api/v1/task.go +++ b/api/v1/task.go @@ -66,14 +66,14 @@ ctx.OkWithDetailed(taskData) } -// TaskStart +// GetProcessParams // @Tags Task -// @Summary 浠诲姟寮�濮� +// @Summary 浠诲姟寮�濮嬶紙鑾峰彇宸ヨ壓鍙傛暟锛� // @Produce application/json // @Param id path int true "宸ュ簭id" // @Success 200 {object} contextx.Response{data=response.ProcessParamsResponse} "鎴愬姛" // @Router /v1/task/start/{id} [get] -func (slf *TaskApi) TaskStart(c *gin.Context) { +func (slf *TaskApi) GetProcessParams(c *gin.Context) { ctx, ok := contextx.NewContext(c, nil) if !ok { return @@ -163,14 +163,14 @@ ctx.Ok() } -// SendProcessParams +// TaskStart // @Tags Task -// @Summary 涓嬪彂宸ヨ壓鍙傛暟 +// @Summary 涓嬪彂宸ヨ壓鍙傛暟锛堝紑濮嬩换鍔★級 // @Produce application/json // @Param id path int true "宸ュ簭id" // @Success 200 {object} contextx.Response{service.GetProcessModel} "鎴愬姛" // @Router /v1/task/sendProcessParams/{id} [post] -func (slf *TaskApi) SendProcessParams(c *gin.Context) { +func (slf *TaskApi) TaskStart(c *gin.Context) { ctx, ok := contextx.NewContext(c, nil) if !ok { return -- Gitblit v1.8.0