|  |  |  | 
|---|
|  |  |  | import cc.mrbird.febs.common.entity.FebsResponse; | 
|---|
|  |  |  | import cc.mrbird.febs.mall.conversion.MallAddressInfoConversion; | 
|---|
|  |  |  | import cc.mrbird.febs.mall.dto.AddressInfoDto; | 
|---|
|  |  |  | import cc.mrbird.febs.mall.dto.ApiIdentifyAddressDto; | 
|---|
|  |  |  | import cc.mrbird.febs.mall.entity.MallAddressInfo; | 
|---|
|  |  |  | import cc.mrbird.febs.mall.service.IApiMallAddressInfoService; | 
|---|
|  |  |  | import cc.mrbird.febs.mall.vo.AddressInfoVo; | 
|---|
|  |  |  | 
|---|
|  |  |  | import org.springframework.validation.annotation.Validated; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.*; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import javax.validation.Valid; | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | 
|---|
|  |  |  | @ApiOperation(value = "添加地址", notes = "添加地址") | 
|---|
|  |  |  | @PostMapping(value = "/addAddress") | 
|---|
|  |  |  | public FebsResponse addAddress(@RequestBody AddressInfoDto addressInfoDto) { | 
|---|
|  |  |  | mallAddressInfoService.addAddress(addressInfoDto); | 
|---|
|  |  |  | return new FebsResponse().success().message("添加成功"); | 
|---|
|  |  |  | return mallAddressInfoService.addAddress(addressInfoDto); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation(value = "修改地址", notes = "修改地址") | 
|---|
|  |  |  | 
|---|
|  |  |  | return new FebsResponse().success().message("设置成功"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation(value = "智能识别地址", notes = "智能识别地址") | 
|---|
|  |  |  | @PostMapping(value = "/identifyAddress") | 
|---|
|  |  |  | public FebsResponse identifyAddress(@RequestBody  @Valid ApiIdentifyAddressDto identifyAddressDto) { | 
|---|
|  |  |  | return mallAddressInfoService.identifyAddress(identifyAddressDto); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|