sys_user_post.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. // SysUserPostDao is the manager for logic model data accessing
  11. // and custom defined data operations functions management.
  12. type SysUserPostDao 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 sysUserPostColumns // Columns contains all the columns of Table that for convenient usage.
  17. }
  18. // SysUserPostColumns defines and stores column names for table sys_user_post.
  19. type sysUserPostColumns struct {
  20. UserId string // 用户ID
  21. PostId string // 岗位ID
  22. }
  23. var (
  24. // SysUserPost is globally public accessible object for table sys_user_post operations.
  25. SysUserPost = SysUserPostDao{
  26. M: g.DB("default").Model("sys_user_post").Safe(),
  27. DB: g.DB("default"),
  28. Table: "sys_user_post",
  29. Columns: sysUserPostColumns{
  30. UserId: "user_id",
  31. PostId: "post_id",
  32. },
  33. }
  34. )