模型库
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.
 
 
 
 

27 lines
857 B

  1. package dao
  2. import (
  3. "code.fnuoos.com/zhimeng/model.git/src/model"
  4. "xorm.io/xorm"
  5. )
  6. type AdminRoleDao interface {
  7. FindAdminRole(id int) (*[]model.AdminRole, error)
  8. FindAdminRoleByRoleId(id int) (*[]model.AdminRole, error)
  9. AdminDeleteBySessionForAdmId(session *xorm.Session, admId interface{}) (int64, error)
  10. GetAdminRoleByRole(id int) (m *model.AdminRole, err error)
  11. GetAdminRoleByAdminId(id int) (m *model.AdminRole, err error)
  12. AdminRoleDeleteForRoleBySession(session *xorm.Session, roleId interface{}) (int64, error)
  13. AdminRoleDeleteBySession(session *xorm.Session, id interface{}) (int64, error)
  14. BatchAddAdminRoleBySession(session *xorm.Session, mm []*model.AdminRole) (int64, error)
  15. }
  16. type AdminRole struct {
  17. model.Admin `xorm:"extends"`
  18. model.AdminRole `xorm:"extends"`
  19. }
  20. func (AdminRole) TableName() string {
  21. return "admin_role"
  22. }