|
|
|
@ -1,7 +1,9 @@ |
|
|
|
package com.example.gb.controller; |
|
|
|
|
|
|
|
//import com.github.pagehelper.PageInfo; |
|
|
|
import com.example.gb.bean.vo.LiveOrderVO; |
|
|
|
import com.example.gb.service.GoldbeanConsumeService; |
|
|
|
import com.example.gb.service.GoldbeanGiftService; |
|
|
|
import com.example.gb.util.Page; |
|
|
|
import com.example.gb.util.Result; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
@ -14,12 +16,23 @@ import org.springframework.web.bind.annotation.RestController; |
|
|
|
@RequestMapping("/admin/consume") |
|
|
|
public class GoldbeanConsumeController { |
|
|
|
private GoldbeanConsumeService goldbeanConsumeService; |
|
|
|
private GoldbeanGiftService goldbeanGiftService; |
|
|
|
@Autowired |
|
|
|
public void setGoldbeanConsumeService(GoldbeanConsumeService goldbeanConsumeService) { |
|
|
|
this.goldbeanConsumeService = goldbeanConsumeService; |
|
|
|
} |
|
|
|
@Autowired |
|
|
|
public void setGoldbeanGiftService(GoldbeanGiftService goldbeanGiftService) { |
|
|
|
this.goldbeanGiftService = goldbeanGiftService; |
|
|
|
} |
|
|
|
//直播消费列表 |
|
|
|
@GetMapping("/live/list") |
|
|
|
public Result liveList(@RequestBody Page page){ |
|
|
|
public Result liveList(@RequestBody Page<LiveOrderVO> page){ |
|
|
|
return goldbeanConsumeService.getLiveConsumeList(page); |
|
|
|
} |
|
|
|
//礼物清单 |
|
|
|
@GetMapping("/live/giftList") |
|
|
|
public Result liveGiftList(){ |
|
|
|
return goldbeanGiftService.getGiftList(); |
|
|
|
} |
|
|
|
} |