One method name is not clear

The original method name is not clear enough to describe the work of the method. In fact, this method is used to search all matched results. But the original name "getDicts" may make developers misunderstand this method that is used to create dictionaries or some other works. I just would like to make it clear about this problem.
pull/343/head
researchlive 2020-05-04 13:37:38 -04:00 committed by GitHub
parent d35ffc9d8c
commit 1cf6ee40b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ public class DictController {
@ApiOperation("查询字典")
@GetMapping
@PreAuthorize("@el.check('dict:list')")
public ResponseEntity<Object> getDicts(DictQueryCriteria resources, Pageable pageable){
public ResponseEntity<Object> getByQuery(DictQueryCriteria resources, Pageable pageable){
return new ResponseEntity<>(dictService.queryAll(resources,pageable),HttpStatus.OK);
}