| | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.account.api.model.TAppUserAddress; |
| | | import com.ruoyi.account.service.TAppUserAddressService; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.web.domain.AjaxResult; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | public AjaxResult<Boolean> deleteById(@RequestParam("id") Integer id) { |
| | | return AjaxResult.ok(appUserAddressService.removeById(id)); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 根据id获取地址信息 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @PostMapping(value = "/getAppUserAddressById/{id}") |
| | | public R<TAppUserAddress> getAppUserAddressById(@PathVariable Long id){ |
| | | TAppUserAddress userAddress = appUserAddressService.getById(id); |
| | | return R.ok(userAddress); |
| | | } |
| | | |
| | | } |
| | | |