广告平台(总站长使用)
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.
 
 
 
 
 
 

26 lines
780 B

  1. package dao
  2. import (
  3. "applet/app/db/model"
  4. "xorm.io/xorm"
  5. )
  6. type MediumRoleDao interface {
  7. FindMediumRole() (*[]model.MediumRole, error)
  8. GetMediumRole() (m *model.MediumRole, err error)
  9. UpdateMediumRole(m *model.MediumRole, columns ...string) (int64, error)
  10. MediumRoleDeleteBySession(session *xorm.Session, id interface{}) (int64, error)
  11. MediumRoleInsert(m *model.MediumRole) (int, error)
  12. FindPermissionGroupByMediumRole(roleId int) (list []*MediumRolePermissionGroup, total int64, err error)
  13. }
  14. type MediumRolePermissionGroup struct {
  15. model.MediumRole `xorm:"extends"`
  16. model.MediumRolePermissionGroup `xorm:"extends"`
  17. model.MediumPermissionGroup `xorm:"extends"`
  18. }
  19. func (MediumRolePermissionGroup) TableName() string {
  20. return "medium_role"
  21. }