guest.go 564 字节
Newer Older
E
eoLinker API Management 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
package account

import (
	"github.com/eolinker/goku/server/dao/console-mysql"
)

func Login(loginCall, loginPassword string) (bool, int) {
	return console_mysql.Login(loginCall, loginPassword)

}

// 检查用户是否登录
func CheckLogin(userToken string, userID int) bool {
	return console_mysql.CheckLogin(userToken, userID)
}

// 用户注册
func Register(loginCall, loginPassword string) bool {
	return console_mysql.Register(loginCall, loginPassword)
}

func CheckSuperAdminCount()(int,error){
	b,err:=console_mysql.CheckSuperAdminCount()
	return b,err
}