Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
roo-cloud
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
万敏
roo-cloud
Commits
9cc43be0
Commit
9cc43be0
authored
Aug 04, 2021
by
wanmin@bu2.cn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Token、Dapps入驻审核
parent
528075fc
Changes
20
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
637 additions
and
994 deletions
+637
-994
roo-admin/roo-admin-client/src/main/java/com/roo/dto/DappsAuditDTO.java
...admin-client/src/main/java/com/roo/dto/DappsAuditDTO.java
+26
-28
roo-admin/roo-admin-client/src/main/java/com/roo/dto/TokenAuditDTO.java
...admin-client/src/main/java/com/roo/dto/TokenAuditDTO.java
+28
-33
roo-admin/roo-admin-server/src/main/java/com/roo/controller/DappsAuditController.java
...rc/main/java/com/roo/controller/DappsAuditController.java
+100
-8
roo-admin/roo-admin-server/src/main/java/com/roo/controller/TokenAuditController.java
...rc/main/java/com/roo/controller/TokenAuditController.java
+101
-8
roo-admin/roo-admin-server/src/main/java/com/roo/dao/DappsAuditDao.java
...admin-server/src/main/java/com/roo/dao/DappsAuditDao.java
+10
-27
roo-admin/roo-admin-server/src/main/java/com/roo/dao/TokenAuditDao.java
...admin-server/src/main/java/com/roo/dao/TokenAuditDao.java
+10
-28
roo-admin/roo-admin-server/src/main/java/com/roo/entity/DappsAudit.java
...admin-server/src/main/java/com/roo/entity/DappsAudit.java
+0
-39
roo-admin/roo-admin-server/src/main/java/com/roo/entity/DappsAuditEntity.java
...server/src/main/java/com/roo/entity/DappsAuditEntity.java
+73
-0
roo-admin/roo-admin-server/src/main/java/com/roo/entity/TokenAudit.java
...admin-server/src/main/java/com/roo/entity/TokenAudit.java
+0
-45
roo-admin/roo-admin-server/src/main/java/com/roo/entity/TokenAuditEntity.java
...server/src/main/java/com/roo/entity/TokenAuditEntity.java
+85
-0
roo-admin/roo-admin-server/src/main/java/com/roo/excel/DappsAuditExcel.java
...n-server/src/main/java/com/roo/excel/DappsAuditExcel.java
+47
-0
roo-admin/roo-admin-server/src/main/java/com/roo/excel/TokenAuditExcel.java
...n-server/src/main/java/com/roo/excel/TokenAuditExcel.java
+53
-0
roo-admin/roo-admin-server/src/main/java/com/roo/service/DappsAuditService.java
...rver/src/main/java/com/roo/service/DappsAuditService.java
+10
-3
roo-admin/roo-admin-server/src/main/java/com/roo/service/TokenAuditService.java
...rver/src/main/java/com/roo/service/TokenAuditService.java
+11
-3
roo-admin/roo-admin-server/src/main/java/com/roo/service/impl/DappsAuditServiceImpl.java
...main/java/com/roo/service/impl/DappsAuditServiceImpl.java
+18
-23
roo-admin/roo-admin-server/src/main/java/com/roo/service/impl/TokenAuditServiceImpl.java
...main/java/com/roo/service/impl/TokenAuditServiceImpl.java
+18
-24
roo-admin/roo-admin-server/src/main/resources/mapper/DappsAuditDao.xml
...-admin-server/src/main/resources/mapper/DappsAuditDao.xml
+22
-0
roo-admin/roo-admin-server/src/main/resources/mapper/DappsAuditMapper.xml
...min-server/src/main/resources/mapper/DappsAuditMapper.xml
+0
-339
roo-admin/roo-admin-server/src/main/resources/mapper/TokenAuditDao.xml
...-admin-server/src/main/resources/mapper/TokenAuditDao.xml
+25
-0
roo-admin/roo-admin-server/src/main/resources/mapper/TokenAuditMapper.xml
...min-server/src/main/resources/mapper/TokenAuditMapper.xml
+0
-386
No files found.
roo-admin/roo-admin-client/src/main/java/com/roo/dto/DappsAuditDTO.java
View file @
9cc43be0
...
...
@@ -4,47 +4,45 @@ import io.swagger.annotations.ApiModel;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* Dapp入驻
*
* @author momin 460363410@qq.com
* @since 1.0 2021-08-04
*/
@Data
@ApiModel
(
"dapps审核对象"
)
public
class
DappsAuditDTO
{
@ApiModel
(
value
=
"Dapp入驻"
)
public
class
DappsAuditDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"主键"
)
private
Long
id
;
@ApiModelProperty
(
"Dapp网络"
)
@ApiModelProperty
(
value
=
"主链"
)
private
String
chainCode
;
@ApiModelProperty
(
"Dapp名称"
)
@ApiModelProperty
(
value
=
"dapp名称"
)
private
String
name
;
@ApiModelProperty
(
"Dapp链接"
)
@ApiModelProperty
(
value
=
"dapp链接"
)
private
String
link
;
@ApiModelProperty
(
"Dapp简介"
)
@ApiModelProperty
(
value
=
"dapp简介"
)
private
String
description
;
@ApiModelProperty
(
"DappLogo链接"
)
@ApiModelProperty
(
value
=
"logo链接"
)
private
String
logo
;
@ApiModelProperty
(
"电话"
)
@ApiModelProperty
(
value
=
"电话"
)
private
String
tel
;
@ApiModelProperty
(
"微信"
)
@ApiModelProperty
(
value
=
"微信号"
)
private
String
wechat
;
@ApiModelProperty
(
"使用教程链接"
)
@ApiModelProperty
(
value
=
"使用说明链接"
)
private
String
instructions
;
@ApiModelProperty
(
"审核不通过原因"
)
@ApiModelProperty
(
value
=
"审核失败原因"
)
private
String
reason
;
@ApiModelProperty
(
"审核状态 1:待审核|2:审核通过|3:已处理|4:审核失败"
)
private
Byte
status
;
@ApiModelProperty
(
"创建时间"
)
@ApiModelProperty
(
value
=
"审核状态 1:待审核|2:通过审核|3:已处理|4:审核失败"
)
private
Integer
status
;
@ApiModelProperty
(
value
=
"创建时间"
)
private
Date
createTime
;
@ApiModelProperty
(
"更新时间"
)
@ApiModelProperty
(
value
=
"更新时间"
)
private
Date
updateTime
;
}
}
\ No newline at end of file
roo-admin/roo-admin-client/src/main/java/com/roo/dto/TokenAuditDTO.java
View file @
9cc43be0
...
...
@@ -4,56 +4,51 @@ import io.swagger.annotations.ApiModel;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
@ApiModel
(
"代币申请对象"
)
/**
* token录入
*
* @author momin 460363410@qq.com
* @since 1.0 2021-08-04
*/
@Data
public
class
TokenAuditDTO
{
@ApiModel
(
value
=
"token录入"
)
public
class
TokenAuditDTO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"主键"
)
private
Long
id
;
@ApiModelProperty
(
"项目网络"
)
@ApiModelProperty
(
value
=
"主链"
)
private
String
chainCode
;
@ApiModelProperty
(
"代币名称(英文)"
)
@ApiModelProperty
(
value
=
"代币名称(英文)"
)
private
String
nameEn
;
@ApiModelProperty
(
"代币符号"
)
@ApiModelProperty
(
value
=
"代币简称"
)
private
String
symbol
;
@ApiModelProperty
(
"代币名称"
)
@ApiModelProperty
(
value
=
"代币名称"
)
private
String
name
;
@ApiModelProperty
(
"合约地址"
)
@ApiModelProperty
(
value
=
"合约地址"
)
private
String
contractId
;
@ApiModelProperty
(
"精度"
)
@ApiModelProperty
(
value
=
"精度"
)
private
Integer
decimal
;
@ApiModelProperty
(
"数量"
)
@ApiModelProperty
(
value
=
"发行总量"
)
private
Long
totalSupply
;
@ApiModelProperty
(
"项目简介"
)
@ApiModelProperty
(
value
=
"简介"
)
private
String
description
;
@ApiModelProperty
(
"邮箱地址"
)
@ApiModelProperty
(
value
=
"邮箱地址"
)
private
String
email
;
@ApiModelProperty
(
"官网"
)
@ApiModelProperty
(
value
=
"官网网址"
)
private
String
officailWeb
;
@ApiModelProperty
(
"logo链接"
)
@ApiModelProperty
(
value
=
"logo"
)
private
String
logo
;
@ApiModelProperty
(
"审核不通过原因"
)
@ApiModelProperty
(
value
=
"审核失败原因"
)
private
String
reason
;
@ApiModelProperty
(
"审核状态 1:待审核|2:审核通过|3:已处理|4:审核失败"
)
private
Byte
status
;
@ApiModelProperty
(
"创建时间"
)
@ApiModelProperty
(
value
=
"审核状态 1:待审核|2:审核通过|3:已处理|4:审核失败"
)
private
Integer
status
;
@ApiModelProperty
(
value
=
"创建时间"
)
private
Date
createTime
;
@ApiModelProperty
(
"更新时间"
)
@ApiModelProperty
(
value
=
"更新时间"
)
private
Date
updateTime
;
}
roo-admin/roo-admin-server/src/main/java/com/roo/controller/DappsAuditController.java
View file @
9cc43be0
package
com.roo.controller
;
import
com.roo.commons.log.annotation.LogOperation
;
import
com.roo.commons.tools.constant.Constant
;
import
com.roo.commons.tools.page.PageData
;
import
com.roo.commons.tools.utils.Result
;
import
com.roo.dto.DappsAuditDTO
;
import
com.roo.commons.tools.utils.ExcelUtils
;
import
com.roo.commons.tools.validator.AssertUtils
;
import
com.roo.commons.tools.validator.ValidatorUtils
;
import
com.roo.commons.tools.validator.group.AddGroup
;
import
com.roo.commons.tools.validator.group.DefaultGroup
;
import
com.roo.commons.tools.validator.group.UpdateGroup
;
import
com.roo.excel.DappsAuditExcel
;
import
com.roo.service.DappsAuditService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.*
;
import
springfox.documentation.annotations.ApiIgnore
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.List
;
import
java.util.Map
;
/**
* Dapp入驻
*
* @author momin 460363410@qq.com
* @since 1.0 2021-08-04
*/
@RestController
@RequestMapping
(
"/dappsAudit"
)
@RequestMapping
(
"dappsaudit"
)
@Api
(
tags
=
"Dapp入驻"
)
public
class
DappsAuditController
{
@Autowired
private
DappsAuditService
dappsAuditService
;
@RequestMapping
(
"/settleIn"
)
public
Result
settleIn
(
@RequestBody
DappsAuditDTO
dto
)
{
@GetMapping
(
"page"
)
@ApiOperation
(
"分页"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
Constant
.
PAGE
,
value
=
"当前页码,从1开始"
,
paramType
=
"query"
,
required
=
true
,
dataType
=
"int"
)
,
@ApiImplicitParam
(
name
=
Constant
.
LIMIT
,
value
=
"每页显示记录数"
,
paramType
=
"query"
,
required
=
true
,
dataType
=
"int"
)
,
@ApiImplicitParam
(
name
=
Constant
.
ORDER_FIELD
,
value
=
"排序字段"
,
paramType
=
"query"
,
dataType
=
"String"
)
,
@ApiImplicitParam
(
name
=
Constant
.
ORDER
,
value
=
"排序方式,可选值(asc、desc)"
,
paramType
=
"query"
,
dataType
=
"String"
)
})
@PreAuthorize
(
"hasAuthority('dappsAudit:dappsaudit:page')"
)
public
Result
<
PageData
<
DappsAuditDTO
>>
page
(
@ApiIgnore
@RequestParam
Map
<
String
,
Object
>
params
){
PageData
<
DappsAuditDTO
>
page
=
dappsAuditService
.
page
(
params
);
return
new
Result
<
PageData
<
DappsAuditDTO
>>().
ok
(
page
);
}
@GetMapping
(
"{id}"
)
@ApiOperation
(
"信息"
)
@PreAuthorize
(
"hasAuthority('dappsAudit:dappsaudit:info')"
)
public
Result
<
DappsAuditDTO
>
get
(
@PathVariable
(
"id"
)
Long
id
){
DappsAuditDTO
data
=
dappsAuditService
.
get
(
id
);
return
new
Result
<
DappsAuditDTO
>().
ok
(
data
);
}
@PostMapping
@ApiOperation
(
"保存"
)
@LogOperation
(
"保存"
)
@PreAuthorize
(
"hasAuthority('dappsAudit:dappsaudit:save')"
)
public
Result
save
(
@RequestBody
DappsAuditDTO
dto
){
//效验数据
ValidatorUtils
.
validateEntity
(
dto
,
AddGroup
.
class
,
DefaultGroup
.
class
);
dappsAuditService
.
save
(
dto
);
return
new
Result
();
}
@PutMapping
@ApiOperation
(
"修改"
)
@LogOperation
(
"修改"
)
@PreAuthorize
(
"hasAuthority('dappsAudit:dappsaudit:update')"
)
public
Result
update
(
@RequestBody
DappsAuditDTO
dto
){
//效验数据
ValidatorUtils
.
validateEntity
(
dto
,
UpdateGroup
.
class
,
DefaultGroup
.
class
);
dappsAuditService
.
update
(
dto
);
return
new
Result
();
}
@DeleteMapping
@ApiOperation
(
"删除"
)
@LogOperation
(
"删除"
)
@PreAuthorize
(
"hasAuthority('dappsAudit:dappsaudit:delete')"
)
public
Result
delete
(
@RequestBody
Long
[]
ids
){
//效验数据
AssertUtils
.
isArrayEmpty
(
ids
,
"id"
);
dappsAuditService
.
delete
(
ids
);
return
new
Result
();
}
@GetMapping
(
"export"
)
@ApiOperation
(
"导出"
)
@LogOperation
(
"导出"
)
@PreAuthorize
(
"hasAuthority('dappsAudit:dappsaudit:export')"
)
public
void
export
(
@ApiIgnore
@RequestParam
Map
<
String
,
Object
>
params
,
HttpServletResponse
response
)
throws
Exception
{
List
<
DappsAuditDTO
>
list
=
dappsAuditService
.
list
(
params
);
ExcelUtils
.
exportExcelToTarget
(
response
,
null
,
"Dapp入驻"
,
list
,
DappsAuditExcel
.
class
);
}
}
roo-admin/roo-admin-server/src/main/java/com/roo/controller/TokenAuditController.java
View file @
9cc43be0
package
com.roo.controller
;
import
com.roo.commons.log.annotation.LogOperation
;
import
com.roo.commons.tools.constant.Constant
;
import
com.roo.commons.tools.page.PageData
;
import
com.roo.commons.tools.utils.Result
;
import
com.roo.commons.tools.utils.ExcelUtils
;
import
com.roo.commons.tools.validator.AssertUtils
;
import
com.roo.commons.tools.validator.ValidatorUtils
;
import
com.roo.commons.tools.validator.group.AddGroup
;
import
com.roo.commons.tools.validator.group.DefaultGroup
;
import
com.roo.commons.tools.validator.group.UpdateGroup
;
import
com.roo.dto.TokenAuditDTO
;
import
com.roo.excel.TokenAuditExcel
;
import
com.roo.service.TokenAuditService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiImplicitParam
;
import
io.swagger.annotations.ApiImplicitParams
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.security.access.prepost.PreAuthorize
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.*
;
import
springfox.documentation.annotations.ApiIgnore
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.List
;
import
java.util.Map
;
/**
* token录入
*
* @author momin 460363410@qq.com
* @since 1.0 2021-08-04
*/
@RestController
@RequestMapping
(
"/tokenAudit"
)
@RequestMapping
(
"tokenaudit"
)
@Api
(
tags
=
"token录入"
)
public
class
TokenAuditController
{
@Autowired
private
TokenAuditService
tokenAuditService
;
@RequestMapping
(
"/settleIn"
)
public
Result
settleIn
(
@RequestBody
TokenAuditDTO
dto
)
{
@GetMapping
(
"page"
)
@ApiOperation
(
"分页"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
Constant
.
PAGE
,
value
=
"当前页码,从1开始"
,
paramType
=
"query"
,
required
=
true
,
dataType
=
"int"
)
,
@ApiImplicitParam
(
name
=
Constant
.
LIMIT
,
value
=
"每页显示记录数"
,
paramType
=
"query"
,
required
=
true
,
dataType
=
"int"
)
,
@ApiImplicitParam
(
name
=
Constant
.
ORDER_FIELD
,
value
=
"排序字段"
,
paramType
=
"query"
,
dataType
=
"String"
)
,
@ApiImplicitParam
(
name
=
Constant
.
ORDER
,
value
=
"排序方式,可选值(asc、desc)"
,
paramType
=
"query"
,
dataType
=
"String"
)
})
@PreAuthorize
(
"hasAuthority('tokenAudit:tokenaudit:page')"
)
public
Result
<
PageData
<
TokenAuditDTO
>>
page
(
@ApiIgnore
@RequestParam
Map
<
String
,
Object
>
params
){
PageData
<
TokenAuditDTO
>
page
=
tokenAuditService
.
page
(
params
);
return
new
Result
<
PageData
<
TokenAuditDTO
>>().
ok
(
page
);
}
@GetMapping
(
"{id}"
)
@ApiOperation
(
"信息"
)
@PreAuthorize
(
"hasAuthority('tokenAudit:tokenaudit:info')"
)
public
Result
<
TokenAuditDTO
>
get
(
@PathVariable
(
"id"
)
Long
id
){
TokenAuditDTO
data
=
tokenAuditService
.
get
(
id
);
return
new
Result
<
TokenAuditDTO
>().
ok
(
data
);
}
@PostMapping
@ApiOperation
(
"保存"
)
@LogOperation
(
"保存"
)
@PreAuthorize
(
"hasAuthority('tokenAudit:tokenaudit:save')"
)
public
Result
save
(
@RequestBody
TokenAuditDTO
dto
){
//效验数据
ValidatorUtils
.
validateEntity
(
dto
,
AddGroup
.
class
,
DefaultGroup
.
class
);
tokenAuditService
.
save
(
dto
);
return
new
Result
();
}
}
@PutMapping
@ApiOperation
(
"修改"
)
@LogOperation
(
"修改"
)
@PreAuthorize
(
"hasAuthority('tokenAudit:tokenaudit:update')"
)
public
Result
update
(
@RequestBody
TokenAuditDTO
dto
){
//效验数据
ValidatorUtils
.
validateEntity
(
dto
,
UpdateGroup
.
class
,
DefaultGroup
.
class
);
tokenAuditService
.
update
(
dto
);
return
new
Result
();
}
@DeleteMapping
@ApiOperation
(
"删除"
)
@LogOperation
(
"删除"
)
@PreAuthorize
(
"hasAuthority('tokenAudit:tokenaudit:delete')"
)
public
Result
delete
(
@RequestBody
Long
[]
ids
){
//效验数据
AssertUtils
.
isArrayEmpty
(
ids
,
"id"
);
tokenAuditService
.
delete
(
ids
);
return
new
Result
();
}
@GetMapping
(
"export"
)
@ApiOperation
(
"导出"
)
@LogOperation
(
"导出"
)
@PreAuthorize
(
"hasAuthority('tokenAudit:tokenaudit:export')"
)
public
void
export
(
@ApiIgnore
@RequestParam
Map
<
String
,
Object
>
params
,
HttpServletResponse
response
)
throws
Exception
{
List
<
TokenAuditDTO
>
list
=
tokenAuditService
.
list
(
params
);
ExcelUtils
.
exportExcelToTarget
(
response
,
null
,
"token录入"
,
list
,
TokenAuditExcel
.
class
);
}
}
\ No newline at end of file
roo-admin/roo-admin-server/src/main/java/com/roo/dao/DappsAuditDao.java
View file @
9cc43be0
package
com.roo.dao
;
import
com.roo.entity.DappsAudit
;
import
com.roo.entity.DappsAuditExample
;
import
java.util.List
;
import
com.roo.commons.mybatis.dao.BaseDao
;
import
com.roo.entity.DappsAuditEntity
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
/**
* Dapp入驻
*
* @author momin 460363410@qq.com
* @since 1.0 2021-08-04
*/
@Mapper
public
interface
DappsAuditDao
{
int
countByExample
(
DappsAuditExample
example
);
int
deleteByExample
(
DappsAuditExample
example
);
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
DappsAudit
record
);
int
insertSelective
(
DappsAudit
record
);
List
<
DappsAudit
>
selectByExample
(
DappsAuditExample
example
);
DappsAudit
selectByPrimaryKey
(
Long
id
);
int
updateByExampleSelective
(
@Param
(
"record"
)
DappsAudit
record
,
@Param
(
"example"
)
DappsAuditExample
example
);
int
updateByExample
(
@Param
(
"record"
)
DappsAudit
record
,
@Param
(
"example"
)
DappsAuditExample
example
);
int
updateByPrimaryKeySelective
(
DappsAudit
record
);
int
updateByPrimaryKey
(
DappsAudit
record
);
public
interface
DappsAuditDao
extends
BaseDao
<
DappsAuditEntity
>
{
}
\ No newline at end of file
roo-admin/roo-admin-server/src/main/java/com/roo/dao/TokenAuditDao.java
View file @
9cc43be0
package
com.roo.dao
;
import
com.roo.entity.TokenAudit
;
import
com.roo.entity.TokenAuditExample
;
import
java.util.List
;
import
com.roo.commons.mybatis.dao.BaseDao
;
import
com.roo.entity.TokenAuditEntity
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.stereotype.Repository
;
/**
* token录入
*
* @author momin 460363410@qq.com
* @since 1.0 2021-08-04
*/
@Mapper
public
interface
TokenAuditDao
{
int
countByExample
(
TokenAuditExample
example
);
int
deleteByExample
(
TokenAuditExample
example
);
int
deleteByPrimaryKey
(
Long
id
);
int
insert
(
TokenAudit
record
);
int
insertSelective
(
TokenAudit
record
);
List
<
TokenAudit
>
selectByExample
(
TokenAuditExample
example
);
TokenAudit
selectByPrimaryKey
(
Long
id
);
int
updateByExampleSelective
(
@Param
(
"record"
)
TokenAudit
record
,
@Param
(
"example"
)
TokenAuditExample
example
);
int
updateByExample
(
@Param
(
"record"
)
TokenAudit
record
,
@Param
(
"example"
)
TokenAuditExample
example
);
int
updateByPrimaryKeySelective
(
TokenAudit
record
);
int
updateByPrimaryKey
(
TokenAudit
record
);
public
interface
TokenAuditDao
extends
BaseDao
<
TokenAuditEntity
>
{
}
\ No newline at end of file
roo-admin/roo-admin-server/src/main/java/com/roo/entity/DappsAudit.java
deleted
100644 → 0
View file @
528075fc
package
com.roo.entity
;
import
lombok.Builder
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
@Data
@Builder
public
class
DappsAudit
implements
Serializable
{
private
Long
id
;
private
String
chainCode
;
private
String
name
;
private
String
link
;
private
String
description
;
private
String
logo
;
private
String
tel
;
private
String
wechat
;
private
String
instructions
;
private
String
reason
;
private
Byte
status
;
private
Date
createTime
;
private
Date
updateTime
;
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
roo-admin/roo-admin-server/src/main/java/com/roo/entity/DappsAuditEntity.java
0 → 100644
View file @
9cc43be0
package
com.roo.entity
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
com.baomidou.mybatisplus.annotation.*
;
import
java.util.Date
;
/**
* Dapp入驻
*
* @author momin 460363410@qq.com
* @since 1.0 2021-08-04
*/
@Data
@EqualsAndHashCode
(
callSuper
=
false
)
@TableName
(
"t_dapps_audit"
)
public
class
DappsAuditEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 主键
*/
@TableId
private
Long
id
;
/**
* 主链
*/
private
String
chainCode
;
/**
* dapp名称
*/
private
String
name
;
/**
* dapp链接
*/
private
String
link
;
/**
* dapp简介
*/
private
String
description
;
/**
* logo链接
*/
private
String
logo
;
/**
* 电话
*/
private
String
tel
;
/**
* 微信号
*/
private
String
wechat
;
/**
* 使用说明链接
*/
private
String
instructions
;
/**
* 审核失败原因
*/
private
String
reason
;
/**
* 审核状态 1:待审核|2:通过审核|3:已处理|4:审核失败
*/
private
Integer
status
;
/**
* 创建时间
*/
private
Date
createTime
;
/**
* 更新时间
*/
private
Date
updateTime
;
}
\ No newline at end of file
roo-admin/roo-admin-server/src/main/java/com/roo/entity/TokenAudit.java
deleted
100644 → 0
View file @
528075fc
package
com.roo.entity
;
import
lombok.Builder
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
@Data
@Builder
public
class
TokenAudit
implements
Serializable
{
private
Long
id
;
private
String
chainCode
;
private
String
nameEn
;
private
String
symbol
;
private
String
name
;
private
String
contractId
;
private
Integer
decimal
;
private
Long
totalSupply
;
private
String
description
;
private
String
email
;
private
String
officailWeb
;
private
String
logo
;
private
String
reason
;
private
Byte
status
;
private
Date
createTime
;
private
Date
updateTime
;
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
roo-admin/roo-admin-server/src/main/java/com/roo/entity/TokenAuditEntity.java
0 → 100644
View file @
9cc43be0
package
com.roo.entity
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
com.baomidou.mybatisplus.annotation.*
;
import
java.util.Date
;
/**
* token录入
*
* @author momin 460363410@qq.com
* @since 1.0 2021-08-04
*/
@Data
@EqualsAndHashCode
(
callSuper
=
false
)
@TableName
(
"t_token_audit"
)
public
class
TokenAuditEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 主键
*/
@TableId
private
Long
id
;
/**
* 主链
*/
private
String
chainCode
;
/**
* 代币名称(英文)
*/
private
String
nameEn
;
/**
* 代币简称
*/
private
String
symbol
;
/**
* 代币名称
*/
private
String
name
;
/**
* 合约地址
*/
private
String
contractId
;
/**
* 精度
*/
private
Integer
decimal
;
/**
* 发行总量
*/
private
Long
totalSupply
;
/**
* 简介
*/
private
String
description
;
/**
* 邮箱地址
*/
private
String
email
;
/**
* 官网网址
*/
private
String
officailWeb
;
/**
* logo
*/
private
String
logo
;
/**
* 审核失败原因
*/
private
String
reason
;
/**
* 审核状态 1:待审核|2:审核通过|3:已处理|4:审核失败
*/
private
Integer
status
;
/**
* 创建时间
*/
private
Date
createTime
;
/**
* 更新时间
*/
private
Date
updateTime
;
}
\ No newline at end of file
roo-admin/roo-admin-server/src/main/java/com/roo/excel/DappsAuditExcel.java
0 → 100644
View file @
9cc43be0
package
com.roo.excel
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.alibaba.excel.annotation.write.style.ColumnWidth
;
import
com.alibaba.excel.annotation.write.style.ContentRowHeight
;
import
com.alibaba.excel.annotation.write.style.HeadRowHeight
;
import
lombok.Data
;
import
java.util.Date
;
/**
* Dapp入驻
*
* @author momin 460363410@qq.com
* @since 1.0 2021-08-04
*/
@Data
@ContentRowHeight
(
20
)
@HeadRowHeight
(
20
)
@ColumnWidth
(
25
)
public
class
DappsAuditExcel
{
@ExcelProperty
(
value
=
"主键"
,
index
=
0
)
private
Long
id
;
@ExcelProperty
(
value
=
"主链"
,
index
=
1
)
private
String
chainCode
;
@ExcelProperty
(
value
=
"dapp名称"
,
index
=
2
)
private
String
name
;
@ExcelProperty
(
value
=
"dapp链接"
,
index
=
3
)
private
String
link
;
@ExcelProperty
(
value
=
"dapp简介"
,
index
=
4
)
private
String
description
;
@ExcelProperty
(
value
=
"logo链接"
,
index
=
5
)
private
String
logo
;
@ExcelProperty
(
value
=
"电话"
,
index
=
6
)
private
String
tel
;
@ExcelProperty
(
value
=
"微信号"
,
index
=
7
)
private
String
wechat
;
@ExcelProperty
(
value
=
"使用说明链接"
,
index
=
8
)
private
String
instructions
;
@ExcelProperty
(
value
=
"审核失败原因"
,
index
=
9
)
private
String
reason
;
@ExcelProperty
(
value
=
"审核状态 1:待审核|2:通过审核|3:已处理|4:审核失败"
,
index
=
10
)
private
Integer
status
;
@ExcelProperty
(
value
=
"创建时间"
,
index
=
11
)
private
Date
createTime
;
@ExcelProperty
(
value
=
"更新时间"
,
index
=
12
)
private
Date
updateTime
;
}
\ No newline at end of file
roo-admin/roo-admin-server/src/main/java/com/roo/excel/TokenAuditExcel.java
0 → 100644
View file @
9cc43be0
package
com.roo.excel
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.alibaba.excel.annotation.write.style.ColumnWidth
;
import
com.alibaba.excel.annotation.write.style.ContentRowHeight
;
import
com.alibaba.excel.annotation.write.style.HeadRowHeight
;
import
lombok.Data
;
import
java.util.Date
;
/**
* token录入
*
* @author momin 460363410@qq.com
* @since 1.0 2021-08-04
*/
@Data
@ContentRowHeight
(
20
)
@HeadRowHeight
(
20
)
@ColumnWidth
(
25
)
public
class
TokenAuditExcel
{
@ExcelProperty
(
value
=
"主键"
,
index
=
0
)
private
Long
id
;
@ExcelProperty
(
value
=
"主链"
,
index
=
1
)
private
String
chainCode
;
@ExcelProperty
(
value
=
"代币名称(英文)"
,
index
=
2
)
private
String
nameEn
;
@ExcelProperty
(
value
=
"代币简称"
,
index
=
3
)
private
String
symbol
;
@ExcelProperty
(
value
=
"代币名称"
,
index
=
4
)
private
String
name
;
@ExcelProperty
(
value
=
"合约地址"
,
index
=
5
)
private
String
contractId
;
@ExcelProperty
(
value
=
"精度"
,
index
=
6
)
private
Integer
decimal
;
@ExcelProperty
(
value
=
"发行总量"
,
index
=
7
)
private
Long
totalSupply
;
@ExcelProperty
(
value
=
"简介"
,
index
=
8
)
private
String
description
;
@ExcelProperty
(
value
=
"邮箱地址"
,
index
=
9
)
private
String
email
;
@ExcelProperty
(
value
=
"官网网址"
,
index
=
10
)
private
String
officailWeb
;
@ExcelProperty
(
value
=
"logo"
,
index
=
11
)
private
String
logo
;
@ExcelProperty
(
value
=
"审核失败原因"
,
index
=
12
)
private
String
reason
;
@ExcelProperty
(
value
=
"审核状态 1:待审核|2:审核通过|3:已处理|4:审核失败"
,
index
=
13
)
private
Integer
status
;
@ExcelProperty
(
value
=
"创建时间"
,
index
=
14
)
private
Date
createTime
;
@ExcelProperty
(
value
=
"更新时间"
,
index
=
15
)
private
Date
updateTime
;
}
\ No newline at end of file
roo-admin/roo-admin-server/src/main/java/com/roo/service/DappsAuditService.java
View file @
9cc43be0
package
com.roo.service
;
import
com.roo.dto.DappsAuditDTO
;
import
com.roo.commons.mybatis.service.CrudService
;
import
com.roo.entity.DappsAuditEntity
;
/**
* Dapp入驻
*
* @author momin 460363410@qq.com
* @since 1.0 2021-08-04
*/
public
interface
DappsAuditService
extends
CrudService
<
DappsAuditEntity
,
DappsAuditDTO
>
{
public
interface
DappsAuditService
{
void
save
(
DappsAuditDTO
dto
);
}
roo-admin/roo-admin-server/src/main/java/com/roo/service/TokenAuditService.java
View file @
9cc43be0
package
com.roo.service
;
import
com.roo.commons.mybatis.service.CrudService
;
import
com.roo.dto.TokenAuditDTO
;
import
com.roo.entity.TokenAuditEntity
;
public
interface
TokenAuditService
{
void
save
(
TokenAuditDTO
dto
);
}
/**
* token录入
*
* @author momin 460363410@qq.com
* @since 1.0 2021-08-04
*/
public
interface
TokenAuditService
extends
CrudService
<
TokenAuditEntity
,
TokenAuditDTO
>
{
}
\ No newline at end of file
roo-admin/roo-admin-server/src/main/java/com/roo/service/impl/DappsAuditServiceImpl.java
View file @
9cc43be0
package
com.roo.service.impl
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.roo.commons.mybatis.service.impl.CrudServiceImpl
;
import
com.roo.dao.DappsAuditDao
;
import
com.roo.dto.DappsAuditDTO
;
import
com.roo.entity.DappsAudit
;
import
com.roo.enums.AuditStatusEnum
;
import
com.roo.entity.DappsAuditEntity
;
import
com.roo.service.DappsAuditService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.
Date
;
import
java.util.
Map
;
/**
* Dapp入驻
*
* @author momin 460363410@qq.com
* @since 1.0 2021-08-04
*/
@Service
public
class
DappsAuditServiceImpl
implements
DappsAuditService
{
@Autowired
private
DappsAuditDao
dappsAuditDao
;
public
class
DappsAuditServiceImpl
extends
CrudServiceImpl
<
DappsAuditDao
,
DappsAuditEntity
,
DappsAuditDTO
>
implements
DappsAuditService
{
@Override
public
void
save
(
DappsAuditDTO
dto
)
{
dappsAuditDao
.
insert
(
DappsAudit
.
builder
()
.
chainCode
(
dto
.
getChainCode
())
.
createTime
(
new
Date
())
.
description
(
dto
.
getDescription
())
.
instructions
(
dto
.
getInstructions
())
.
link
(
dto
.
getLink
())
.
logo
(
dto
.
getLogo
())
.
name
(
dto
.
getName
())
.
reason
(
dto
.
getReason
())
.
tel
(
dto
.
getTel
())
.
wechat
(
dto
.
getWechat
())
.
status
(
AuditStatusEnum
.
PENDING_REVIEW
.
getCode
())
.
build
());
public
QueryWrapper
<
DappsAuditEntity
>
getWrapper
(
Map
<
String
,
Object
>
params
){
QueryWrapper
<
DappsAuditEntity
>
wrapper
=
new
QueryWrapper
<>();
return
wrapper
;
}
}
roo-admin/roo-admin-server/src/main/java/com/roo/service/impl/TokenAuditServiceImpl.java
View file @
9cc43be0
package
com.roo.service.impl
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.roo.commons.mybatis.service.impl.CrudServiceImpl
;
import
com.roo.dao.TokenAuditDao
;
import
com.roo.dto.TokenAuditDTO
;
import
com.roo.entity.TokenAudit
;
import
com.roo.enums.AuditStatusEnum
;
import
com.roo.entity.TokenAuditEntity
;
import
com.roo.service.TokenAuditService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.
Date
;
import
java.util.
Map
;
/**
* token录入
*
* @author momin 460363410@qq.com
* @since 1.0 2021-08-04
*/
@Service
public
class
TokenAuditServiceImpl
implements
TokenAuditService
{
@Autowired
private
TokenAuditDao
tokenAuditDao
;
public
class
TokenAuditServiceImpl
extends
CrudServiceImpl
<
TokenAuditDao
,
TokenAuditEntity
,
TokenAuditDTO
>
implements
TokenAuditService
{
@Override
public
void
save
(
TokenAuditDTO
dto
)
{
tokenAuditDao
.
insert
(
TokenAudit
.
builder
()
.
chainCode
(
dto
.
getChainCode
())
.
contractId
(
dto
.
getContractId
())
.
createTime
(
new
Date
())
.
decimal
(
dto
.
getDecimal
())
.
description
(
dto
.
getDescription
())
.
email
(
dto
.
getEmail
())
.
logo
(
dto
.
getLogo
())
.
name
(
dto
.
getName
())
.
nameEn
(
dto
.
getNameEn
())
.
officailWeb
(
dto
.
getOfficailWeb
())
.
symbol
(
dto
.
getSymbol
())
.
totalSupply
(
dto
.
getTotalSupply
())
.
status
(
AuditStatusEnum
.
PENDING_REVIEW
.
getCode
())
.
build
());
public
QueryWrapper
<
TokenAuditEntity
>
getWrapper
(
Map
<
String
,
Object
>
params
){
QueryWrapper
<
TokenAuditEntity
>
wrapper
=
new
QueryWrapper
<>();
return
wrapper
;
}
}
roo-admin/roo-admin-server/src/main/resources/mapper/DappsAuditDao.xml
0 → 100644
View file @
9cc43be0
<?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.roo.dao.DappsAuditDao"
>
<resultMap
type=
"com.roo.entity.DappsAuditEntity"
id=
"dappsAuditMap"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"chainCode"
column=
"chain_code"
/>
<result
property=
"name"
column=
"name"
/>
<result
property=
"link"
column=
"link"
/>
<result
property=
"description"
column=
"description"
/>
<result
property=
"logo"
column=
"logo"
/>
<result
property=
"tel"
column=
"tel"
/>
<result
property=
"wechat"
column=
"wechat"
/>
<result
property=
"instructions"
column=
"instructions"
/>
<result
property=
"reason"
column=
"reason"
/>
<result
property=
"status"
column=
"status"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
</resultMap>
</mapper>
\ No newline at end of file
roo-admin/roo-admin-server/src/main/resources/mapper/DappsAuditMapper.xml
deleted
100644 → 0
View file @
528075fc
This diff is collapsed.
Click to expand it.
roo-admin/roo-admin-server/src/main/resources/mapper/TokenAuditDao.xml
0 → 100644
View file @
9cc43be0
<?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.roo.dao.TokenAuditDao"
>
<resultMap
type=
"com.roo.entity.TokenAuditEntity"
id=
"tokenAuditMap"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"chainCode"
column=
"chain_code"
/>
<result
property=
"nameEn"
column=
"name_en"
/>
<result
property=
"symbol"
column=
"symbol"
/>
<result
property=
"name"
column=
"name"
/>
<result
property=
"contractId"
column=
"contract_id"
/>
<result
property=
"decimal"
column=
"decimal"
/>
<result
property=
"totalSupply"
column=
"total_supply"
/>
<result
property=
"description"
column=
"description"
/>
<result
property=
"email"
column=
"email"
/>
<result
property=
"officailWeb"
column=
"officail_web"
/>
<result
property=
"logo"
column=
"logo"
/>
<result
property=
"reason"
column=
"reason"
/>
<result
property=
"status"
column=
"status"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
</resultMap>
</mapper>
\ No newline at end of file
roo-admin/roo-admin-server/src/main/resources/mapper/TokenAuditMapper.xml
deleted
100644 → 0
View file @
528075fc
This diff is collapsed.
Click to expand it.
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