package ${packageName};

import org.springframework.web.bind.annotation.${requestMethod};
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
* ${apiVendor}接口实现类
* ${apiDesc}
* 备注：${apiRemark}
* @author 自动生成
* @date ${createTime}
*/
@RestController
@RequestMapping("/api")
public class ${className} {

    /**
    * ${apiDesc}
    * 接口路径：${requestPath}
    */
    @${requestMethod}("${requestPath}")
    public ${responseEntityName} ${methodName}(
        <#if requestParams?exists && requestParams?size > 0>
            <#list requestParams as param>
                <#if param.required?? && param.required>@RequestParam(required = true) </#if>
                <#if !param.required?? || !param.required>@RequestParam(required = false) </#if>
                ${param.paramType} ${param.paramName}
                <#if param_has_next>,</#if>
            </#list>
        </#if>
    ) {

        // 接口业务逻辑
        return AjaxResult. ${responseEntityName}();
    }
}