| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- package com.coffee.bus.controller;
- import com.baomidou.mybatisplus.core.mapper.Mapper;
- import com.coffee.bus.entity.BusDeviceEntity;
- import com.coffee.bus.service.LocalBusDeviceService;
- import com.coffee.common.crud.BaseService;
- import com.coffee.common.crud.controller.BaseCrudController;
- import io.swagger.annotations.Api;
- import lombok.AllArgsConstructor;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RestController;
- /**
- * @author lifang
- * @version 1.0.0
- * @ClassName BusHospitalController.java
- * @Description TODO
- * @createTime 2022年03月19日 09:28:00
- */
- @RestController
- @AllArgsConstructor
- @RequestMapping("/bus/device/reg")
- @Api(tags = "经销商设备注册",description = "统一权限前缀(device:reg),device:reg:add")
- public class BusDeviceController extends BaseCrudController<BusDeviceEntity, String> {
- private final LocalBusDeviceService deviceRegisteredService;
- /**
- * 权限控制前缀
- * @return
- */
- @Override
- public String getPermissionPrefix() {
- return "device:reg";
- }
- @Override
- public BaseService<? extends Mapper<BusDeviceEntity>, BusDeviceEntity, String> getService() {
- return deviceRegisteredService;
- }
- }
|