fix
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user