sys_auth_rule.go 1.9 KB

123456789101112131415161718192021222324252627282930313233
  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/os/gtime"
  7. )
  8. // SysAuthRule is the golang structure for table sys_auth_rule.
  9. type SysAuthRule struct {
  10. Id uint `orm:"id,primary" json:"id"` //
  11. Pid uint `orm:"pid" json:"pid"` // 父ID
  12. Name string `orm:"name,unique" json:"name"` // 规则名称
  13. Title string `orm:"title" json:"title"` // 规则名称
  14. Icon string `orm:"icon" json:"icon"` // 图标
  15. Condition string `orm:"condition" json:"condition"` // 条件
  16. Remark string `orm:"remark" json:"remark"` // 备注
  17. MenuType uint `orm:"menu_type" json:"menuType"` // 类型 0目录 1菜单 2按钮
  18. Weigh int `orm:"weigh" json:"weigh"` // 权重
  19. Status uint `orm:"status" json:"status"` // 状态
  20. AlwaysShow uint `orm:"always_show" json:"alwaysShow"` // 显示状态
  21. Path string `orm:"path" json:"path"` // 路由地址
  22. JumpPath string `orm:"jump_path" json:"jumpPath"` // 跳转路由
  23. Component string `orm:"component" json:"component"` // 组件路径
  24. IsFrame uint `orm:"is_frame" json:"isFrame"` // 是否外链 1是 0否
  25. ModuleType string `orm:"module_type" json:"moduleType"` // 所属模块
  26. ModelId uint `orm:"model_id" json:"modelId"` // 模型ID
  27. CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建日期
  28. UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 修改日期
  29. DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` // 删除日期
  30. }