package bus.controller.biz;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageSerializable;
import bus.model.dto.BNoticeUserDto;
import bus.model.dto.BNoticeUserPageDto;
import bus.model.vo.BNoticeUserVo;
import bus.service.BNoticeUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.qzwisdom.qzframework.core.tool.base.controller.BaseController;



/**
 * @Program: bus
 * @Description: 描述
 * @Author: zy
 * @Date: 2025-03-10 22:38:55
 **/
@Slf4j
@CrossOrigin
@RestController
@Api(tags = "bNoticeUser接口")
@RequestMapping(value="/bNoticeUser")
public class BNoticeUserController implements BaseController {

    @Autowired
    private BNoticeUserService bNoticeUserService;

    @ApiOperation("添加通知用户")
    @PostMapping("/add")
    public void add(@RequestBody BNoticeUserDto dto) {
        bNoticeUserService.addNoticeUser(dto);
    }

    @ApiOperation("批量添加通知用户")
    @PostMapping("/addAll")
    public void addAll() {
        bNoticeUserService.addNoticeUserAll();
    }

}
