|
@@ -20,7 +20,7 @@ import java.util.List;
|
|
|
|
|
|
@Api(tags = "意见反馈")
|
|
|
@RestController
|
|
|
-@RequestMapping("${app-config.url.web:}/suggestion")
|
|
|
+@RequestMapping("${app-config.url.web:}/")
|
|
|
public class SchoolSysSuggestionController extends BaseController {
|
|
|
|
|
|
@Autowired
|
|
@@ -31,7 +31,7 @@ public class SchoolSysSuggestionController extends BaseController {
|
|
|
private SysUserService sysUserService;
|
|
|
|
|
|
@ApiOperation(value = "新增建议")
|
|
|
- @PostMapping("add")
|
|
|
+ @PostMapping("suggestion/add")
|
|
|
public Object add(SysSuggestion sysSuggestion) {
|
|
|
SysUser sysUser = sysUserService.getUser();
|
|
|
sysSuggestion.setClientType("SYSTEM");
|
|
@@ -44,20 +44,20 @@ public class SchoolSysSuggestionController extends BaseController {
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "分页查询")
|
|
|
- @PostMapping("queryPage")
|
|
|
+ @PostMapping("suggestion/queryPage")
|
|
|
public Object queryPage(@RequestBody SysSuggestionQueryInfo queryInfo) {
|
|
|
queryInfo.setUserId(sysUserService.getUserId());
|
|
|
return succeed(suggestionService.queryPage(queryInfo));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "获取详情")
|
|
|
- @GetMapping("detail")
|
|
|
+ @GetMapping("suggestion/detail")
|
|
|
public HttpResponseResult<SysSuggestion> detail(Long id) {
|
|
|
return succeed(suggestionService.getDetail(id));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "分页查询")
|
|
|
- @PostMapping("queryAll")
|
|
|
+ @PostMapping("suggestionType/queryAll")
|
|
|
public HttpResponseResult<List<SysSuggestionType>> queryAll() {
|
|
|
return succeed(sysSuggestionTypeService.lambdaQuery()
|
|
|
.eq(SysSuggestionType::getTenantId, TenantContextHolder.getTenantId())
|