rename listClent to listClient

This commit is contained in:
zhanglei
2020-04-16 11:03:50 +08:00
parent 5985245f4b
commit 0049e5fbdd
3 changed files with 4 additions and 4 deletions
@@ -29,7 +29,7 @@ public class ClientController {
@GetMapping("/list") @GetMapping("/list")
@ApiOperation(value = "应用列表") @ApiOperation(value = "应用列表")
public PageResult<Client> list(@RequestParam Map<String, Object> params) { public PageResult<Client> list(@RequestParam Map<String, Object> params) {
return clientService.listClent(params, true); return clientService.listClient(params, true);
} }
@GetMapping("/{id}") @GetMapping("/{id}")
@@ -41,7 +41,7 @@ public class ClientController {
@GetMapping("/all") @GetMapping("/all")
@ApiOperation(value = "所有应用") @ApiOperation(value = "所有应用")
public Result<List<Client>> allClient() { 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()); return Result.succeed(page.getData());
} }
@@ -18,7 +18,7 @@ public interface IClientService extends ISuperService<Client> {
* @param params * @param params
* @param isPage 是否分页 * @param isPage 是否分页
*/ */
PageResult<Client> listClent(Map<String, Object> params, boolean isPage); PageResult<Client> listClient(Map<String, Object> params, boolean isPage);
void delClient(long id); void delClient(long id);
} }
@@ -50,7 +50,7 @@ public class ClientServiceImpl extends SuperServiceImpl<ClientMapper, Client> im
} }
@Override @Override
public PageResult<Client> listClent(Map<String, Object> params, boolean isPage) { public PageResult<Client> listClient(Map<String, Object> params, boolean isPage) {
Page<Client> page; Page<Client> page;
if (isPage) { if (isPage) {
page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit")); page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit"));