BusHospitalLogController.java 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package com.coffee.bus.controller;
  2. import com.baomidou.mybatisplus.core.mapper.Mapper;
  3. import com.coffee.bus.entity.BusHospitalEntity;
  4. import com.coffee.bus.entity.BusHospitalLogEntity;
  5. import com.coffee.bus.service.LocalBusHospitalLogService;
  6. import com.coffee.bus.service.LocalBusHospitalService;
  7. import com.coffee.common.crud.BaseService;
  8. import com.coffee.common.crud.controller.BaseCrudController;
  9. import io.swagger.annotations.Api;
  10. import lombok.AllArgsConstructor;
  11. import org.springframework.web.bind.annotation.RequestMapping;
  12. import org.springframework.web.bind.annotation.RestController;
  13. /**
  14. * @author lifang
  15. * @version 1.0.0
  16. * @ClassName BusHospitalController.java
  17. * @Description TODO
  18. * @createTime 2022年03月19日 09:28:00
  19. */
  20. @RestController
  21. @AllArgsConstructor
  22. @RequestMapping("/log/hospital")
  23. @Api(tags = "医院传输日志管理",description = "统一权限前缀(log:hospital),例如新增log:hospital:add")
  24. public class BusHospitalLogController extends BaseCrudController<BusHospitalLogEntity, String> {
  25. private final LocalBusHospitalLogService logService;
  26. /**
  27. * 权限控制前缀
  28. * @return
  29. */
  30. @Override
  31. public String getPermissionPrefix() {
  32. return "log:hospital";
  33. }
  34. @Override
  35. public BaseService<? extends Mapper<BusHospitalLogEntity>, BusHospitalLogEntity, String> getService() {
  36. return logService;
  37. }
  38. }