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.

40 lines
976 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package ServiceLoginPerson
import (
"dsSso/Dao/DaoSysLoginPerson"
)
/**
功能:验证用户名和密码是否正确
作者:黄海
时间2020-02-05
*/
func Login(username string, password string,ip string) (bool, string, string, string) {
//调用dao层的方法,组合成service方法层
result, identityId, personId, personName := DaoSysLoginPerson.Login(username, password,ip)
return result, identityId, personId, personName
}
/**
功能根据人员ID获取人员信息
作者:黄海
时间2020-04-27
*/
func GetPersonInfoById(identityId string, personId string) map[string]interface{} {
return DaoSysLoginPerson.GetPersonInfoById(identityId, personId)
}
/**
功能:获取单位号
作者:黄海
时间2020-02-05
*/
func GetPersonBureauById(identityId string, personId string) string{
var bureauId = "0"
p := DaoSysLoginPerson.GetPersonInfoById(identityId, personId)
if p != nil {
bureauId = p["bureau_id"].(string)
}
return bureauId
}