/**
 * {{singleAppMethod.codeName}}
 *
 * @param {IContext} [context={}]
 * @param {IParam} [data = {}]
 * @returns {Promise<any>}
 * @memberof {{pascalCase appEntity.codeName}}ServiceBase
 */
public async {{singleAppMethod.codeName}}(context: IContext = {}, data: IParam = {}): Promise<any> {
  {{! 方法路径是否带资源主键 }}
  const deResPath = this.buildDeResPath(context, {{singleAppMethod.psDEServiceAPIMethod.needResourceKey}});
  {{#if (eq singleAppMethod.methodType "SELECT")}}
  {{! 方法类型为SELECT }}
    {{#if (or (eq singleAppMethod.psDEServiceAPIMethod.requestMethod "PUT") (eq singleAppMethod.psDEServiceAPIMethod.requestMethod "POST") )}}
  const res = await this.http.{{lowerCase singleAppMethod.psDEServiceAPIMethod.requestMethod }}(`${deResPath}{{lowerCase singleAppMethod.psDEServiceAPIMethod.requestPath}}`,data);
    {{else}}
  const res = await this.http.{{lowerCase singleAppMethod.psDEServiceAPIMethod.requestMethod }}(`${deResPath}{{lowerCase singleAppMethod.psDEServiceAPIMethod.requestPath}}`);
    {{/if}}
  {{else if (eq singleAppMethod.methodType "FETCHTEMP")}}
  {{! 方法类型为FETCHTEMP }}
  const res = await this.http.{{lowerCase singleAppMethod.psDEServiceAPIMethod.requestMethod }}(`${deResPath}{{lowerCase singleAppMethod.psDEServiceAPIMethod.requestPath}}`);
  {{else if (eq singleAppMethod.methodType "FETCH")}}
  {{! 方法类型为FETCH }}
  const res = await this.http.{{lowerCase singleAppMethod.psDEServiceAPIMethod.requestMethod }}(`${deResPath}{{lowerCase singleAppMethod.psDEServiceAPIMethod.requestPath}}`,data);
  {{else}}
    {{! 方法类型为DEACTION }}
  this.beforeExecuteAction(context,data,'{{singleAppMethod.codeName}}');
    {{#if (eq singleAppMethod.psDEServiceAPIMethod.requestParamType "NONE")}}
    {{! 参数类型为NONE,包含GetDraft }}
      {{#if (neq singleAppMethod.codeName 'GetDraft')}}
  const res = await this.http.{{lowerCase singleAppMethod.psDEServiceAPIMethod.requestMethod }}(`${deResPath}{{lowerCase singleAppMethod.psDEServiceAPIMethod.requestPath}}`);
      {{else}}
  const res = await this.http.{{lowerCase singleAppMethod.psDEServiceAPIMethod.requestMethod }}(`${deResPath}{{lowerCase singleAppMethod.psDEServiceAPIMethod.requestPath}}`,data);
      {{/if}}
    {{else if (eq singleAppMethod.psDEServiceAPIMethod.requestParamType "FIELD")}}
    {{! 参数类型为FIELD,包含Get,Remove }}
  const res = await this.http.{{lowerCase singleAppMethod.psDEServiceAPIMethod.requestMethod }}(`${deResPath}{{lowerCase singleAppMethod.psDEServiceAPIMethod.requestPath}}`);
    {{else if (eq singleAppMethod.psDEServiceAPIMethod.requestParamType "ENTITY")}}
    {{! 参数类型为ENTITY,包含CheckKey,Create,Save,Update }}
  const res = await this.http.{{lowerCase singleAppMethod.psDEServiceAPIMethod.requestMethod }}(`${deResPath}{{lowerCase singleAppMethod.psDEServiceAPIMethod.requestPath}}`,data);
    {{else}}
    {{! 参数类型为URIPARAM }}
  const res = await this.http.{{lowerCase singleAppMethod.psDEServiceAPIMethod.requestMethod }}(`${deResPath}{{lowerCase singleAppMethod.psDEServiceAPIMethod.requestPath}}`,data);
    {{/if}}
  this.afterExecuteAction(context,data,'{{singleAppMethod.codeName}}');
  {{/if}}
  return res;
}
