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
| スキーマ | 型 | 説明 |
|---|---|---|
PrivateProfileSchema | PrivateProfile | 非公開プロフィール |
CreatePrivateProfileInputSchema | CreatePrivateProfileInput | 作成入力 |
UpdatePrivateProfileInputSchema | UpdatePrivateProfileInput | 更新入力 |
使用例
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",
});