guest.go 584 字节
Newer Older
E
eoLinker API Management 已提交
1 2 3
package account

import (
黄孟柱 已提交
4
	"github.com/eolinker/goku-api-gateway/server/dao/console-mysql"
E
eoLinker API Management 已提交
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
)

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)
}

Y
Your Name 已提交
22 23 24 25
func CheckSuperAdminCount() (int, error) {
	b, err := console_mysql.CheckSuperAdminCount()
	return b, err
}