package com.sqx.modules.coupon.controller;

import com.sqx.common.utils.Result;
import com.sqx.modules.coupon.service.TbCouponLogService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
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;

@RestController
@Api(value = "管理端-优惠券记录", tags = {"管理端-优惠券记录"})
@RequestMapping(value = "/admin/couponLog")
public class CouponLogController {

    @Autowired
    private TbCouponLogService tbCouponLogService;


    @ApiOperation("查看优惠券日志记录")
    @GetMapping(value = "selectCouponLog")
    public Result selectCouponLog(Integer page, Integer limit){
        return tbCouponLogService.selectCouponLog(page, limit);
    }
}
