package com.hzs.member.detail.controller.manage;

import com.hzs.common.core.web.controller.BaseController;
import com.hzs.common.core.web.page.TableDataInfo;
import com.hzs.member.detail.service.ICuMemberAuthorityService;
import com.hzs.member.param.CuMemberAuthorityParam;
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;

/**
 * 会员注册权限修改记录表 前端控制器
 *
 * @author zhangjing
 * @since 2022-10-20
 */
@RestController
@RequestMapping("/manager/member-authority")
public class CuMemberAuthorityController extends BaseController {

    @Autowired
    private ICuMemberAuthorityService cuMemberAuthorityService;

    /**
     * 查询修改注册权限列表
     **/
    @GetMapping("/list")
    public TableDataInfo list(CuMemberAuthorityParam memberAuthorityParam) {
        startPage();
        List<CuMemberAuthorityParam> list = cuMemberAuthorityService.selectCuMemberAuthorityList(memberAuthorityParam);
        return getDataTable(list);
    }

}
