Forge Docs
UserProfile

Private

ユーザーの非公開プロフィールを管理する Sub-Feature

概要

User.Profile.Private はユーザーの非公開プロフィール(住所、電話番号など)の管理を担当する。

API

Handler

関数説明
findPrivateProfileByUserId(client, userId)非公開プロフィールを取得
updatePrivateProfile(client, userId, input)非公開プロフィールを更新

Service

関数説明
createPrivateProfile(client, input)非公開プロフィールを作成
findPrivateProfileByUserId(client, userId)非公開プロフィールを取得
updatePrivateProfile(client, userId, input)非公開プロフィールを更新

Schema

スキーマ説明
PrivateProfileSchemaPrivateProfile非公開プロフィール
CreatePrivateProfileInputSchemaCreatePrivateProfileInput作成入力
UpdatePrivateProfileInputSchemaUpdatePrivateProfileInput更新入力

使用例

import { User } from "@unitto/features";

const privateProfile = await User.Profile.Private.Handler.findPrivateProfileByUserId(
  client,
  userId,
);

await User.Profile.Private.Handler.updatePrivateProfile(client, userId, {
  phone: "090-1234-5678",
});

On this page