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

admin_role_dao.go 773 B

4 months ago
12345678910111213141516171819202122232425
  1. package dao
  2. import (
  3. "applet/app/db/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. AdminRoleDeleteForRoleBySession(session *xorm.Session, roleId interface{}) (int64, error)
  12. AdminRoleDeleteBySession(session *xorm.Session, id interface{}) (int64, error)
  13. BatchAddAdminRoleBySession(session *xorm.Session, mm []*model.AdminRole) (int64, error)
  14. }
  15. type AdminRole struct {
  16. model.Admin `xorm:"extends"`
  17. model.AdminRole `xorm:"extends"`
  18. }
  19. func (AdminRole) TableName() string {
  20. return "admin_role"
  21. }