提交 31f52428 编写于 作者: neko's avatar neko

update

上级 a31ceeba
...@@ -20,44 +20,44 @@ TARGET=PSAPPDATAENTITY ...@@ -20,44 +20,44 @@ TARGET=PSAPPDATAENTITY
<#if singleAppMethod.getMethodType() == "SELECT"> <#if singleAppMethod.getMethodType() == "SELECT">
if (${condition} && context.${item.getCodeName()?lower_case}) { if (${condition} && context.${item.getCodeName()?lower_case}) {
<#if singleServiceApi.getRequestMethod() == 'PUT' || singleServiceApi.getRequestMethod() == 'POST'> <#if singleServiceApi.getRequestMethod() == 'PUT' || singleServiceApi.getRequestMethod() == 'POST'>
return await this.http.${requestMethodName}(`/${path}${item_code_name}/<#noparse>$</#noparse>{context.${item.getCodeName()?lower_case}}<#if singleServiceApi.getRequestPath()??>${singleServiceApi.getRequestPath()}</#if>`, data); return this.http.${requestMethodName}(`/${path}${item_code_name}/<#noparse>$</#noparse>{context.${item.getCodeName()?lower_case}}<#if singleServiceApi.getRequestPath()??>${singleServiceApi.getRequestPath()}</#if>`, data);
<#else> <#else>
return await this.http.${requestMethodName}(`/${path}${item_code_name}/<#noparse>$</#noparse>{context.${item.getCodeName()?lower_case}}<#if singleServiceApi.getRequestPath()??>${singleServiceApi.getRequestPath()}</#if>`); return this.http.${requestMethodName}(`/${path}${item_code_name}/<#noparse>$</#noparse>{context.${item.getCodeName()?lower_case}}<#if singleServiceApi.getRequestPath()??>${singleServiceApi.getRequestPath()}</#if>`);
</#if> </#if>
} }
<#-- 方法类型为FETCH --> <#-- 方法类型为FETCH -->
<#elseif singleAppMethod.getMethodType() == "FETCH"> <#elseif singleAppMethod.getMethodType() == "FETCH">
if (${condition}) { if (${condition}) {
return await this.http.${requestMethodName}(`/${path}${item_code_name}<#if singleServiceApi.getRequestPath()??>${singleServiceApi.getRequestPath()}</#if>`, data); return this.http.${requestMethodName}(`/${path}${item_code_name}<#if singleServiceApi.getRequestPath()??>${singleServiceApi.getRequestPath()}</#if>`, data);
} }
<#-- 方法类型为FETCHTEMP --> <#-- 方法类型为FETCHTEMP -->
<#elseif singleAppMethod.getMethodType() == "FETCHTEMP"> <#elseif singleAppMethod.getMethodType() == "FETCHTEMP">
if (${condition}) { if (${condition}) {
return await this.http.${requestMethodName}(`/${path}${item_code_name}<#if singleServiceApi.getRequestPath()??>${singleServiceApi.getRequestPath()}</#if>`, data); return this.http.${requestMethodName}(`/${path}${item_code_name}<#if singleServiceApi.getRequestPath()??>${singleServiceApi.getRequestPath()}</#if>`, data);
} }
<#else> <#else>
<#-- 方法类型为DEACTION start --> <#-- 方法类型为DEACTION start -->
<#if singleServiceApi.getRequestParamType() == "NONE"> <#if singleServiceApi.getRequestParamType() == "NONE">
<#-- 无参数情况start --> <#-- 无参数情况start -->
if (${condition}) { if (${condition}) {
return await this.http.${requestMethodName}(`/${path}${item_code_name}<#if singleServiceApi.getRequestPath()??>${singleServiceApi.getRequestPath()}</#if>`); return this.http.${requestMethodName}(`/${path}${item_code_name}<#if singleServiceApi.getRequestPath()??>${singleServiceApi.getRequestPath()}</#if>`);
} }
<#-- 无参数情况end --> <#-- 无参数情况end -->
<#elseif singleServiceApi.getRequestParamType() == "FIELD"> <#elseif singleServiceApi.getRequestParamType() == "FIELD">
<#-- 指定属性情况start --> <#-- 指定属性情况start -->
if (${condition} && context.${item.getCodeName()?lower_case}) { if (${condition} && context.${item.getCodeName()?lower_case}) {
return await this.http.${requestMethodName}(`/${path}${item_code_name}/<#noparse>$</#noparse>{context.${item.getCodeName()?lower_case}}<#if singleServiceApi.getRequestPath()??>${singleServiceApi.getRequestPath()}</#if>`); return this.http.${requestMethodName}(`/${path}${item_code_name}/<#noparse>$</#noparse>{context.${item.getCodeName()?lower_case}}<#if singleServiceApi.getRequestPath()??>${singleServiceApi.getRequestPath()}</#if>`);
} }
<#-- 指定属性情况start --> <#-- 指定属性情况start -->
<#elseif singleServiceApi.getRequestParamType() == "ENTITY"> <#elseif singleServiceApi.getRequestParamType() == "ENTITY">
<#-- 提交对象数据情况start --> <#-- 提交对象数据情况start -->
<#if singleAppMethod.getCodeName() == 'Create'> <#if singleAppMethod.getCodeName() == 'Create'>
if (${condition}) { if (${condition}) {
return await this.http.${requestMethodName}(`/${path}${item_code_name}`, data); return this.http.${requestMethodName}(`/${path}${item_code_name}`, data);
} }
<#else> <#else>
if (${condition} && context.${item.getCodeName()?lower_case}) { if (${condition} && context.${item.getCodeName()?lower_case}) {
return await this.http.${requestMethodName}(`/${path}${item_code_name}/<#noparse>$</#noparse>{context.${item.getCodeName()?lower_case}}<#if singleServiceApi.getRequestPath()??>${singleServiceApi.getRequestPath()}</#if>`, data); return this.http.${requestMethodName}(`/${path}${item_code_name}/<#noparse>$</#noparse>{context.${item.getCodeName()?lower_case}}<#if singleServiceApi.getRequestPath()??>${singleServiceApi.getRequestPath()}</#if>`, data);
} }
</#if> </#if>
<#-- 提交对象数据情况start --> <#-- 提交对象数据情况start -->
...@@ -78,16 +78,16 @@ TARGET=PSAPPDATAENTITY ...@@ -78,16 +78,16 @@ TARGET=PSAPPDATAENTITY
<#-- 方法类型为SELECT --> <#-- 方法类型为SELECT -->
<#if singleAppMethod.getMethodType() == "SELECT"> <#if singleAppMethod.getMethodType() == "SELECT">
<#if singleServiceApi.getRequestMethod() == 'PUT' || singleServiceApi.getRequestMethod() == 'POST'> <#if singleServiceApi.getRequestMethod() == 'PUT' || singleServiceApi.getRequestMethod() == 'POST'>
return await this.http.${requestMethodName}(`/${item_code_name}/<#noparse>$</#noparse>{context.${item.getCodeName()?lower_case}}<#if singleServiceApi.getRequestPath()??>${singleServiceApi.getRequestPath()}</#if>`, data); return this.http.${requestMethodName}(`/${item_code_name}/<#noparse>$</#noparse>{context.${item.getCodeName()?lower_case}}<#if singleServiceApi.getRequestPath()??>${singleServiceApi.getRequestPath()}</#if>`, data);
<#else> <#else>
return await this.http.${requestMethodName}(`/${item_code_name}/<#noparse>$</#noparse>{context.${item.getCodeName()?lower_case}}<#if singleServiceApi.getRequestPath()??>${singleServiceApi.getRequestPath()}</#if>`); return this.http.${requestMethodName}(`/${item_code_name}/<#noparse>$</#noparse>{context.${item.getCodeName()?lower_case}}<#if singleServiceApi.getRequestPath()??>${singleServiceApi.getRequestPath()}</#if>`);
</#if> </#if>
<#-- 方法类型为FETCH --> <#-- 方法类型为FETCH -->
<#elseif singleAppMethod.getMethodType() == "FETCH"> <#elseif singleAppMethod.getMethodType() == "FETCH">
return await this.http.${requestMethodName}(`/${item_code_name}<#if singleServiceApi.getRequestPath()??>${singleServiceApi.getRequestPath()}</#if>`, data); return this.http.${requestMethodName}(`/${item_code_name}<#if singleServiceApi.getRequestPath()??>${singleServiceApi.getRequestPath()}</#if>`, data);
<#-- 方法类型为FETCHTEMP --> <#-- 方法类型为FETCHTEMP -->
<#elseif singleAppMethod.getMethodType() == "FETCHTEMP"> <#elseif singleAppMethod.getMethodType() == "FETCHTEMP">
return await this.http.${requestMethodName}(`/${item_code_name}<#if singleServiceApi.getRequestPath()??>${singleServiceApi.getRequestPath()}</#if>`, data); return this.http.${requestMethodName}(`/${item_code_name}<#if singleServiceApi.getRequestPath()??>${singleServiceApi.getRequestPath()}</#if>`, data);
<#else> <#else>
<#-- 方法类型为DEACTION start --> <#-- 方法类型为DEACTION start -->
<#if singleServiceApi.getRequestParamType() == "NONE"> <#if singleServiceApi.getRequestParamType() == "NONE">
...@@ -106,9 +106,9 @@ TARGET=PSAPPDATAENTITY ...@@ -106,9 +106,9 @@ TARGET=PSAPPDATAENTITY
return res; return res;
<#elseif singleServiceApi.getRequestMethod() == "POST"> <#elseif singleServiceApi.getRequestMethod() == "POST">
<#-- REMOVE --> <#-- REMOVE -->
return await this.http.${requestMethodName}(`/${item_code_name}/<#noparse>$</#noparse>{context.${item.getCodeName()?lower_case}}<#if singleServiceApi.getRequestPath()??>${singleServiceApi.getRequestPath()}</#if>`, data); return this.http.${requestMethodName}(`/${item_code_name}/<#noparse>$</#noparse>{context.${item.getCodeName()?lower_case}}<#if singleServiceApi.getRequestPath()??>${singleServiceApi.getRequestPath()}</#if>`, data);
<#else> <#else>
return await this.http.${requestMethodName}(`/${item_code_name}/<#noparse>$</#noparse>{context.${item.getCodeName()?lower_case}}<#if singleServiceApi.getRequestPath()??>${singleServiceApi.getRequestPath()}</#if>`); return this.http.${requestMethodName}(`/${item_code_name}/<#noparse>$</#noparse>{context.${item.getCodeName()?lower_case}}<#if singleServiceApi.getRequestPath()??>${singleServiceApi.getRequestPath()}</#if>`);
</#if> </#if>
<#-- 指定属性情况start --> <#-- 指定属性情况start -->
<#elseif singleServiceApi.getRequestParamType() == "ENTITY"> <#elseif singleServiceApi.getRequestParamType() == "ENTITY">
...@@ -130,7 +130,7 @@ TARGET=PSAPPDATAENTITY ...@@ -130,7 +130,7 @@ TARGET=PSAPPDATAENTITY
await this.setMinorLocalCache(context, res.data); await this.setMinorLocalCache(context, res.data);
return res; return res;
<#else> <#else>
return await this.http.${requestMethodName}(`/${item_code_name}/<#noparse>$</#noparse>{context.${item.getCodeName()?lower_case}}<#if singleServiceApi.getRequestPath()??>${singleServiceApi.getRequestPath()}</#if>`, data); return this.http.${requestMethodName}(`/${item_code_name}/<#noparse>$</#noparse>{context.${item.getCodeName()?lower_case}}<#if singleServiceApi.getRequestPath()??>${singleServiceApi.getRequestPath()}</#if>`, data);
</#if> </#if>
<#-- 提交对象数据情况start --> <#-- 提交对象数据情况start -->
<#else> <#else>
...@@ -286,7 +286,7 @@ TARGET=PSAPPDATAENTITY ...@@ -286,7 +286,7 @@ TARGET=PSAPPDATAENTITY
</#if> </#if>
</#list> </#list>
if (${condition}) { if (${condition}) {
return await this.http.post(`${path}${item_code_name}/${singleAppMethod.getCodeName()?lower_case}`, data); return this.http.post(`${path}${item_code_name}/${singleAppMethod.getCodeName()?lower_case}`, data);
} }
</#list> </#list>
</#if> </#if>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册