task_service.go 333 B

12345678910111213
  1. package service
  2. import (
  3. "Zythum/common"
  4. "Zythum/controller"
  5. "github.com/gin-gonic/gin"
  6. )
  7. func TaskBasicService(engine *gin.Engine) {
  8. engine.GET(common.GetNewTask, controller.NewTaskHandler)
  9. engine.GET(common.UpdateTaskStatus, controller.UpdateTaskHandler)
  10. engine.GET(common.GetTaskStatus, controller.GetTaskStatusHandler)
  11. }