alarm sequence

This commit is contained in:
2023-08-14 23:52:44 +08:00
parent 2cce814ceb
commit f056c8d7f8
2 changed files with 19 additions and 3 deletions

View File

@@ -770,6 +770,21 @@ func XormCheckLoginUser(name, password, cryptArgo string) (bool, *User, error) {
return true, user, nil
}
func XormIsExistUser(accid string) (bool, error) {
log.Info("XormIsExistUser processing... ")
exist, err := xEngine.Table("user").
Where("account_id=?", accid).
Exist()
if err != nil {
log.Error("Failed to exist user:", err)
return false, err
}
return exist, nil
}
func XormGetConfigValue(moduleName, configTag string) (string, error) {
var value string
_, err := xEngine.Table("config").