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.
24 lines
376 B
24 lines
376 B
package userService
|
|
|
|
import (
|
|
"GoClouds/core/comms"
|
|
"GoClouds/models"
|
|
)
|
|
|
|
func FindXid(id string) *models.SysUser {
|
|
if len(id) <= 0 {
|
|
return nil
|
|
}
|
|
e := new(models.SysUser)
|
|
if comms.XormOne(id, e, "xid") {
|
|
return e
|
|
}
|
|
return nil
|
|
}
|
|
func FindName(name string) *models.SysUser {
|
|
e := new(models.SysUser)
|
|
if comms.XormOne(name, e, "name") {
|
|
return e
|
|
}
|
|
return nil
|
|
}
|