客户端接口编写
parent
9c735e5ffb
commit
fb6e2fc1bf
|
@ -14,6 +14,7 @@ import com.muyu.service.EngineVersionService;
|
||||||
import jakarta.servlet.http.HttpServletResponse;
|
import jakarta.servlet.http.HttpServletResponse;
|
||||||
import lombok.val;
|
import lombok.val;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -25,6 +26,7 @@ import java.util.List;
|
||||||
* @name:EngIneController
|
* @name:EngIneController
|
||||||
* @Date:2024/8/22 15:36
|
* @Date:2024/8/22 15:36
|
||||||
*/
|
*/
|
||||||
|
@Component
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/engine")
|
@RequestMapping("/engine")
|
||||||
public class EngIneController extends BaseController {
|
public class EngIneController extends BaseController {
|
||||||
|
@ -131,14 +133,10 @@ public class EngIneController extends BaseController {
|
||||||
* @param id
|
* @param id
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@GetMapping("/findById/{id}")
|
@GetMapping("/findByIds/{id}")
|
||||||
public Result findVersionById(@PathVariable("id") Long id) {
|
public Result findVersionById(@PathVariable("id") Long id) {
|
||||||
return Result.success(engineVersionService.list(new LambdaQueryWrapper<>(){{
|
return Result.success(engineVersionService.list(new LambdaQueryWrapper<>(){{
|
||||||
eq(EngineVersion::getId,id);
|
eq(EngineVersion::getId,id);
|
||||||
}}));
|
}}));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue