Skip to content

Commit

Permalink
🔐 删除未使用的接口,删除冗余代码
Browse files Browse the repository at this point in the history
  • Loading branch information
lltx committed Jun 1, 2024
1 parent 1a43159 commit df20ee7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;

import java.util.List;

/**
* @author lengleng
* @date 2020/12/05
Expand All @@ -47,12 +45,5 @@ public interface RemoteClientDetailsService {
R<SysOauthClientDetails> getClientDetailsById(@PathVariable("clientId") String clientId,
@RequestHeader(SecurityConstants.FROM) String from);

/**
* 查询全部客户端
* @param from 调用标识
* @return R
*/
@GetMapping("/client/list")
R<List<SysOauthClientDetails>> listClientDetails(@RequestHeader(SecurityConstants.FROM) String from);

}
Original file line number Diff line number Diff line change
Expand Up @@ -124,22 +124,13 @@ public R update(@Valid @RequestBody SysOauthClientDetails clientDetails) {
return R.ok(clientDetailsService.updateClientById(clientDetails));
}

@Inner(false)
@Inner
@GetMapping("/getClientDetailsById/{clientId}")
public R getClientDetailsById(@PathVariable String clientId) {
return R.ok(clientDetailsService.getOne(
Wrappers.<SysOauthClientDetails>lambdaQuery().eq(SysOauthClientDetails::getClientId, clientId), false));
}

/**
* 查询全部客户端
* @return
*/
@Inner(false)
@GetMapping("/list")
public R listClients() {
return R.ok(clientDetailsService.list());
}

/**
* 同步缓存字典
Expand Down

0 comments on commit df20ee7

Please sign in to comment.