| package com.xzx.gc.user.mapper; | 
|   | 
| import com.xzx.gc.entity.AddressInfo; | 
| import com.xzx.gc.model.user.AddressReq; | 
| import com.xzx.gc.model.user.AddressVo; | 
| import com.xzx.gc.util.GcMapper; | 
| import org.apache.ibatis.annotations.Param; | 
| import org.springframework.stereotype.Repository; | 
|   | 
| import java.util.List; | 
| import java.util.Map; | 
|   | 
| @Repository | 
| public interface AddressMapper extends GcMapper<AddressInfo> { | 
|     List<AddressVo> addressQuery(AddressReq addressReq); | 
|   | 
|     List<AddressVo> queryAreaIdByName(AddressReq addressReq); | 
|   | 
|     List<AddressVo> queryAreaIdById(AddressReq addressReq); | 
|   | 
|     int updateAddressFlag(AddressReq addressReq); | 
|   | 
|     int deleteAddress(Long addressId); | 
|   | 
|     int autoSetDefaultAddress(String userId); | 
|   | 
|     List<Map<String, Object>> queryCuserAddress(@Param("phone") String phone, @Param("userId") String userId); | 
| } |