• TopViewのAPIを取り扱うロジックを生成します。

    Returns {
        fetchInformationDetail: ((param) => Promise<WebApiResponse<{
            data: string;
            detailCustomStyle: string;
        }>>);
        loadDefinition: (() => Promise<ViewInitializationDataResponse<TopViewDefinition, Record<string, never>>>);
    }

    Example

    const { fetchInformationDetail } = Mdc.useTopViewService();
    fetchInformationDetail({ oid: "1", version: 0}).then(({ isSuccess, data}) => {
    // お知らせ情報の詳細
    console.log(data.data);
    });