|
@@ -4,6 +4,7 @@ package com.example.xiaoshiweixinback.controller;
|
|
import com.example.xiaoshiweixinback.business.common.Constants;
|
|
import com.example.xiaoshiweixinback.business.common.Constants;
|
|
import com.example.xiaoshiweixinback.business.common.Response;
|
|
import com.example.xiaoshiweixinback.business.common.Response;
|
|
import com.example.xiaoshiweixinback.business.common.base.Records;
|
|
import com.example.xiaoshiweixinback.business.common.base.Records;
|
|
|
|
+import com.example.xiaoshiweixinback.checkLogin.checkLogin;
|
|
import com.example.xiaoshiweixinback.domain.AssoCategoryFile;
|
|
import com.example.xiaoshiweixinback.domain.AssoCategoryFile;
|
|
import com.example.xiaoshiweixinback.entity.dto.ConcernCategoryDTO;
|
|
import com.example.xiaoshiweixinback.entity.dto.ConcernCategoryDTO;
|
|
import com.example.xiaoshiweixinback.entity.dto.ProductCategoryDTO;
|
|
import com.example.xiaoshiweixinback.entity.dto.ProductCategoryDTO;
|
|
@@ -31,22 +32,24 @@ public class ProductCategoryController {
|
|
|
|
|
|
@Operation(summary = "查询产品类别")
|
|
@Operation(summary = "查询产品类别")
|
|
@PostMapping("/queryCategory")
|
|
@PostMapping("/queryCategory")
|
|
- private Response queryProductCategory(@RequestBody ProductCategoryDTO productCategoryDTO) {
|
|
|
|
|
|
+ public Response queryProductCategory(@RequestBody ProductCategoryDTO productCategoryDTO) {
|
|
Records records = productCategoryService.queryProductCategory(productCategoryDTO);
|
|
Records records = productCategoryService.queryProductCategory(productCategoryDTO);
|
|
return Response.success(records);
|
|
return Response.success(records);
|
|
}
|
|
}
|
|
|
|
|
|
@Operation(summary = "查询关注的产品类别")
|
|
@Operation(summary = "查询关注的产品类别")
|
|
@PostMapping("/queryConcernedCategory")
|
|
@PostMapping("/queryConcernedCategory")
|
|
- private Response queryConcernedCategory(@RequestBody ProductCategoryDTO productCategoryDTO) {
|
|
|
|
|
|
+ public Response queryConcernedCategory(@RequestBody ProductCategoryDTO productCategoryDTO) {
|
|
productCategoryDTO.setIfConcern(true);
|
|
productCategoryDTO.setIfConcern(true);
|
|
Records records = productCategoryService.queryProductCategory(productCategoryDTO);
|
|
Records records = productCategoryService.queryProductCategory(productCategoryDTO);
|
|
return Response.success(records);
|
|
return Response.success(records);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+ @checkLogin
|
|
@Operation(summary = "关注产品类别")
|
|
@Operation(summary = "关注产品类别")
|
|
@PostMapping("/concernCategory")
|
|
@PostMapping("/concernCategory")
|
|
- private Response concernCategory(@RequestBody ConcernCategoryDTO concernCategoryDTO) {
|
|
|
|
|
|
+ public Response concernCategory(@RequestBody ConcernCategoryDTO concernCategoryDTO) {
|
|
assoPersonCategoryService.concernCategory(concernCategoryDTO);
|
|
assoPersonCategoryService.concernCategory(concernCategoryDTO);
|
|
Records records = new Records();
|
|
Records records = new Records();
|
|
records.setData("关注成功");
|
|
records.setData("关注成功");
|