This commit is contained in:
shuo.wang
2025-04-08 19:47:22 +08:00
parent e95063054a
commit 012a07e1c7
2 changed files with 53 additions and 4 deletions

View File

@@ -0,0 +1,38 @@
package com.cool.store.controller.webb;
import com.cool.store.dto.MiniShopDTO;
import com.cool.store.response.ResponseResult;
import com.cool.store.service.OpportunityPointService;
import com.cool.store.vo.point.MiniPointPageVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
/**
* @Author: WangShuo
* @Date: 2025/04/02/18:44
* @Version 1.0
* @注释:
*/
@RestController
@Api(tags = "机会点详情")
@RequestMapping("/pc/opportunityPoint")
public class PCOpportunityPointController {
@Resource
private OpportunityPointService opportunityPointService;
@GetMapping("/getPoints")
@ApiModelProperty("根据机会点编号获取铺位信息")
public ResponseResult<List<MiniPointPageVO> >getPointByOpportunityPointCode(String code) {
return ResponseResult.success(opportunityPointService.getPointByOpportunityPointCode(code));
}
@GetMapping("/getShops")
@ApiModelProperty("根据机会点编号获取门店信息")
public ResponseResult<List<MiniShopDTO> >getShopByOpportunityPointCode(String code) {
return ResponseResult.success(opportunityPointService.getShopByOpportunityPointCode(code));
}
}

View File

@@ -1,10 +1,7 @@
package com.cool.store.controller.webb;
import com.cool.store.request.bigdata.ProfitDataRequest;
import com.cool.store.request.oppty.CityRequest;
import com.cool.store.request.oppty.FollowRequest;
import com.cool.store.request.oppty.InspectionRequest;
import com.cool.store.request.oppty.OpportunityListRequest;
import com.cool.store.request.oppty.*;
import com.cool.store.response.ResponseResult;
import com.cool.store.response.bigdata.ProfitDataResponse;
import com.cool.store.response.oppty.CityResponse;
@@ -58,4 +55,18 @@ public class PCThirdApiController {
public ResponseResult<String> inspectionOpportunity(@Valid @RequestBody InspectionRequest request) {
return ResponseResult.success(thirdOpportunityService.inspectionOpportunity(request));
}
@PostMapping("/berthOperation")
@ApiOperation("铺位关注机会点")
public ResponseResult<String> berthOperation(@Valid @RequestBody BerthOperationRequest request) {
return ResponseResult.success(thirdOpportunityService.berthOperation(request));
}
@PostMapping("/storeOperation")
@ApiOperation("门店关注机会点")
public ResponseResult<String> storeOperation(@Valid @RequestBody StoreOperationRequest request) {
return ResponseResult.success(thirdOpportunityService.storeOperation(request));
}
}