package com.tongran.rocketmq.controller;

import com.tongran.common.core.web.controller.BaseController;
import com.tongran.common.core.web.domain.AjaxResult;
import com.tongran.common.security.annotation.RequiresPermissions;
import com.tongran.rocketmq.domain.RmPppoeConfigSub;
import com.tongran.rocketmq.service.IRmPppoeConfigSubService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * PPPoE配置子表Controller
 * 
 * @author tongran
 * @date 2025-12-29
 */
@RestController
@RequestMapping("/rmPppoeConfigSub")
@RequiresPermissions("system:registration")
public class RmPppoeConfigSubController extends BaseController
{
    @Autowired
    private IRmPppoeConfigSubService rmPppoeConfigSubService;

    /**
     * 查询PPPoE配置子表列表
     */
    @PostMapping("/list")
    public AjaxResult list(@RequestBody RmPppoeConfigSub rmPppoeConfigSub)
    {
        List<RmPppoeConfigSub> list = rmPppoeConfigSubService.selectRmPppoeConfigSubList(rmPppoeConfigSub);
        return success(list);
    }



}
