sys_web_set.go 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. // SysWebSetDao is the manager for logic model data accessing and custom defined data operations functions management.
  11. type SysWebSetDao struct {
  12. gmvc.M // M is the core and embedded struct that inherits all chaining operations from gdb.Model.
  13. C sysWebSetColumns // 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. // SysWebSetColumns defines and stores column names for table sys_web_set.
  18. type sysWebSetColumns struct {
  19. WebId string // 主键
  20. WebContent string // 站点信息
  21. }
  22. // NewSysWebSetDao creates and returns a new DAO object for table data access.
  23. func NewSysWebSetDao() *SysWebSetDao {
  24. columns := sysWebSetColumns{
  25. WebId: "web_id",
  26. WebContent: "web_content",
  27. }
  28. return &SysWebSetDao{
  29. C: columns,
  30. M: g.DB("default").Model("sys_web_set").Safe(),
  31. DB: g.DB("default"),
  32. Table: "sys_web_set",
  33. }
  34. }