sys_job.go 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. // =================================================================================
  2. // This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
  3. // =================================================================================
  4. package dao
  5. import (
  6. comModel "gfast/app/common/model"
  7. "gfast/app/system/dao/internal"
  8. )
  9. // sysJobDao is the manager for logic model data accessing and custom defined data operations functions management.
  10. // You can define custom methods on it to extend its functionality as you wish.
  11. type sysJobDao struct {
  12. *internal.SysJobDao
  13. }
  14. var (
  15. // SysJob is globally public accessible object for table sys_job operations.
  16. SysJob sysJobDao
  17. )
  18. func init() {
  19. SysJob = sysJobDao{
  20. internal.NewSysJobDao(),
  21. }
  22. }
  23. // Fill with you ideas below.
  24. // SysJobSearchReq 分页请求参数
  25. type SysJobSearchReq struct {
  26. JobName string `p:"jobName"` //任务名称
  27. JobGroup string `p:"jobGroup"` //任务组名
  28. Status string `p:"status"` //状态(0正常 1暂停)
  29. comModel.PageReq
  30. }
  31. // SysJobAddReq 添加操作请求参数
  32. type SysJobAddReq struct {
  33. JobName string `p:"jobName" v:"required#任务名称不能为空"`
  34. JobParams string `p:"jobParams"` // 任务参数
  35. JobGroup string `p:"jobGroup" `
  36. InvokeTarget string `p:"invokeTarget" v:"required#执行方法不能为空"`
  37. CronExpression string `p:"cronExpression" v:"required#任务表达式不能为空"`
  38. MisfirePolicy int `p:"misfirePolicy"`
  39. Concurrent int `p:"concurrent" `
  40. Status int `p:"status" v:"required#状态(0正常 1暂停)不能为空"`
  41. Remark string `p:"remark" `
  42. CreateBy uint64
  43. }
  44. // SysJobEditReq 修改操作请求参数
  45. type SysJobEditReq struct {
  46. JobId int64 `p:"job_id" v:"min:1#任务id不能为空"`
  47. SysJobAddReq
  48. UpdateBy uint64
  49. }