This commit is contained in:
shuo.wang
2025-04-02 20:45:53 +08:00
parent a4a1d4c26c
commit 9bddbf53a3
5 changed files with 8 additions and 5 deletions

View File

@@ -5,6 +5,7 @@ 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;
@@ -19,16 +20,18 @@ import java.util.List;
* @注释:
*/
@RestController
@Api("机会点详情")
@Api(tags = "机会点详情")
@RequestMapping("/mini/opportunityPoint")
public class MiniOpportunityPointController {
@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));
}