接口调用服务端的实现类

This commit is contained in:
chenyq 2025-07-26 23:42:56 +08:00
parent fea2001c10
commit 6f0c6c7540
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
package simple_netty.common.service;
import simple_netty.common.pojo.User;
public interface UserService {
// 客户端通过这个接口调用服务端的实现类
User getUserByUserId(Integer id);
//新增一个功能
Integer insertUserId(User user);
}