feat: implement api v1 for users

This commit is contained in:
Steven
2023-06-20 16:53:31 +08:00
parent 6004a2f657
commit 06926c31dd
8 changed files with 155 additions and 537 deletions

View File

@ -343,16 +343,8 @@ func (raw *shortcutRaw) toShortcut() *api.Shortcut {
}
}
func (s *Store) ComposeShortcut(ctx context.Context, shortcut *api.Shortcut) error {
user, err := s.FindUser(ctx, &api.UserFind{
ID: &shortcut.CreatorID,
})
if err != nil {
return err
}
user.OpenID = ""
shortcut.Creator = user
func (*Store) ComposeShortcut(_ context.Context, _ *api.Shortcut) error {
// TODO: implement this.
return nil
}