sys_job.go 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. // ==========================================================================
  2. // Code generated by GoFrame CLI tool. DO NOT EDIT.
  3. // ==========================================================================
  4. package internal
  5. import (
  6. "github.com/gogf/gf/database/gdb"
  7. "github.com/gogf/gf/frame/g"
  8. "github.com/gogf/gf/frame/gmvc"
  9. )
  10. // SysJobDao is the manager for logic model data accessing and custom defined data operations functions management.
  11. type SysJobDao struct {
  12. gmvc.M // M is the core and embedded struct that inherits all chaining operations from gdb.Model.
  13. C sysJobColumns // C is the short type for Columns, which contains all the column names of Table for convenient usage.
  14. DB gdb.DB // DB is the raw underlying database management object.
  15. Table string // Table is the underlying table name of the DAO.
  16. }
  17. // SysJobColumns defines and stores column names for table sys_job.
  18. type sysJobColumns struct {
  19. JobId string // 任务ID
  20. JobName string // 任务名称
  21. JobParams string // 参数
  22. JobGroup string // 任务组名
  23. InvokeTarget string // 调用目标字符串
  24. CronExpression string // cron执行表达式
  25. MisfirePolicy string // 计划执行策略(1多次执行 2执行一次)
  26. Concurrent string // 是否并发执行(0允许 1禁止)
  27. Status string // 状态(0正常 1暂停)
  28. CreateBy string // 创建者
  29. UpdateBy string // 更新者
  30. Remark string // 备注信息
  31. CreatedAt string // 创建时间
  32. UpdatedAt string // 更新时间
  33. DeletedAt string // 删除时间
  34. }
  35. // NewSysJobDao creates and returns a new DAO object for table data access.
  36. func NewSysJobDao() *SysJobDao {
  37. columns := sysJobColumns{
  38. JobId: "job_id",
  39. JobName: "job_name",
  40. JobParams: "job_params",
  41. JobGroup: "job_group",
  42. InvokeTarget: "invoke_target",
  43. CronExpression: "cron_expression",
  44. MisfirePolicy: "misfire_policy",
  45. Concurrent: "concurrent",
  46. Status: "status",
  47. CreateBy: "create_by",
  48. UpdateBy: "update_by",
  49. Remark: "remark",
  50. CreatedAt: "created_at",
  51. UpdatedAt: "updated_at",
  52. DeletedAt: "deleted_at",
  53. }
  54. return &SysJobDao{
  55. C: columns,
  56. M: g.DB("default").Model("sys_job").Safe(),
  57. DB: g.DB("default"),
  58. Table: "sys_job",
  59. }
  60. }