|
|
@@ -1,4 +1,4 @@ |
|
|
|
package dao |
|
|
|
package dao |
|
|
|
|
|
|
|
import ( |
|
|
|
"code.fnuoos.com/zhimeng/model.git/src/model" |
|
|
@@ -9,6 +9,7 @@ type AdminDao interface { |
|
|
|
CreateAdminId() (admId int, err error) |
|
|
|
AdminDeleteBySession(session *xorm.Session, admId interface{}) (int64, error) |
|
|
|
GetAdmin(id int) (m *model.Admin, err error) |
|
|
|
GetSuperAdmin() (m *model.Admin, err error) |
|
|
|
GetAdminByUserName(userName string) (m *model.Admin, err error) |
|
|
|
GetAdminRolePermission(admId int) (list []*AdminRolePermission, total int64, err error) |
|
|
|
FindAdmin(username string, state, page, limit int) (list []model.Admin, total int64, err error) |
|
|
|