package com.zhongzheng.controller.activity;

import com.zhongzheng.common.annotation.Log;
import com.zhongzheng.common.core.controller.BaseController;
import com.zhongzheng.common.core.domain.AjaxResult;
import com.zhongzheng.common.core.page.TableDataInfo;
import com.zhongzheng.common.enums.BusinessType;
import com.zhongzheng.modules.activity.bo.ActivityGradeAddBo;
import com.zhongzheng.modules.activity.bo.ActivityGradeEditBo;
import com.zhongzheng.modules.activity.bo.ActivityGradeQueryBo;
import com.zhongzheng.modules.activity.service.IActivityGradeService;
import com.zhongzheng.modules.activity.vo.ActivityGradeVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 等级积分Controller
 * 
 * @author change
 * @date 2021-05-19
 */
@Api(value = "等级控制器", tags = {"等级管理"})
@RequiredArgsConstructor(onConstructor_ = @Autowired)
@RestController
@RequestMapping("/grade")
public class ActivityGradeController extends BaseController {

    private final IActivityGradeService iActivityGradeService;

    /**
     * 查询等级积分列表
     */
    @ApiOperation("查询等级管理列表")
    @GetMapping("/list")
    public TableDataInfo<ActivityGradeVo> list(ActivityGradeQueryBo bo) {
        startPage();
        TableDataInfo<ActivityGradeVo> list = iActivityGradeService.queryList(bo);
        return list;
    }


}
