|
|
@@ -10,7 +10,9 @@ import shop.alien.entity.store.LawyerCommonQuestion;
|
|
|
import shop.alien.store.service.LawyerCommonQuestionService;
|
|
|
import shop.alien.util.myBaticsPlus.QueryBuilder;
|
|
|
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* 常见问题 前端控制器
|
|
|
@@ -113,5 +115,17 @@ public class LawyerCommonQuestionController {
|
|
|
.page(commonQuestionService);
|
|
|
return R.data(pageResult);
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation("根据数量获取常见问题列表")
|
|
|
+ @ApiOperationSupport(order = 7)
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "num", value = "获取数量", dataType = "Integer", paramType = "query", required = true)
|
|
|
+ })
|
|
|
+ @GetMapping("/getListByNum")
|
|
|
+ public R<List<LawyerCommonQuestion>> getListByNum(@RequestParam Integer num) {
|
|
|
+ log.info("LawyerCommonQuestionController.getListByNum?num={}", num);
|
|
|
+ return commonQuestionService.getCommonQuestionListByNum(num);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|