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;

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

    @Autowired
    ICuMemberAuthorityService cuMemberAuthorityService;

    /**
     * @description: 查询修改注册权限列表
     * @author: zhang jing
     * @date: 2022/10/20 10:36
     * @param: [memberAuthorityParam]
     * @return: com.hzs.common.core.web.page.TableDataInfo
     **/
    @GetMapping("/list")
    public TableDataInfo list(CuMemberAuthorityParam memberAuthorityParam) {
        startPage();
        List<CuMemberAuthorityParam> list = cuMemberAuthorityService.selectCuMemberAuthorityList(memberAuthorityParam);
        return getDataTable(list);
    }

}
