JtBusinessController.java 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. package com.goafanti.business.controller;
  2. import javax.annotation.Resource;
  3. import org.springframework.web.bind.annotation.RequestMapping;
  4. import org.springframework.web.bind.annotation.RequestMethod;
  5. import org.springframework.web.bind.annotation.RestController;
  6. import com.goafanti.business.service.JtBusinessService;
  7. import com.goafanti.common.bo.Result;
  8. import com.goafanti.common.controller.CertifyApiController;
  9. @RestController
  10. @RequestMapping(value = "/portal/service")
  11. public class JtBusinessController extends CertifyApiController {
  12. @Resource
  13. private JtBusinessService jtBusinessService;
  14. @RequestMapping(value = "/jtBusiness/getCategoryList" , method = RequestMethod.GET)
  15. public Result getCategoryList(Integer module) {
  16. Result result=new Result();
  17. result.setData(jtBusinessService.getCategoryBoList(module));
  18. return result;
  19. }
  20. @RequestMapping(value = "/jtBusiness/makeMoneyCategoryList" , method = RequestMethod.GET)
  21. public Result makeMoneyCategoryList( ) {
  22. Result result=new Result();
  23. result.setData(jtBusinessService.makeMoneyCategoryList());
  24. return result;
  25. }
  26. @RequestMapping(value="/jtProject/list", method=RequestMethod.GET)
  27. public Result getProjectList(String topId,String secondId,String name,Integer pageSize,Integer pageNo,Integer privateProject,Integer auditStatus,Integer module,Integer isHot,Integer orderType,Integer orderSort,String ownerId) {
  28. Result result=new Result();
  29. result.setData(jtBusinessService.getProjects(topId,secondId,name,pageSize,pageNo,privateProject,auditStatus,module,isHot,orderType,orderSort,ownerId));
  30. return result;
  31. }
  32. }