package com.flossom.miniProgram.controller;

import com.flossom.common.core.domain.entity.WxUserIntegralLog;
import com.flossom.common.core.web.controller.BaseController;
import com.flossom.common.core.web.domain.AjaxResult;
import com.flossom.common.core.web.page.TableDataInfo;
import com.flossom.miniProgram.service.IWxUserIntegralService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 微信用户积分 Controller
 *
 * @author flossom
 * @date 2023-12-14
 */
@RestController
@RequestMapping("/integralLog")
public class WxUserIntegraController extends BaseController {

    @Autowired
    private IWxUserIntegralService wxUserIntegralLogService;


    /**
     * 获取用户积分列表
     *
     * @return
     */
    @GetMapping("/obtainUserIntegral")
    public TableDataInfo obtainUserIntegral() {
        startPage();
        List<WxUserIntegralLog> list = wxUserIntegralLogService.obtainUserIntegral();
        return getDataTable(list);
    }

}
