2 Star 0 Fork 0

hero/momo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
schedulelog.go 1.09 KB
一键复制 编辑 原始数据 按行查看 历史
hero 提交于 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 scheduleLogController struct {
base.BaseController[model.ScheduleLogEntity, schema.ScheduleLogDTO, schema.ScheduleLogDTO, schema.ScheduleLogVO]
}
func newScheduleLogController(s base.IBaseService[model.ScheduleLogEntity]) *scheduleLogController {
return &scheduleLogController{BaseController: *base.NewBaseController[model.ScheduleLogEntity, schema.ScheduleLogDTO, schema.ScheduleLogDTO, schema.ScheduleLogVO](s)}
}
func ScheduleLogRouter(r igin.IRouterGroup) {
var bc base.IBaseController = newScheduleLogController(service.NewScheduleLogService())
c := bc.(*scheduleLogController)
router := r.Group("schedulelog")
{
router.GET("/", rbac.Auth.HasPermit("job_schedulelog"), c.PageByDTO)
router.GET("/:id", rbac.Auth.HasPermit("job_schedulelog_view"), c.GetById)
router.POST("/deletes", rbac.Auth.HasPermit("job_schedulelog_delete"), c.BulkDelete)
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/linqwen/momo.git
git@gitee.com:linqwen/momo.git
linqwen
momo
momo
v1.1.24

搜索帮助