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.
13 lines
219 B
13 lines
219 B
package users
|
|
|
|
import (
|
|
"git.aiterp.net/rpdata/api/models"
|
|
)
|
|
|
|
// Find finds a user by id
|
|
func Find(id string) (models.User, error) {
|
|
user := models.User{}
|
|
err := collection.FindId(id).One(&user)
|
|
|
|
return user, err
|
|
}
|