| | |
| | | package com.doumee.api.web; |
| | | |
| | | import com.doumee.config.annotation.LoginRequired; |
| | | import com.doumee.config.annotation.LoginShopRequired; |
| | | import com.doumee.core.annotation.trace.Trace; |
| | | import com.doumee.core.model.ApiResponse; |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.dao.business.model.Shop; |
| | | import com.doumee.dao.business.model.WithdrawRecord; |
| | | import com.doumee.dao.web.dto.shop.*; |
| | | import com.doumee.dao.web.request.WithdrawApplyRequest; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * Created by IntelliJ IDEA. |
| | |
| | | shopService.update(shopDTO,memberId); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | | |
| | | |
| | | @LoginRequired |
| | | @ApiOperation(value = "用户下单查询可选择的自提经销商", notes = "小程序端") |
| | | @PostMapping("/getShopList") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true), |
| | | }) |
| | | public ApiResponse getShopList(@RequestBody ShopListDTO dto){ |
| | | return ApiResponse.success(shopService.getShopList(dto)); |
| | | } |
| | | |
| | | |
| | | |
| | | @LoginShopRequired |
| | | @ApiOperation(value = "提现申请 - 经销商", notes = "小程序端") |
| | | @PostMapping("/withdrawApply") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true), |
| | | }) |
| | | public ApiResponse withdrawApply(@RequestBody WithdrawApplyRequest request){ |
| | | request.setMemberId(getShopId()); |
| | | withdrawRecordService.withdrawApply(request,integralService); |
| | | return ApiResponse.success("操作成功"); |
| | | } |
| | | |
| | | |
| | | |
| | | @LoginShopRequired |
| | | @ApiOperation("查询提现申请详情") |
| | | @GetMapping("/withdrawDetail") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true), |
| | | }) |
| | | public ApiResponse<WithdrawRecord> withdrawDetail(@RequestParam Integer id) { |
| | | return ApiResponse.success(withdrawRecordService.findById(id)); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |