package com.emoon.mcp.server.service.httpclients;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

import java.util.Map;

/**
 * @author destiny
 * @description:
 * @date 2025/10/14 09:49
 */
@FeignClient(name = "admin", url = "${feign.admin-url}")
public interface AdminClient {

    @PostMapping("/auth/login")
    Map<String, Object> login(Map<String, Object> params);

    @GetMapping("/system/knowledgeInfo/list")
    Map<String, Object> knowledgeList(@RequestHeader(value = "token") String token,
                                      @RequestBody Map<String, Object> params);
}
