1、service包下 –> New -> Interface
黑猴子的家:Stock(十 一) 创建 UserService 接口
2、 Name -> UserService -> Finish
黑猴子的家:Stock(十 一) 创建 UserService 接口
3、UserService 内容
package com.yg.service;

import java.util.List;
import com.yg.entity.User;

//类名首字母大写
public interface UserService {

      //方法名首字母小写
      public User login(String userno,String pwd);
      
      public List<User> get_All_Users();
      
      public Boolean add_User(User user);
      
      public Boolean delete_User(String id);
      
      public Boolean edit_User(User user);
}

相关文章:

  • 2021-09-24
  • 2021-05-17
  • 2021-10-14
  • 2022-01-09
  • 2021-12-07
  • 2022-01-19
  • 2021-04-28
  • 2021-04-24
猜你喜欢
  • 2021-08-23
  • 2021-12-08
  • 2021-05-30
  • 2022-01-16
  • 2021-09-20
  • 2022-01-15
  • 2022-01-05
相关资源
相似解决方案