AddressMapper.java 518 B

123456789101112131415161718192021222324252627282930313233343536
  1. package com.example.mapper;
  2. import com.example.entity.Address;
  3. import java.util.List;
  4. /**
  5. * 操作address相关数据接口
  6. */
  7. public interface AddressMapper {
  8. /**
  9. * 新增
  10. */
  11. int insert(Address address);
  12. /**
  13. * 删除
  14. */
  15. int deleteById(Integer id);
  16. /**
  17. * 修改
  18. */
  19. int updateById(Address address);
  20. /**
  21. * 根据ID查询
  22. */
  23. Address selectById(Integer id);
  24. /**
  25. * 查询所有
  26. */
  27. List<Address> selectAll(Address address);
  28. }