package com.fs.company.controller.live;

import com.fs.common.core.controller.BaseController;
import com.fs.common.core.page.TableDataInfo;
import com.fs.live.service.ILiveUserFirstEntryService;
import com.fs.live.vo.LiveUserFirstProfit;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 业绩归属控制类Controller
 *
 * @author fs
 * @date 2025-09-08
 */
@RestController
@RequestMapping("/live/liveProfit")
public class LiveProfitController extends BaseController {

    @Autowired
    private ILiveUserFirstEntryService liveUserFirstEntryService;

    @GetMapping("/list")
    public TableDataInfo list() {
        startPage();
        List<LiveUserFirstProfit> list = liveUserFirstEntryService.selectLiveProfitList();
        return getDataTable(list);
    }

}
