IndexController.java 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. package com.fdkankan.manage.controller;
  2. import com.fdkankan.manage.common.ResultData;
  3. import com.fdkankan.manage.entity.JyPlatform;
  4. import com.fdkankan.manage.entity.JyUser;
  5. import com.fdkankan.manage.service.IJyPlatformService;
  6. import com.fdkankan.manage.service.IJyUserService;
  7. import com.fdkankan.manage.vo.request.JyPlatformParam;
  8. import com.fdkankan.manage.vo.request.UserParam;
  9. import org.springframework.beans.factory.annotation.Autowired;
  10. import org.springframework.web.bind.annotation.*;
  11. import java.util.List;
  12. /**
  13. * <p>
  14. * 前端控制器
  15. * </p>
  16. *
  17. * @author
  18. * @since 2024-11-14
  19. */
  20. @RestController
  21. @RequestMapping("/service/manage/index")
  22. public class IndexController {
  23. @Autowired
  24. IJyPlatformService jyPlatformService;
  25. @Autowired
  26. IJyUserService jyUserService;
  27. @GetMapping("/addressKey/{address}")
  28. public ResultData getByAddress(@PathVariable String address){
  29. return ResultData.ok(jyPlatformService.getByAddress(address));
  30. }
  31. @GetMapping("test")
  32. public ResultData test(){
  33. UserParam userParam = new UserParam();
  34. userParam.setRyId("11");
  35. userParam.setRyNo("122");
  36. List<JyUser> jyUserList = jyUserService.getByAddParam(userParam);
  37. return ResultData.ok(jyUserList);
  38. }
  39. }