技能 编程开发 语言数据API抽象用例

语言数据API抽象用例

v20260424
webiny-api-languages-catalog
本文件提供了一套Webiny语言数据的API抽象用例集。它封装了核心的语言管理功能,包括通过语言代码获取单个语言记录,以及获取所有可用语言记录。开发者应使用这些预构建的模式来确保业务逻辑的稳定性和代码的类型安全,提高开发效率。
获取技能
257 次下载
概览

api/languages

How to Use

  1. Find the abstraction you need below
  2. You MUST read the source file to get the exact interface and types!
  3. Import: import { Name } from "<importPath>";
  4. See webiny-use-case-pattern or webiny-event-handler-pattern skills for implementation patterns

Abstractions


Name: GetLanguageByCodeUseCase Import: import { GetLanguageByCodeUseCase } from "webiny/api/languages" Source: @webiny/languages/api/features/getLanguageByCode/index.ts Description: Get a language entry by its code.


Name: ListLanguagesUseCase Import: import { ListLanguagesUseCase } from "webiny/api/languages" Source: @webiny/languages/api/features/listLanguages/index.ts Description: List all language entries.


信息
Category 编程开发
Name webiny-api-languages-catalog
版本 v20260424
大小 900B
更新时间 2026-04-28
语言