|
@@ -25,6 +25,7 @@ public class ZfbController {
|
|
|
@Autowired
|
|
|
private BrandService brandService;
|
|
|
|
|
|
+
|
|
|
@Autowired
|
|
|
private ZhiHouseService zhiHouseService;
|
|
|
|
|
@@ -71,6 +72,26 @@ public class ZfbController {
|
|
|
return Result.success(resultMap);
|
|
|
}
|
|
|
|
|
|
+ @PostMapping("/queryBrandByUserId")
|
|
|
+ public Result queryBrandByUserId(@RequestBody JSONObject param) {
|
|
|
+ Long userId = param.getLong("userId");
|
|
|
+ if(userId == null){
|
|
|
+ return Result.failure("用户id为空");
|
|
|
+ }
|
|
|
+ List<Long> longs = mySysUserBrandService.queryBrandIdList(userId);
|
|
|
+ return Result.success(longs.size());
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("/deleteBrandUser")
|
|
|
+ public Result deleteBrandUser(@RequestBody JSONObject param) {
|
|
|
+ Long userId = param.getLong("userId");
|
|
|
+ if(userId == null){
|
|
|
+ return Result.failure("用户id为空");
|
|
|
+ }
|
|
|
+ mySysUserBrandService.deleteByUserId(userId);
|
|
|
+ return Result.success();
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
|
|
|
}
|