package org.wfc.user.controller;

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 org.wfc.common.core.web.controller.BaseController;
import org.wfc.common.core.web.page.TableDataInfo;
import org.wfc.user.domain.vo.UBillUserVo;
import org.wfc.user.service.IUBillService;

import java.util.List;

/**
 * <p>
 * 用户平台-账单表 前端控制器
 * </p>
 *
 * @author sys
 * @since 2025-01-06
 */
@RestController
@RequestMapping("/bill")
public class UBillController extends BaseController {

    @Autowired
    private IUBillService uBillService;

    @GetMapping("/page")
    public TableDataInfo page() {
        startPage();
        List<UBillUserVo> list = uBillService.getBillByUser();
        return getDataTable(list);
    }

}
