18 lines
263 B
Go
18 lines
263 B
Go
package users
|
|
|
|
import (
|
|
"system-trace/core/database/entities"
|
|
"time"
|
|
|
|
"github.com/gofiber/fiber/v2"
|
|
)
|
|
|
|
func Get(c *fiber.Ctx) error {
|
|
return nil
|
|
}
|
|
|
|
func Login(u *entities.User) error {
|
|
u.LastLogin = time.Now()
|
|
return UpdateUser(u, []string{"last_login"})
|
|
}
|