IndexController.java 678 B

123456789101112131415161718192021222324252627282930313233343536
  1. package org.ruoyi.controller;
  2. import cn.dev33.satoken.annotation.SaIgnore;
  3. import lombok.RequiredArgsConstructor;
  4. import org.springframework.stereotype.Controller;
  5. import org.springframework.web.bind.annotation.GetMapping;
  6. /**
  7. * 首页
  8. *
  9. * @author Lion Li
  10. */
  11. @SaIgnore
  12. @RequiredArgsConstructor
  13. @Controller
  14. public class IndexController {
  15. /**
  16. * 访问首页,提示语
  17. */
  18. @GetMapping("/")
  19. public String index() {
  20. return "RuoYi-AI 启动成功!";
  21. }
  22. @GetMapping("/success")
  23. public String success(){
  24. return "paySuccess.html";
  25. }
  26. @GetMapping("/cancel")
  27. public String cancel(){
  28. return "cancel";
  29. }
  30. }