| | |
| | | package com.chuangongzhijia.huacheng_union_applets.api; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.equipment.UnionIntegralSummarizeDto; |
| | | import com.panzhihua.common.model.dtos.equipment.UnionShippingAddressDto; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.service.community.CommunityUnionService; |
| | |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/UnionShippingAddress") |
| | | public class UnionShippingAddressApi extends BaseController |
| | | public class UnionShippingAddressApi |
| | | { |
| | | @Resource |
| | | private CommunityUnionService unionStoreService; |
| | | |
| | | @ApiOperation(value = "收货地址列表") |
| | | @ApiOperation(value = "收货地址列表", response = UnionShippingAddressDto.class) |
| | | @GetMapping("/getList") |
| | | 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) |
| | | @RequestParam(value = "communityId",required = false) String communityId) |
| | | { |
| | | return unionStoreService.unionShippingAddressGetList(pageNum,pageSize,communityId,userId); |
| | | return unionStoreService.unionShippingAddressGetList(pageNum,pageSize,communityId); |
| | | } |
| | | |
| | | @ApiOperation(value = "收货地址单个详情") |
| | | @ApiOperation(value = "收货地址单个详情", response = UnionShippingAddressDto.class) |
| | | @GetMapping("/getData") |
| | | public R unionShippingAddressGetData(@RequestParam("id") String id) |
| | | { |
| | | return unionStoreService.unionShippingAddressGetData(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取默认收货地址", response = UnionShippingAddressDto.class) |
| | | @GetMapping("/getDefaultData") |
| | | public R unionShippingAddressGetDefaultData() |
| | | { |
| | | return unionStoreService.unionShippingAddressGetDefaultData(); |
| | | } |
| | | |
| | | @ApiOperation(value = "新增收货地址") |
| | | @PostMapping("/insert") |
| | | public R unionShippingAddressInsert(@RequestBody UnionShippingAddressDto item) |
| | | { |
| | | item.setUserId(getUserId()+""); |
| | | return unionStoreService.unionShippingAddressInsert(item); |
| | | } |
| | | |
| | |
| | | @PostMapping("/update") |
| | | public R unionShippingAddressUpdate(@RequestBody UnionShippingAddressDto item) |
| | | { |
| | | item.setUserId(getUserId()+""); |
| | | return unionStoreService.unionShippingAddressUpdate(item); |
| | | } |
| | | |