@tbmini/code-genarator
v1.7.1
Published
生成代码
Downloads
3
Keywords
Readme
id: code-genarator
根据api-transform转化出的api-tree 生成S端 代码api层代码
Install
npm i -s @tbmini/code-genarator
// or
yarn add @tbmini/code-genarator
Usage
import { Compiler } from '@tbmini/code-genarator'
const complier = new Compiler()
const code = complier.compileApi(apiConfig)
Methods
|Name|Type|Description|
|:--:|:--:|:----------|
|compileApi
|(apiConfig:IApiConfig)=> string
| 根据api-tree编译controller代码