| | |
| | | import com.mzl.flower.base.R; |
| | | import com.mzl.flower.base.ReturnDataDTO; |
| | | import com.mzl.flower.dto.request.supplier.*; |
| | | import com.mzl.flower.dto.response.current.CurrentUserDTO; |
| | | import com.mzl.flower.dto.response.payment.DeliveryOrderItemListDTO; |
| | | import com.mzl.flower.dto.response.supplier.SupplierSubVO; |
| | | import com.mzl.flower.entity.supplier.SupplierSub; |
| | |
| | | SupplierSub supplierSub = supplierSubService.getById(id); |
| | | return returnData(R.SUCCESS.getCode(), supplierSub); |
| | | } |
| | | |
| | | @GetMapping("/getSwitchById") |
| | | @ApiOperation(value = "子账号切换", notes = "子账号切换") |
| | | public ResponseEntity<ReturnDataDTO<CurrentUserDTO>> getSwitchById(@NotNull(message = "id不能为空") Long id) { |
| | | CurrentUserDTO currentUserDTO = supplierSubService.getSwitchById(id); |
| | | return returnData(R.SUCCESS.getCode(), currentUserDTO); |
| | | } |
| | | } |