心灵空间

This commit is contained in:
wuchunlei
2025-02-24 17:31:57 +08:00
parent 6908c092a5
commit 91f4ccc2b1
5 changed files with 152 additions and 4 deletions

View File

@@ -131,6 +131,34 @@ public class ShopProductController {
return R.ok();
}
@RequestMapping("/bindProductAndPsycheLabel")
public R bindProductAndPsycheLabel(@RequestBody Map<String,String> map){
String[] productIds = map.get("productId").split(",");
Integer labelId = Integer.valueOf(map.get("labelId"));
shopProductService.bindProductAndPsycheLabel(productIds,labelId);
return R.ok();
}
@RequestMapping("/unbindProductAndPsycheLabel")
public R unbindProductAndPsycheLabel(@RequestBody Map<String,Integer> map){
shopProductService.unbindProductAndPsycheLabel(map.get("productId"),map.get("labelId"));
return R.ok();
}
@RequestMapping("/bindProductAndPsycheMarket")
public R bindProductAndPsycheMarket(@RequestBody Map<String,String> map){
String[] productIds = map.get("productId").split(",");
Integer marketId = Integer.valueOf(map.get("marketId"));
shopProductService.bindProductAndPsycheMarket(productIds,marketId);
return R.ok();
}
@RequestMapping("/unbindProductAndPsycheMarket")
public R unbindProductAndPsycheMarket(@RequestBody Map<String,Integer> map){
shopProductService.unbindProductAndPsycheMarket(map.get("productId"),map.get("marketId"));
return R.ok();
}
@RequestMapping("/bindProductAndMedicineLabel")
public R bindProductAndMedicineLabel(@RequestBody Map<String,String> map){
String[] productIds = map.get("productId").split(",");