办学质量监测教学评价系统
ageer
2025-04-14 a4314dbbdefa806e923d1fd18016a7469804e0e2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package org.ruoyi.mcp.service;
 
import org.springframework.ai.tool.annotation.Tool;
import org.springframework.stereotype.Service;
 
/**
 * @author ageer
 */
@Service
public class McpCustomService {
 
    public record User(String userName, String userBalance) {
    }
 
    @Tool(description = "根据用户名称查询用户信息")
    public User getUserBalance(String username) {
        return new User("admin","99.99");
    }
 
}