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