Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
10e625f6
Commit
10e625f6
authored
May 27, 2021
by
李成龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增示例代码
parent
9a6ace38
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
120 additions
and
15 deletions
+120
-15
AmosJcsApplication.java
...em/src/main/java/com/yeejoin/amos/AmosJcsApplication.java
+6
-2
App.java
...s-api/src/main/java/org/amos/boot/module/jcs/api/App.java
+0
-13
CbDemo.java
...main/java/org/amos/boot/module/jcs/api/entity/CbDemo.java
+23
-0
DemoMapper.java
.../java/org/amos/boot/module/jcs/api/mapper/DemoMapper.java
+14
-0
IDemoService.java
...va/org/amos/boot/module/jcs/api/service/IDemoService.java
+16
-0
DemoController.java
...g/amos/boot/module/jcs/biz/controller/DemoController.java
+38
-0
DemoServiceImpl.java
...mos/boot/module/jcs/biz/service/impl/DemoServiceImpl.java
+23
-0
No files found.
amos-boot-jcs-system/src/main/java/com/yeejoin/amos/AmosJcsApplication.java
View file @
10e625f6
...
...
@@ -32,8 +32,12 @@ import springfox.documentation.swagger2.annotations.EnableSwagger2;
@EnableFeignClients
@EnableAsync
@EnableEurekaClient
@ComponentScan
({
"org.typroject"
,
"com.yeejoin.amos"
})
//@MapperScan(basePackages = {"com.yeejoin.amos.patrol.service.business.dao.mapper"})
@MapperScan
({
"org.typroject.tyboot.demo.face.orm.dao*"
,
"org.typroject.tyboot.face.*.orm.dao*"
,
"org.typroject.tyboot.core.auth.face.orm.dao*"
,
"org.typroject.tyboot.component.*.face.orm.dao*"
,
"org.amos.boot.module.tzs.biz.dao.mapper"
})
@ComponentScan
(
basePackages
=
{
"org.amos.boot"
,
"org.typroject"
,
"com.yeejoin.amos"
})
public
class
AmosJcsApplication
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
AmosJcsApplication
.
class
);
...
...
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/org/amos/boot/module/jcs/api/App.java
deleted
100644 → 0
View file @
9a6ace38
package
org
.
amos
.
boot
.
module
.
jcs
.
api
;
/**
* Hello world!
*
*/
public
class
App
{
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
"Hello World!"
);
}
}
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/org/amos/boot/module/jcs/api/entity/CbDemo.java
0 → 100644
View file @
10e625f6
package
org
.
amos
.
boot
.
module
.
jcs
.
api
.
entity
;
import
org.typroject.tyboot.core.rdbms.orm.entity.BaseEntity
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
@Data
@EqualsAndHashCode
(
callSuper
=
false
)
@TableName
(
"cb_demo"
)
@ApiModel
(
value
=
"cb_firewarden对象"
,
description
=
"Demo示例"
)
public
class
CbDemo
extends
BaseEntity
{
/**
*
*/
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"真实名称"
)
private
Long
real_name
;
}
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/org/amos/boot/module/jcs/api/mapper/DemoMapper.java
0 → 100644
View file @
10e625f6
package
org
.
amos
.
boot
.
module
.
jcs
.
api
.
mapper
;
import
org.amos.boot.module.jcs.api.entity.CbDemo
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* @Description: 示例代码
* @Author: amos-boot-biz
* @Date: 2021-05-27
* @Version: V1.0
*/
public
interface
DemoMapper
extends
BaseMapper
<
CbDemo
>{
}
amos-boot-module/amos-boot-module-api/amos-boot-module-jcs-api/src/main/java/org/amos/boot/module/jcs/api/service/IDemoService.java
0 → 100644
View file @
10e625f6
package
org
.
amos
.
boot
.
module
.
jcs
.
api
.
service
;
import
org.amos.boot.module.jcs.api.entity.CbDemo
;
import
com.baomidou.mybatisplus.extension.service.IService
;
/**
* <p>
*示例 服务类
* </p>
*
* @Author lichenglong
* @since 2021-05-27
*/
public
interface
IDemoService
extends
IService
<
CbDemo
>
{
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/org/amos/boot/module/jcs/biz/controller/DemoController.java
0 → 100644
View file @
10e625f6
package
org
.
amos
.
boot
.
module
.
jcs
.
biz
.
controller
;
import
java.util.List
;
import
org.amos.boot.biz.common.controller.BaseController
;
import
org.amos.boot.biz.common.utils.CommonResponseUtil
;
import
org.amos.boot.module.jcs.api.entity.CbDemo
;
import
org.amos.boot.module.jcs.api.service.IDemoService
;
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
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
io.swagger.annotations.Api
;
import
lombok.extern.slf4j.Slf4j
;
/**
* 示例控制类
* @Author lichenglong
* @since 2021-05-27
*/
@RestController
@RequestMapping
(
"/demo"
)
@Api
(
tags
=
"示例"
)
@Slf4j
public
class
DemoController
extends
BaseController
{
@Autowired
private
IDemoService
demoService
;
@GetMapping
(
value
=
"/user"
)
public
ResponseModel
<
Object
>
findUserList
(){
List
<
CbDemo
>
lists
=
demoService
.
list
();
return
CommonResponseUtil
.
success
(
lists
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/org/amos/boot/module/jcs/biz/service/impl/DemoServiceImpl.java
0 → 100644
View file @
10e625f6
package
org
.
amos
.
boot
.
module
.
jcs
.
biz
.
service
.
impl
;
import
org.amos.boot.module.jcs.api.entity.CbDemo
;
import
org.amos.boot.module.jcs.api.mapper.DemoMapper
;
import
org.amos.boot.module.jcs.api.service.IDemoService
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
lombok.extern.slf4j.Slf4j
;
/**
* <p>
* 示例 服务实现类
* </p>
*
* @Author: 李成龙
* @Date: 2021-5-27
*/
@Service
@Slf4j
public
class
DemoServiceImpl
extends
ServiceImpl
<
DemoMapper
,
CbDemo
>
implements
IDemoService
{
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment