12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- package com.fdkankan.manage.controller;
- import com.fdkankan.manage.common.ResultData;
- import com.fdkankan.manage.entity.JyPlatform;
- import com.fdkankan.manage.entity.JyUser;
- import com.fdkankan.manage.service.IJyPlatformService;
- import com.fdkankan.manage.service.IJyUserService;
- import com.fdkankan.manage.vo.request.JyPlatformParam;
- import com.fdkankan.manage.vo.request.UserParam;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.*;
- import java.util.List;
- /**
- * <p>
- * 前端控制器
- * </p>
- *
- * @author
- * @since 2024-11-14
- */
- @RestController
- @RequestMapping("/service/manage/index")
- public class IndexController {
- @Autowired
- IJyPlatformService jyPlatformService;
- @Autowired
- IJyUserService jyUserService;
- @GetMapping("/addressKey/{address}")
- public ResultData getByAddress(@PathVariable String address){
- return ResultData.ok(jyPlatformService.getByAddress(address));
- }
- @GetMapping("test")
- public ResultData test(){
- UserParam userParam = new UserParam();
- userParam.setRyId("11");
- userParam.setRyNo("122");
- List<JyUser> jyUserList = jyUserService.getByAddParam(userParam);
- return ResultData.ok(jyUserList);
- }
- }
|