You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.6 KiB

6 years ago
package ${basePackage}.action;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.beans.factory.annotation.Autowired;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.BufferedReader;
import java.io.InputStreamReader;
<#list modules as m>
6 years ago
import ${basePackage}.module.${m.moduleName}.req.*;
import ${basePackage}.module.${m.moduleName}.mgr.*;
6 years ago
</#list>
5 years ago
import ${basePackage}.frame.auth.LocalData;
import ${basePackage}.frame.utils.MapperUtil;
import ${basePackage}.frame.utils.Message;
import ${basePackage}.frame.base.BaseResponse;
import ${basePackage}.frame.base.ErrorType;
import ${basePackage}.frame.auth.Token;
import ${basePackage}.frame.utils.LogUtil;
import ${basePackage}.frame.base.Error;
6 years ago
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
@ResponseBody
@RequestMapping("/feign")
public class FeignController {
<#list modules as m>
<#list m.tables as table>
@Autowired
private ${table.getCName()}Manager ${table.getFName()}Manager;
</#list>
</#list>
@RequestMapping(value = "/user/create", method = RequestMethod.POST)
public BaseResponse d(@RequestBody NewTableGetRequest asd) {
return newTableGetResponse;
}
}

Powered by TurnKey Linux.