UNPKG

kdesign-ui

Version:

kd is from company of klx, it provide quickly genarator company inner business front structure

28 lines (26 loc) 842 B
/* md5: 0edc4e3a982bbc926f7b74620e38caa8 */ /* 仓库id: 241245 */ /* 版本: 0.0.1-beta.0 */ /* eslint-disable */ /* tslint:disable */ /** * 本文件由接口平台自动生成,请勿修改 * 仓库地址: http://gitee/repository/editor?id=241245 */ import { string, number, date, array, object } from './utils' {{ each definition }} export const {{($value.method || '').toLowerCase()}}{{$value.definitionCode}}V{{$value.version}} = { Req: {{JSON.stringify(gen.gen($value.queryParam), '', 4)}}, Res: { data: {{Array.isArray($value.outputParam.data) ? '[' : '{'}} {{ each $value.outputParam.data $val}} {{each $val $v $k}} {{$k}}: {{typeof $v}}.value {{/each}} {{/each}} {{Array.isArray($value.outputParam.data) ? ']' : '}'}}, message: string.value, code: number.value } } {{/each}}