sys_role_dept.go 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. DO NOT EDIT THIS FILE MANUALLY.
  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. // SysRoleDeptDao is the manager for logic model data accessing
  11. // and custom defined data operations functions management.
  12. type SysRoleDeptDao struct {
  13. gmvc.M // M is the core and embedded struct that inherits all chaining operations from gdb.Model.
  14. DB gdb.DB // DB is the raw underlying database management object.
  15. Table string // Table is the table name of the DAO.
  16. Columns sysRoleDeptColumns // Columns contains all the columns of Table that for convenient usage.
  17. }
  18. // SysRoleDeptColumns defines and stores column names for table sys_role_dept.
  19. type sysRoleDeptColumns struct {
  20. RoleId string // 角色ID
  21. DeptId string // 部门ID
  22. }
  23. var (
  24. // SysRoleDept is globally public accessible object for table sys_role_dept operations.
  25. SysRoleDept = SysRoleDeptDao{
  26. M: g.DB("default").Model("sys_role_dept").Safe(),
  27. DB: g.DB("default"),
  28. Table: "sys_role_dept",
  29. Columns: sysRoleDeptColumns{
  30. RoleId: "role_id",
  31. DeptId: "dept_id",
  32. },
  33. }
  34. )