Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dm_project
Project
Project
Details
Activity
Releases
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
姚本章
dm_project
Commits
196e03a6
Commit
196e03a6
authored
Feb 23, 2021
by
zhangc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
88042ad1
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
142 additions
and
0 deletions
+142
-0
ApiFunctionMapper.java
...way/src/main/java/com/jz/dm/mapper/ApiFunctionMapper.java
+16
-0
ApiFunction.java
...ay/src/main/java/com/jz/dm/models/domian/ApiFunction.java
+51
-0
ApiFunctionDto.java
...ay/src/main/java/com/jz/dm/models/dto/ApiFunctionDto.java
+27
-0
banner.txt
jz-dm-apigateway/src/main/resources/banner.txt
+22
-0
ApiFunctionMapper.xml
...pigateway/src/main/resources/mapper/ApiFunctionMapper.xml
+26
-0
No files found.
jz-dm-apigateway/src/main/java/com/jz/dm/mapper/ApiFunctionMapper.java
0 → 100644
View file @
196e03a6
package
com
.
jz
.
dm
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.jz.dm.models.domian.ApiFunction
;
/**
* <p>
* api模板方法表 Mapper 接口
* </p>
*
* @author ZC
* @since 2021-02-23
*/
public
interface
ApiFunctionMapper
extends
BaseMapper
<
ApiFunction
>
{
}
jz-dm-apigateway/src/main/java/com/jz/dm/models/domian/ApiFunction.java
0 → 100644
View file @
196e03a6
package
com
.
jz
.
dm
.
models
.
domian
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.jz.dm.common.base.BaseObject
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.NoArgsConstructor
;
import
lombok.experimental.Accessors
;
import
java.io.Serializable
;
/**
* <p>
* api模板方法表
* </p>
*
* @author ZC
* @since 2021-02-23
*/
@Data
@EqualsAndHashCode
(
callSuper
=
false
)
@NoArgsConstructor
@Accessors
(
chain
=
true
)
@TableName
(
"t_api_function"
)
public
class
ApiFunction
extends
BaseObject
implements
Serializable
{
/**
* 模板名称
*/
private
String
name
;
/**
* 别名
*/
private
String
alias
;
/**
* 请求路径
*/
private
String
templateUrl
;
/**
* 模板类型
*/
private
String
type
;
/**
* 是否启用:0 否, 1 是
*/
private
Integer
status
;
}
jz-dm-apigateway/src/main/java/com/jz/dm/models/dto/ApiFunctionDto.java
0 → 100644
View file @
196e03a6
package
com
.
jz
.
dm
.
models
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* @author ZC
* @PACKAGE_NAME: com.jz.dm.models.dto
* @PROJECT_NAME: jz-dm-parent
* @NAME: ApiFunctionDto
* @DATE: 2021-2-23/11:17
* @DAY_NAME_SHORT: 周二
* @Description:
**/
@Data
@ApiModel
public
class
ApiFunctionDto
implements
Serializable
{
@ApiModelProperty
(
value
=
"名称"
)
private
String
name
;
@ApiModelProperty
(
value
=
"自增id"
)
private
Long
id
;
}
jz-dm-apigateway/src/main/resources/banner.txt
0 → 100644
View file @
196e03a6
////////////////////////////////////////////////////////////////////
// _ooOoo_ //
// o8888888o //
// 88" . "88 //
// (| ^_^ |) //
// O\ = /O //
// ____/`---'\____ //
// .' \\| |// `. //
// / \\||| : |||// \ //
// / _||||| -:- |||||- \ //
// | | \\\ - /// | | //
// | \_| ''\---/'' | | //
// \ .-\__ `-` ___/-. / //
// ___`. .' /--.--\ `. . ___ //
// ."" '< `.___\_<|>_/___.' >'"". //
// | | : `- \`.;`\ _ /`;.`/ - ` : | | //
// \ \ `-. \_ __\ /__ _/ .-` / / //
// ========`-.____`-.___\_____/___.-`____.-'======== //
// `=---=' //
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ //
// 佛祖保佑 永不宕机 永无BUG //
////////////////////////////////////////////////////////////////////
\ No newline at end of file
jz-dm-apigateway/src/main/resources/mapper/ApiFunctionMapper.xml
0 → 100644
View file @
196e03a6
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.jz.dm.mapper.ApiFunctionMapper"
>
<!-- 通用查询映射结果 -->
<resultMap
id=
"BaseResultMap"
type=
"com.jz.dm.models.domian.ApiFunction"
>
<id
column=
"id"
property=
"id"
/>
<result
column=
"name"
property=
"name"
/>
<result
column=
"alias"
property=
"alias"
/>
<result
column=
"template_url"
property=
"templateUrl"
/>
<result
column=
"type"
property=
"type"
/>
<result
column=
"status"
property=
"status"
/>
<result
column=
"remark"
property=
"remark"
/>
<result
column=
"create_date"
property=
"createDate"
/>
<result
column=
"create_user"
property=
"createUser"
/>
<result
column=
"update_date"
property=
"updateDate"
/>
<result
column=
"update_user"
property=
"updateUser"
/>
<result
column=
"is_deleted"
property=
"isDeleted"
/>
</resultMap>
<!-- 通用查询结果列 -->
<sql
id=
"Base_Column_List"
>
id, `name`, alias, template_url, `type`, status, remark, create_date, create_user, update_date, update_user, is_deleted
</sql>
</mapper>
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