rename listClent to listClient
This commit is contained in:
@@ -29,7 +29,7 @@ public class ClientController {
|
||||
@GetMapping("/list")
|
||||
@ApiOperation(value = "应用列表")
|
||||
public PageResult<Client> list(@RequestParam Map<String, Object> params) {
|
||||
return clientService.listClent(params, true);
|
||||
return clientService.listClient(params, true);
|
||||
}
|
||||
|
||||
@GetMapping("/{id}")
|
||||
@@ -41,7 +41,7 @@ public class ClientController {
|
||||
@GetMapping("/all")
|
||||
@ApiOperation(value = "所有应用")
|
||||
public Result<List<Client>> allClient() {
|
||||
PageResult<Client> page = clientService.listClent(Maps.newHashMap(), false);
|
||||
PageResult<Client> page = clientService.listClient(Maps.newHashMap(), false);
|
||||
return Result.succeed(page.getData());
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ public interface IClientService extends ISuperService<Client> {
|
||||
* @param params
|
||||
* @param isPage 是否分页
|
||||
*/
|
||||
PageResult<Client> listClent(Map<String, Object> params, boolean isPage);
|
||||
PageResult<Client> listClient(Map<String, Object> params, boolean isPage);
|
||||
|
||||
void delClient(long id);
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ public class ClientServiceImpl extends SuperServiceImpl<ClientMapper, Client> im
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResult<Client> listClent(Map<String, Object> params, boolean isPage) {
|
||||
public PageResult<Client> listClient(Map<String, Object> params, boolean isPage) {
|
||||
Page<Client> page;
|
||||
if (isPage) {
|
||||
page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit"));
|
||||
|
||||
Reference in New Issue
Block a user