RIceWqy 2 years ago
parent ef878a30df
commit e40f4a2674

@ -13,6 +13,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import java.util.List; import java.util.List;
import java.util.Map;
@RestController @RestController
@RequestMapping("/p/user/portfolio") @RequestMapping("/p/user/portfolio")
@ -45,9 +46,9 @@ public class UserPortfolioController {
@PostMapping("/detail") @PostMapping("/detail")
@Operation(summary = "会员列表", description = "会员列表") @Operation(summary = "会员列表", description = "会员列表")
public ServerResponseEntity<UserPortfolio> detail(@RequestParam String profileId) { public ServerResponseEntity<UserPortfolio> detail(@RequestBody Map<String,String> map) {
String portfolioId = map.get("portfolioId");
UserPortfolio userPortfolio = userPortfolioService.getOne(new LambdaQueryWrapper<UserPortfolio>().eq(UserPortfolio::getPortfolioId, profileId)); UserPortfolio userPortfolio = userPortfolioService.getOne(new LambdaQueryWrapper<UserPortfolio>().eq(UserPortfolio::getPortfolioId, portfolioId));
return ServerResponseEntity.success(userPortfolio); return ServerResponseEntity.success(userPortfolio);
} }
} }

@ -106,7 +106,7 @@ public class ServerResponseEntity<T> implements Serializable {
public ServerResponseEntity() { public ServerResponseEntity() {
// 版本号 // 版本号
this.version = "mall4j.v230424"; this.version = "金桐.v1.0";
} }
public static <T> ServerResponseEntity<T> success(T data) { public static <T> ServerResponseEntity<T> success(T data) {

Loading…
Cancel
Save