OfficeController.java 991 B

12345678910111213141516171819202122232425262728293031323334
  1. package com.rongwei.bsserver.controller;
  2. import com.rongwei.bscommon.sys.service.LuckysheetService;
  3. import com.rongwei.bsentity.dto.luckysheet.SaveSheetRequest;
  4. import com.rongwei.rwcommon.base.R;
  5. import io.swagger.annotations.Api;
  6. import lombok.extern.slf4j.Slf4j;
  7. import org.springframework.beans.factory.annotation.Autowired;
  8. import org.springframework.web.bind.annotation.PostMapping;
  9. import org.springframework.web.bind.annotation.RequestBody;
  10. import org.springframework.web.bind.annotation.RequestMapping;
  11. import org.springframework.web.bind.annotation.RestController;
  12. import java.util.Map;
  13. /**
  14. * @author wm
  15. */
  16. @RestController
  17. @RequestMapping("/office")
  18. @Slf4j
  19. @Api(tags = "办公接口",description = "办公接口")
  20. public class OfficeController {
  21. @Autowired
  22. private LuckysheetService luckysheetService;
  23. @PostMapping("/saveSheet")
  24. public R saveSheet(@RequestBody SaveSheetRequest req){
  25. luckysheetService.saveSheet(req);
  26. return R.ok();
  27. }
  28. }