メインコンテンツまでスキップ
バージョン: 0.13.0 (Previous)

🚀 プロファイル機能

プロファイル機能は Express ミドルウェアではなく SDK コンポーザーです。profileService は、必要なストアとドライバーを使用してプロファイル機能をマウントします。

一覧

機能合成するスキーマ合成するルート目的
createProfileFeaturecreateProfileSchemacreateProfileRouteプロファイルを作成します。
getProfileFeaturegetProfileSchemagetProfileRoute1 件のプロファイルを読み取ります。
findProfilesFeaturefindProfilesSchemafindProfilesRouteプロファイルを一覧表示します。
editProfileFeatureupdateProfileSchemaupdateProfileRouteプロファイルを更新します。
deleteProfileFeaturedeleteProfileSchemadeleteProfileRouteプロファイルを削除します。
getAvatarUploadUrlFeaturegetSignedImageUploadUrlSchemagetAvatarUploadUrlRoute署名付きアバターアップロード URL を作成します。
findProfilesByIdentityIdFeaturefindByIdentityIdSchemafindProfilesByIdentityIdRoute呼び出し元 ID のプロファイルを一覧表示します。
createProfileFollowFeaturecreateProfileFollowSchemacreateProfileFollowRouteプロファイルをフォローします。
deleteProfileFollowFeaturedeleteProfileFollowSchemadeleteProfileFollowRouteプロファイルのフォローを解除します。
getProfileFollowersFeaturegetProfileFollowersSchemagetProfileFollowersRouteフォロワーを一覧表示します。
createOrganizationFollowFeaturecreateOrganizationFollowSchemacreateOrganizationFollowRoute組織をフォローします。
deleteOrganizationFollowFeaturedeleteOrganizationFollowSchemadeleteOrganizationFollowRoute組織のフォローを解除します。
createProductLikeFeaturecreateProductLikeSchemacreateProductLikeRoute製品に「いいね」を付けます。
deleteProductLikeFeaturedeleteProductLikeSchemadeleteProductLikeRoute製品の「いいね」を取り消します。

詳細

各機能は profileService によってマウントされます。以下のソース定義は、スキーマからルートへの正確な合成を示します。

createProfileFeature

実装

この機能は一覧行でリンクされたスキーマとルートを合成します。profileService または互換性のあるカスタムサービスコンテキストによってマウントされます。

完全なソースを表示
export const createProfileFeature = compose(createProfileSchema, createProfileRoute);

getProfileFeature

実装

この機能は一覧行でリンクされたスキーマとルートを合成します。profileService または互換性のあるカスタムサービスコンテキストによってマウントされます。

完全なソースを表示
export const getProfileFeature = compose(getProfileSchema, getProfileRoute);

findProfilesFeature

実装

この機能は一覧行でリンクされたスキーマとルートを合成します。profileService または互換性のあるカスタムサービスコンテキストによってマウントされます。

完全なソースを表示
export const findProfilesFeature = compose(findProfilesSchema, findProfilesRoute);

editProfileFeature

実装

この機能は一覧行でリンクされたスキーマとルートを合成します。profileService または互換性のあるカスタムサービスコンテキストによってマウントされます。

ルートのエクスポート名は updateProfileRoute ですが、公開機能名は editProfileFeature のままです。

完全なソースを表示
export const editProfileFeature = compose(updateProfileSchema, updateProfileRoute);

deleteProfileFeature

実装

この機能は一覧行でリンクされたスキーマとルートを合成します。profileService または互換性のあるカスタムサービスコンテキストによってマウントされます。

完全なソースを表示
export const deleteProfileFeature = compose(deleteProfileSchema, deleteProfileRoute);

getAvatarUploadUrlFeature

実装

この機能は一覧行でリンクされたスキーマとルートを合成します。profileService または互換性のあるカスタムサービスコンテキストによってマウントされます。

このルートには、profileService に渡される任意の fileStorageDriver が必要です。

完全なソースを表示
export const getAvatarUploadUrlFeature = compose(getSignedImageUploadUrlSchema, getAvatarUploadUrlRoute);

findProfilesByIdentityIdFeature

実装

この機能は一覧行でリンクされたスキーマとルートを合成します。profileService または互換性のあるカスタムサービスコンテキストによってマウントされます。

完全なソースを表示
export const findProfilesByIdentityIdFeature = compose(findByIdentityIdSchema, findProfilesByIdentityIdRoute);

createProfileFollowFeature

実装

この機能は一覧行でリンクされたスキーマとルートを合成します。profileService または互換性のあるカスタムサービスコンテキストによってマウントされます。

完全なソースを表示
export const createProfileFollowFeature = compose(createProfileFollowSchema, createProfileFollowRoute);

deleteProfileFollowFeature

実装

この機能は一覧行でリンクされたスキーマとルートを合成します。profileService または互換性のあるカスタムサービスコンテキストによってマウントされます。

完全なソースを表示
export const deleteProfileFollowFeature = compose(deleteProfileFollowSchema, deleteProfileFollowRoute);

getProfileFollowersFeature

実装

この機能は一覧行でリンクされたスキーマとルートを合成します。profileService または互換性のあるカスタムサービスコンテキストによってマウントされます。

完全なソースを表示
export const getProfileFollowersFeature = compose(getProfileFollowersSchema, getProfileFollowersRoute);

createOrganizationFollowFeature

実装

この機能は一覧行でリンクされたスキーマとルートを合成します。profileService または互換性のあるカスタムサービスコンテキストによってマウントされます。

完全なソースを表示
export const createOrganizationFollowFeature = compose(createOrganizationFollowSchema, createOrganizationFollowRoute);

deleteOrganizationFollowFeature

実装

この機能は一覧行でリンクされたスキーマとルートを合成します。profileService または互換性のあるカスタムサービスコンテキストによってマウントされます。

完全なソースを表示
export const deleteOrganizationFollowFeature = compose(deleteOrganizationFollowSchema, deleteOrganizationFollowRoute);

createProductLikeFeature

実装

この機能は一覧行でリンクされたスキーマとルートを合成します。profileService または互換性のあるカスタムサービスコンテキストによってマウントされます。

完全なソースを表示
export const createProductLikeFeature = compose(createProductLikeSchema, createProductLikeRoute);

deleteProductLikeFeature

実装

この機能は一覧行でリンクされたスキーマとルートを合成します。profileService または互換性のあるカスタムサービスコンテキストによってマウントされます。

完全なソースを表示
export const deleteProductLikeFeature = compose(deleteProductLikeSchema, deleteProductLikeRoute);