package task import ( "github.com/gin-gonic/gin" ) func (h *TaskHandler) CreateTask(c *gin.Context) { // ... 复制原有实现 ... }