Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
I
inspect
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
912协同工作系统
项目监控管理工具
inspect
Commits
c04672fc
提交
c04672fc
authored
3月 07, 2020
作者:
孙洁清
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
关键技术接口根据name查询功能
上级
691e47e4
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
70 行增加
和
0 行删除
+70
-0
CategoryCotroller.java
...n/java/com/zjty/inspect/controller/CategoryCotroller.java
+31
-0
CategoryDao.java
src/main/java/com/zjty/inspect/dao/CategoryDao.java
+8
-0
Technology.java
src/main/java/com/zjty/inspect/entity/Technology.java
+4
-0
CategoryService.java
src/main/java/com/zjty/inspect/service/CategoryService.java
+9
-0
CategoryServiceImpl.java
...va/com/zjty/inspect/service/impl/CategoryServiceImpl.java
+18
-0
没有找到文件。
src/main/java/com/zjty/inspect/controller/CategoryCotroller.java
0 → 100644
浏览文件 @
c04672fc
package
com
.
zjty
.
inspect
.
controller
;
import
com.zjty.inspect.service.CategoryService
;
import
com.zjty.inspect.service.ConfigService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
@Slf4j
@RestController
@RequestMapping
(
"/category"
)
@Api
(
value
=
"类型管理接口"
,
description
=
"类型管理接口,提供页面的增、删、改、查"
)
public
class
CategoryCotroller
{
@Autowired
private
CategoryService
categoryService
;
/**
* 查询所有类型
* @return
*/
@ApiOperation
(
"查询所有类型"
)
@GetMapping
public
ResponseEntity
getCategorys
(){
return
ResponseEntity
.
ok
(
categoryService
.
findAll
());
}
}
src/main/java/com/zjty/inspect/dao/CategoryDao.java
0 → 100644
浏览文件 @
c04672fc
package
com
.
zjty
.
inspect
.
dao
;
import
com.zjty.inspect.entity.Category
;
import
org.springframework.data.jpa.repository.JpaRepository
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
public
interface
CategoryDao
extends
JpaRepository
<
Category
,
String
>,
JpaSpecificationExecutor
<
Category
>
{
}
src/main/java/com/zjty/inspect/entity/Technology.java
浏览文件 @
c04672fc
...
@@ -50,6 +50,10 @@ public class Technology {
...
@@ -50,6 +50,10 @@ public class Technology {
@ApiModelProperty
(
value
=
"是否支持"
,
example
=
"1"
)
@ApiModelProperty
(
value
=
"是否支持"
,
example
=
"1"
)
private
Integer
support
;
private
Integer
support
;
/**
* 分类id
*/
private
String
category_id
;
/**
/**
* 技术类型
* 技术类型
* 1:前端技术
* 1:前端技术
...
...
src/main/java/com/zjty/inspect/service/CategoryService.java
0 → 100644
浏览文件 @
c04672fc
package
com
.
zjty
.
inspect
.
service
;
import
com.zjty.inspect.entity.Category
;
import
java.util.List
;
public
interface
CategoryService
{
List
<
Category
>
findAll
();
}
src/main/java/com/zjty/inspect/service/impl/CategoryServiceImpl.java
0 → 100644
浏览文件 @
c04672fc
package
com
.
zjty
.
inspect
.
service
.
impl
;
import
com.zjty.inspect.dao.CategoryDao
;
import
com.zjty.inspect.entity.Category
;
import
com.zjty.inspect.service.CategoryService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
@Service
public
class
CategoryServiceImpl
implements
CategoryService
{
@Autowired
private
CategoryDao
categoryDao
;
@Override
public
List
<
Category
>
findAll
()
{
return
categoryDao
.
findAll
();
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论