2 Star 0 Fork 0

hero/momo

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
tasklog.go 1015 Bytes
Copy Edit Raw Blame History
hero authored 2024-11-06 13:43 . upd:权限code
package controller
import (
"gitee.com/linqwen/momo/app/job/model"
"gitee.com/linqwen/momo/app/job/schema"
"gitee.com/linqwen/momo/app/job/service"
"gitee.com/linqwen/momo/base"
"gitee.com/linqwen/momo/igin"
"gitee.com/linqwen/momo/rbac"
)
type taskLogCtl struct {
base.BaseController[model.TaskLogEntity, schema.TaskLogCreateDTO, schema.TaskLogQueryDTO, schema.TaskLogVO]
}
func newTaskLogCtl(s base.IBaseService[model.TaskLogEntity]) *taskLogCtl {
return &taskLogCtl{BaseController: *base.NewBaseController[model.TaskLogEntity, schema.TaskLogCreateDTO, schema.TaskLogQueryDTO, schema.TaskLogVO](s)}
}
func TaskLogRouter(r igin.IRouterGroup) {
var bc base.IBaseController = newTaskLogCtl(service.NewTaskLogService())
c := bc.(*taskLogCtl)
router := r.Group("tasklog")
{
router.GET("/", rbac.Auth.HasPermit("job_tasklog"), c.PageByDTO)
router.GET("/:id", rbac.Auth.HasPermit("job_tasklog_view"), c.GetById)
router.POST("/deletes", rbac.Auth.HasPermit("job_tasklog_delete"), c.BulkDelete)
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/linqwen/momo.git
git@gitee.com:linqwen/momo.git
linqwen
momo
momo
v1.1.22

Search