Add user info service

Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
2025-12-25 02:50:27 +08:00
parent 396ab10469
commit f8b6c1b1df
5 changed files with 45 additions and 3 deletions

View File

@@ -25,7 +25,7 @@ func (self *User) GetByEmail(email string) error {
return nil
}
func (self *User) GetByUserId(userId string) error {
func (self *User) GetByUserId(userId uuid.UUID) error {
if err := Database.Where("user_id = ?", userId).First(&self).Error; err != nil {
return err
}