This commit is contained in:
王鹏
2025-08-14 14:57:00 +08:00
commit 9122dabf88
830 changed files with 90569 additions and 0 deletions

41
ruoyi-app/pom.xml Normal file
View File

@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi</artifactId>
<version>3.8.6</version>
</parent>
<artifactId>ruoyi-app</artifactId>
<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<!-- collections工具类 -->
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
</dependency>
<!-- 通用工具-->
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-common</artifactId>
</dependency>
<dependency>
<groupId>com.ruoyi</groupId>
<artifactId>ruoyi-office</artifactId>
<version>3.8.6</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>

View File

@@ -0,0 +1,56 @@
package com.ruoyi.app.controller;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.PageDomain;
import com.ruoyi.common.core.page.TableSupport;
import com.ruoyi.office.domain.TtArticles;
import com.ruoyi.office.service.ITtArticlesService;
import com.ruoyi.office.service.ITtProjectInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* app非权限信息接口
* qs
*/
@RestController
@RequestMapping("/app/open/article")
public class AppOpenController extends BaseController {
@Autowired
private ITtArticlesService ttArticlesService;
@Autowired
private ITtProjectInfoService ttProjectInfoService;
@GetMapping("/lastUpdate")
public AjaxResult lastUpdate() {
startPage();
return success(ttArticlesService.lastUpdateList(""));
}
@GetMapping("/page")
public AjaxResult page(String searchKey) {
startPage();
return success(getDataTable(ttArticlesService.lastUpdateList(searchKey)));
}
@GetMapping("/projectPage")
public AjaxResult projectPage(String searchKey) {
startPage();
return success(getDataTable(ttProjectInfoService.lastUpdateList(searchKey)));
}
@GetMapping("/detail")
public AjaxResult detail(Integer id) {
return success(ttArticlesService.selectTtArticlesById(id));
}
@GetMapping("/views")
public void views(Integer id) {
TtArticles ttArticles = ttArticlesService.selectTtArticlesById(id);
ttArticles.setViews(ttArticles.getViews() + 1);
ttArticlesService.updateTtArticles(ttArticles);
}
}

View File

@@ -0,0 +1,23 @@
package com.ruoyi.app.controller;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.office.domain.TtCarousel;
import com.ruoyi.office.service.ITtCarouselService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/app/sys")
public class AppSysController extends BaseController {
@Autowired
private ITtCarouselService carouselService;
@GetMapping("/list")
public AjaxResult list()
{
return success(carouselService.selectTtCarouselList(new TtCarousel()));
}
}