智慧食堂
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

db_admin_role_permission_group.go 623 B

1 year ago
1 year ago
123456789101112131415161718192021222324252627
  1. package db
  2. import (
  3. model2 "applet/app/db/model"
  4. )
  5. type AdminRolePermissionGroup struct {
  6. model2.Admin `xorm:"extends"`
  7. model2.AdminRole `xorm:"extends"`
  8. model2.Role `xorm:"extends"`
  9. model2.RolePermissionGroup `xorm:"extends"`
  10. model2.PermissionGroup `xorm:"extends"`
  11. }
  12. func (AdminRolePermissionGroup) TableName() string {
  13. return "admin"
  14. }
  15. type AdminEnterprise struct {
  16. model2.Admin `xorm:"extends"`
  17. model2.AdminWithEnterprise `xorm:"extends"`
  18. model2.Enterprise `xorm:"extends"`
  19. }
  20. func (AdminEnterprise) TableName() string {
  21. return "admin"
  22. }