• This project
    • Loading...
  • Sign in

developOne / harmonyPool

Go to a project
Toggle navigation
  • Projects
  • Groups
  • Snippets
  • Help
Toggle navigation pinning
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • harmonyPool
  • ..
  • service
  • LayoutCallback.ets
  • 编排底层能力 · 5f85d588
    5f85d588 Browse Files
    liujian1_wd authored 2024-01-09 16:56:58 +0800
LayoutCallback.ets 304 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
/**
 * LayoutService数据请求的回调接口
 */
export interface LayoutCallback<T> {

  /**
   * 成功
   * @param data 数据
   */
  onSuccess: (data: T) => void;

  /**
   * 失败
   * @param code 错误码
   * @param message 描述
   */
  onFailed: (code: number, message: string) => void;

}