| | |
| | | package com.panzhihua.service_equipment.api; |
| | | |
| | | import com.panzhihua.common.model.dtos.equipment.UnionExchangeRecordDto; |
| | | import com.panzhihua.common.model.dtos.equipment.UnionShippingAddressDto; |
| | | import com.panzhihua.common.model.dtos.equipment.UnionUserDto; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.service_equipment.service.UnionExchangeRecordService; |
| | | import com.panzhihua.service_equipment.annotation.CurrentUser; |
| | | import com.panzhihua.service_equipment.service.UnionShippingAddressService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | public R unionShippingAddressGetList(@RequestParam("pageNum") int pageNum, |
| | | @RequestParam("pageSize") int pageSize, |
| | | @RequestParam(value = "communityId",required = false) String communityId, |
| | | @RequestParam(value = "integralTyppe",required = false) String userId) |
| | | @CurrentUser UnionUserDto unionUser) |
| | | { |
| | | return unionStoreService.getList(pageNum,pageSize,communityId,userId); |
| | | return unionStoreService.getList(pageNum,pageSize,communityId,unionUser.getId()+""); |
| | | } |
| | | |
| | | |
| | |
| | | return unionStoreService.getData(id); |
| | | } |
| | | |
| | | @PostMapping("/insert") |
| | | public R unionShippingAddressInsert(@RequestBody UnionShippingAddressDto item) |
| | | |
| | | @GetMapping("/getDefaultData") |
| | | public R unionShippingAddressGetDefaultData(@CurrentUser UnionUserDto unionUser) |
| | | { |
| | | return unionStoreService.getDefaultData(unionUser.getId()+""); |
| | | } |
| | | |
| | | |
| | | @PostMapping("/insert") |
| | | public R unionShippingAddressInsert(@RequestBody UnionShippingAddressDto item, @CurrentUser UnionUserDto unionUser) |
| | | { |
| | | item.setUserId(unionUser.getId()+""); |
| | | return unionStoreService.insert(item); |
| | | } |
| | | |