alarm sequence

This commit is contained in:
simonzhangsz committed 2023-08-14 23:52:44 +08:00
1 parent 2cce814ceb
commit f056c8d7f8
2 files changed
+19 -3

No files matched your search

+15
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").