facade

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

统一门面(v1.1.0)——"接口即 POST + JSON body"风格的单入口

集成方只实现一个转发 controller/endpoint:把 body JSON 转成 map 传入 Flow, 所有流程能力按 action(boot2/boot3 端点短名)路由。返回统一结构 {code, msg, data} (code=0 成功 / 99999999 失败)。

操作人约定:门面不感知登录态,args["operator"] 显式传入。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Facade

type Facade struct {
	// contains filtered or unexported fields
}

Facade 统一门面

func New

New 构造门面

func (*Facade) Flow

func (f *Facade) Flow(action string, args map[string]interface{}) (r map[string]interface{})

Flow 统一入口(action 清单见 spec §11.2)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL