feat: UserClient -> AdminUserClient

main
itao 12 months ago
parent fec88aaa9c
commit ef69f01004

@ -11,11 +11,16 @@ import java.util.List;
import java.util.stream.Collectors;
@FeignClient("luoo-user")
public interface UserClient {
public interface AdminUserClient {
@GetMapping("/cms/admin/ids/{ids}")
public Result<List<AdminUser>> queryAdminList(@PathVariable("ids") String ids);
/**
* ID
* @param idList ID
* @return
*/
default List<UserInfo> queryByIds(List<String> idList){
String ids = String.join(",", idList);
Result<List<AdminUser>> result = queryAdminList(ids);

@ -2,7 +2,7 @@ package com.luoo.tag.service;
import api.PageResult;
import com.google.common.collect.Lists;
import com.luoo.tag.client.UserClient;
import com.luoo.tag.client.AdminUserClient;
import com.luoo.tag.config.RequestContext;
import com.luoo.tag.dao.JournalTagDao;
import com.luoo.tag.dao.SongTagDao;
@ -37,7 +37,7 @@ import static java.util.stream.Collectors.*;
public class TagService {
private final TagDao tagDao;
private final IdWorker idWorker;
private final UserClient userClient;
private final AdminUserClient userClient;
private final JournalTagDao journalTagDao;
private final SongTagDao songTagDao;

Loading…
Cancel
Save