sys_oper_log.go 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. // SysOperLogDao is the manager for logic model data accessing and custom defined data operations functions management.
  11. type SysOperLogDao struct {
  12. gmvc.M // M is the core and embedded struct that inherits all chaining operations from gdb.Model.
  13. C sysOperLogColumns // 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. // SysOperLogColumns defines and stores column names for table sys_oper_log.
  18. type sysOperLogColumns struct {
  19. OperId string // 日志主键
  20. Title string // 模块标题
  21. BusinessType string // 业务类型(0其它 1新增 2修改 3删除)
  22. Method string // 方法名称
  23. RequestMethod string // 请求方式
  24. OperatorType string // 操作类别(0其它 1后台用户 2手机端用户)
  25. OperName string // 操作人员
  26. DeptName string // 部门名称
  27. OperUrl string // 请求URL
  28. OperIp string // 主机地址
  29. OperLocation string // 操作地点
  30. OperParam string // 请求参数
  31. JsonResult string // 返回参数
  32. Status string // 操作状态(0正常 1异常)
  33. ErrorMsg string // 错误消息
  34. OperTime string // 操作时间
  35. }
  36. // NewSysOperLogDao creates and returns a new DAO object for table data access.
  37. func NewSysOperLogDao() *SysOperLogDao {
  38. columns := sysOperLogColumns{
  39. OperId: "oper_id",
  40. Title: "title",
  41. BusinessType: "business_type",
  42. Method: "method",
  43. RequestMethod: "request_method",
  44. OperatorType: "operator_type",
  45. OperName: "oper_name",
  46. DeptName: "dept_name",
  47. OperUrl: "oper_url",
  48. OperIp: "oper_ip",
  49. OperLocation: "oper_location",
  50. OperParam: "oper_param",
  51. JsonResult: "json_result",
  52. Status: "status",
  53. ErrorMsg: "error_msg",
  54. OperTime: "oper_time",
  55. }
  56. return &SysOperLogDao{
  57. C: columns,
  58. M: g.DB("default").Model("sys_oper_log").Safe(),
  59. DB: g.DB("default"),
  60. Table: "sys_oper_log",
  61. }
  62. }