Commit 91e983e0 authored by wanmin@bu2.cn's avatar wanmin@bu2.cn

运营后台实体配置

parent 0a1f07ae
package com.roo.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
* RPC节点配置
*
* @author momin 460363410@qq.com
* @since 1.0 2021-07-02
*/
@Data
@ApiModel(value = "RPC节点配置")
public class ChainNodesDTO implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "id主键")
private Long id;
@ApiModelProperty(value = "block_chain_code")
private String chainCode;
@ApiModelProperty(value = "网络标识(MAIN=主网,TEST=测试网)")
private String network;
@ApiModelProperty(value = "节点RPC链接")
private String rpcUrl;
@ApiModelProperty(value = "区块浏览器")
private String browserUrl;
@ApiModelProperty(value = "排序,最小靠前")
private Integer sort;
@ApiModelProperty(value = "是否启用")
private Boolean isEnabled;
@ApiModelProperty(value = "创建时间")
private Date createDate;
@ApiModelProperty(value = "更新时间")
private Date updateDate;
}
\ No newline at end of file
package com.roo.dto;
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-07-02
*/
@Data
@ApiModel(value = "dapp管理")
public class DappsDTO implements Serializable {
private static final long serialVersionUID = 1L;
private Long id;
@ApiModelProperty(value = "名称")
private String name;
@ApiModelProperty(value = "图标")
private String icon;
@ApiModelProperty(value = "类型")
private String type;
@ApiModelProperty(value = "访问地址")
private String links;
@ApiModelProperty(value = "是否热门(1:热门 0:非热门)")
private Integer hots;
@ApiModelProperty(value = "dapp所属链")
private String chain;
@ApiModelProperty(value = "是否显示(show、hide)")
private String display;
@ApiModelProperty(value = "排序(排序,最小靠前)")
private Integer sort;
@ApiModelProperty(value = "收录时间")
private Date createTime;
}
\ No newline at end of file
package com.roo.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* 交易对管理
*
* @author momin 460363410@qq.com
* @since 1.0 2021-07-02
*/
@Data
@ApiModel(value = "交易对管理")
public class MarketDTO implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "ID主键")
private Long id;
@ApiModelProperty(value = "符号")
private String symbol;
@ApiModelProperty(value = "对比币种")
private String baseAsset;
@ApiModelProperty(value = "计价币种")
private String quoteAsset;
@ApiModelProperty(value = "排序,正序")
private Integer sort;
@ApiModelProperty(value = "发行量")
private BigDecimal initSupply;
@ApiModelProperty(value = "小数位")
private Integer decimals;
@ApiModelProperty(value = "是否显示")
private Boolean isShow;
@ApiModelProperty(value = "创建时间")
private Date createDate;
@ApiModelProperty(value = "更新时间")
private Date updateDate;
}
\ No newline at end of file
package com.roo.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
* 法币币种
*
* @author momin 460363410@qq.com
* @since 1.0 2021-07-02
*/
@Data
@ApiModel(value = "法币币种")
public class OtcDTO implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "id主键")
private Long id;
@ApiModelProperty(value = "法币名称")
private String name;
@ApiModelProperty(value = "法币符号")
private String symbol;
@ApiModelProperty(value = "图标")
private String icon;
@ApiModelProperty(value = "小数位")
private Integer decimals;
@ApiModelProperty(value = "排序,最小靠前")
private Integer sort;
@ApiModelProperty(value = "是否启用(1=启用,0=关闭)")
private Boolean isEnabled;
@ApiModelProperty(value = "创建时间")
private Date createDate;
@ApiModelProperty(value = "更新时间")
private Date updateDate;
}
\ No newline at end of file
package com.roo.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
* 代币管理
*
* @author momin 460363410@qq.com
* @since 1.0 2021-07-02
*/
@Data
@ApiModel(value = "代币管理")
public class TokenDTO implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "ID主键")
private Long id;
@ApiModelProperty(value = "block_chain_code")
private String chainCode;
@ApiModelProperty(value = "币种名")
private String name;
@ApiModelProperty(value = "英文币种名")
private String nameEn;
@ApiModelProperty(value = "符号")
private String symbol;
@ApiModelProperty(value = "合约地址")
private String contractId;
@ApiModelProperty(value = "小数位")
private Integer decimals;
@ApiModelProperty(value = "排序,正序")
private Integer sort;
@ApiModelProperty(value = "是否系统推荐")
private Boolean isRecommend;
@ApiModelProperty(value = "是否可搜索")
private Boolean isSearch;
@ApiModelProperty(value = "是否可区块扫描")
private Boolean isScan;
@ApiModelProperty(value = "创建时间")
private Date createDate;
@ApiModelProperty(value = "更新时间")
private Date updateDate;
}
\ No newline at end of file
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.ChainNodesDTO;
import com.roo.excel.ChainNodesExcel;
import com.roo.service.ChainNodesService;
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.*;
import springfox.documentation.annotations.ApiIgnore;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
/**
* RPC节点配置
*
* @author momin 460363410@qq.com
* @since 1.0 2021-07-02
*/
@RestController
@RequestMapping("chainnodes")
@Api(tags="RPC节点配置")
public class ChainNodesController {
@Autowired
private ChainNodesService chainNodesService;
@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('chainnodes:chainnodes:page')")
public Result<PageData<ChainNodesDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
PageData<ChainNodesDTO> page = chainNodesService.page(params);
return new Result<PageData<ChainNodesDTO>>().ok(page);
}
@GetMapping("{id}")
@ApiOperation("信息")
@PreAuthorize("hasAuthority('chainnodes:chainnodes:info')")
public Result<ChainNodesDTO> get(@PathVariable("id") Long id){
ChainNodesDTO data = chainNodesService.get(id);
return new Result<ChainNodesDTO>().ok(data);
}
@PostMapping
@ApiOperation("保存")
@LogOperation("保存")
@PreAuthorize("hasAuthority('chainnodes:chainnodes:save')")
public Result save(@RequestBody ChainNodesDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
chainNodesService.save(dto);
return new Result();
}
@PutMapping
@ApiOperation("修改")
@LogOperation("修改")
@PreAuthorize("hasAuthority('chainnodes:chainnodes:update')")
public Result update(@RequestBody ChainNodesDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
chainNodesService.update(dto);
return new Result();
}
@DeleteMapping
@ApiOperation("删除")
@LogOperation("删除")
@PreAuthorize("hasAuthority('chainnodes:chainnodes:delete')")
public Result delete(@RequestBody Long[] ids){
//效验数据
AssertUtils.isArrayEmpty(ids, "id");
chainNodesService.delete(ids);
return new Result();
}
@GetMapping("export")
@ApiOperation("导出")
@LogOperation("导出")
@PreAuthorize("hasAuthority('chainnodes:chainnodes:export')")
public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<ChainNodesDTO> list = chainNodesService.list(params);
ExcelUtils.exportExcelToTarget(response, null, "RPC节点配置", list, ChainNodesExcel.class);
}
}
\ No newline at end of file
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.DappsDTO;
import com.roo.excel.DappsExcel;
import com.roo.service.DappsService;
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.*;
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-07-02
*/
@RestController
@RequestMapping("dapps")
@Api(tags="dapp管理")
public class DappsController {
@Autowired
private DappsService dappsService;
@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('dapps:dapps:page')")
public Result<PageData<DappsDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
PageData<DappsDTO> page = dappsService.page(params);
return new Result<PageData<DappsDTO>>().ok(page);
}
@GetMapping("{id}")
@ApiOperation("信息")
@PreAuthorize("hasAuthority('dapps:dapps:info')")
public Result<DappsDTO> get(@PathVariable("id") Long id){
DappsDTO data = dappsService.get(id);
return new Result<DappsDTO>().ok(data);
}
@PostMapping
@ApiOperation("保存")
@LogOperation("保存")
@PreAuthorize("hasAuthority('dapps:dapps:save')")
public Result save(@RequestBody DappsDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
dappsService.save(dto);
return new Result();
}
@PutMapping
@ApiOperation("修改")
@LogOperation("修改")
@PreAuthorize("hasAuthority('dapps:dapps:update')")
public Result update(@RequestBody DappsDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
dappsService.update(dto);
return new Result();
}
@DeleteMapping
@ApiOperation("删除")
@LogOperation("删除")
@PreAuthorize("hasAuthority('dapps:dapps:delete')")
public Result delete(@RequestBody Long[] ids){
//效验数据
AssertUtils.isArrayEmpty(ids, "id");
dappsService.delete(ids);
return new Result();
}
@GetMapping("export")
@ApiOperation("导出")
@LogOperation("导出")
@PreAuthorize("hasAuthority('dapps:dapps:export')")
public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<DappsDTO> list = dappsService.list(params);
ExcelUtils.exportExcelToTarget(response, null, "dapp管理", list, DappsExcel.class);
}
}
\ No newline at end of file
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.MarketDTO;
import com.roo.excel.MarketExcel;
import com.roo.service.MarketService;
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.*;
import springfox.documentation.annotations.ApiIgnore;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
/**
* 交易对管理
*
* @author momin 460363410@qq.com
* @since 1.0 2021-07-02
*/
@RestController
@RequestMapping("market")
@Api(tags="交易对管理")
public class MarketController {
@Autowired
private MarketService marketService;
@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('market:market:page')")
public Result<PageData<MarketDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
PageData<MarketDTO> page = marketService.page(params);
return new Result<PageData<MarketDTO>>().ok(page);
}
@GetMapping("{id}")
@ApiOperation("信息")
@PreAuthorize("hasAuthority('market:market:info')")
public Result<MarketDTO> get(@PathVariable("id") Long id){
MarketDTO data = marketService.get(id);
return new Result<MarketDTO>().ok(data);
}
@PostMapping
@ApiOperation("保存")
@LogOperation("保存")
@PreAuthorize("hasAuthority('market:market:save')")
public Result save(@RequestBody MarketDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
marketService.save(dto);
return new Result();
}
@PutMapping
@ApiOperation("修改")
@LogOperation("修改")
@PreAuthorize("hasAuthority('market:market:update')")
public Result update(@RequestBody MarketDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
marketService.update(dto);
return new Result();
}
@DeleteMapping
@ApiOperation("删除")
@LogOperation("删除")
@PreAuthorize("hasAuthority('market:market:delete')")
public Result delete(@RequestBody Long[] ids){
//效验数据
AssertUtils.isArrayEmpty(ids, "id");
marketService.delete(ids);
return new Result();
}
@GetMapping("export")
@ApiOperation("导出")
@LogOperation("导出")
@PreAuthorize("hasAuthority('market:market:export')")
public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<MarketDTO> list = marketService.list(params);
ExcelUtils.exportExcelToTarget(response, null, "交易对管理", list, MarketExcel.class);
}
}
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.OtcDTO;
import com.roo.excel.OtcExcel;
import com.roo.service.OtcService;
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.*;
import springfox.documentation.annotations.ApiIgnore;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
/**
* 法币币种
*
* @author momin 460363410@qq.com
* @since 1.0 2021-07-02
*/
@RestController
@RequestMapping("otc")
@Api(tags="法币币种")
public class OtcController {
@Autowired
private OtcService otcService;
@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('otc:otc:page')")
public Result<PageData<OtcDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
PageData<OtcDTO> page = otcService.page(params);
return new Result<PageData<OtcDTO>>().ok(page);
}
@GetMapping("{id}")
@ApiOperation("信息")
@PreAuthorize("hasAuthority('otc:otc:info')")
public Result<OtcDTO> get(@PathVariable("id") Long id){
OtcDTO data = otcService.get(id);
return new Result<OtcDTO>().ok(data);
}
@PostMapping
@ApiOperation("保存")
@LogOperation("保存")
@PreAuthorize("hasAuthority('otc:otc:save')")
public Result save(@RequestBody OtcDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
otcService.save(dto);
return new Result();
}
@PutMapping
@ApiOperation("修改")
@LogOperation("修改")
@PreAuthorize("hasAuthority('otc:otc:update')")
public Result update(@RequestBody OtcDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
otcService.update(dto);
return new Result();
}
@DeleteMapping
@ApiOperation("删除")
@LogOperation("删除")
@PreAuthorize("hasAuthority('otc:otc:delete')")
public Result delete(@RequestBody Long[] ids){
//效验数据
AssertUtils.isArrayEmpty(ids, "id");
otcService.delete(ids);
return new Result();
}
@GetMapping("export")
@ApiOperation("导出")
@LogOperation("导出")
@PreAuthorize("hasAuthority('otc:otc:export')")
public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<OtcDTO> list = otcService.list(params);
ExcelUtils.exportExcelToTarget(response, null, "法币币种", list, OtcExcel.class);
}
}
\ No newline at end of file
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.TokenDTO;
import com.roo.excel.TokenExcel;
import com.roo.service.TokenService;
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.*;
import springfox.documentation.annotations.ApiIgnore;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
/**
* 代币管理
*
* @author momin 460363410@qq.com
* @since 1.0 2021-07-02
*/
@RestController
@RequestMapping("token")
@Api(tags="代币管理")
public class TokenController {
@Autowired
private TokenService tokenService;
@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('token:token:page')")
public Result<PageData<TokenDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
PageData<TokenDTO> page = tokenService.page(params);
return new Result<PageData<TokenDTO>>().ok(page);
}
@GetMapping("{id}")
@ApiOperation("信息")
@PreAuthorize("hasAuthority('token:token:info')")
public Result<TokenDTO> get(@PathVariable("id") Long id){
TokenDTO data = tokenService.get(id);
return new Result<TokenDTO>().ok(data);
}
@PostMapping
@ApiOperation("保存")
@LogOperation("保存")
@PreAuthorize("hasAuthority('token:token:save')")
public Result save(@RequestBody TokenDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
tokenService.save(dto);
return new Result();
}
@PutMapping
@ApiOperation("修改")
@LogOperation("修改")
@PreAuthorize("hasAuthority('token:token:update')")
public Result update(@RequestBody TokenDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
tokenService.update(dto);
return new Result();
}
@DeleteMapping
@ApiOperation("删除")
@LogOperation("删除")
@PreAuthorize("hasAuthority('token:token:delete')")
public Result delete(@RequestBody Long[] ids){
//效验数据
AssertUtils.isArrayEmpty(ids, "id");
tokenService.delete(ids);
return new Result();
}
@GetMapping("export")
@ApiOperation("导出")
@LogOperation("导出")
@PreAuthorize("hasAuthority('token:token:export')")
public void export(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<TokenDTO> list = tokenService.list(params);
ExcelUtils.exportExcelToTarget(response, null, "代币管理", list, TokenExcel.class);
}
}
\ No newline at end of file
package com.roo.dao;
import com.roo.commons.mybatis.dao.BaseDao;
import com.roo.entity.ChainNodesEntity;
import org.apache.ibatis.annotations.Mapper;
/**
* RPC节点配置
*
* @author momin 460363410@qq.com
* @since 1.0 2021-07-02
*/
@Mapper
public interface ChainNodesDao extends BaseDao<ChainNodesEntity> {
}
\ No newline at end of file
package com.roo.dao;
import com.roo.commons.mybatis.dao.BaseDao;
import com.roo.entity.DappsEntity;
import org.apache.ibatis.annotations.Mapper;
/**
* dapp管理
*
* @author momin 460363410@qq.com
* @since 1.0 2021-07-02
*/
@Mapper
public interface DappsDao extends BaseDao<DappsEntity> {
}
\ No newline at end of file
package com.roo.dao;
import com.roo.commons.mybatis.dao.BaseDao;
import com.roo.entity.MarketEntity;
import org.apache.ibatis.annotations.Mapper;
/**
* 交易对管理
*
* @author momin 460363410@qq.com
* @since 1.0 2021-07-02
*/
@Mapper
public interface MarketDao extends BaseDao<MarketEntity> {
}
\ No newline at end of file
package com.roo.dao;
import com.roo.commons.mybatis.dao.BaseDao;
import com.roo.entity.OtcEntity;
import org.apache.ibatis.annotations.Mapper;
/**
* 法币币种
*
* @author momin 460363410@qq.com
* @since 1.0 2021-07-02
*/
@Mapper
public interface OtcDao extends BaseDao<OtcEntity> {
}
\ No newline at end of file
package com.roo.dao;
import com.roo.commons.mybatis.dao.BaseDao;
import com.roo.entity.TokenEntity;
import org.apache.ibatis.annotations.Mapper;
/**
* 代币管理
*
* @author momin 460363410@qq.com
* @since 1.0 2021-07-02
*/
@Mapper
public interface TokenDao extends BaseDao<TokenEntity> {
}
\ No newline at end of file
......@@ -13,7 +13,7 @@ import com.baomidou.mybatisplus.annotation.*;
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("t_app_revision")
@TableName("roo_wallet.t_app_revision")
public class AppRevisionEntity {
private static final long serialVersionUID = 1L;
......
......@@ -13,7 +13,7 @@ import com.baomidou.mybatisplus.annotation.*;
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("t_block_chain")
@TableName("roo_wallet.t_block_chain")
public class BlockChainEntity {
private static final long serialVersionUID = 1L;
......
package com.roo.entity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.*;
import java.util.Date;
/**
* RPC节点配置
*
* @author momin 460363410@qq.com
* @since 1.0 2021-07-02
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("roo_wallet.t_chain_nodes")
public class ChainNodesEntity {
private static final long serialVersionUID = 1L;
/**
* id主键
*/
@TableId
private Long id;
/**
* block_chain_code
*/
private String chainCode;
/**
* 网络标识(MAIN=主网,TEST=测试网)
*/
private String network;
/**
* 节点RPC链接
*/
private String rpcUrl;
/**
* 区块浏览器
*/
private String browserUrl;
/**
* 排序,最小靠前
*/
private Integer sort;
/**
* 是否启用
*/
private Boolean isEnabled;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)
private Date createDate;
/**
* 更新时间
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
private Date updateDate;
}
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-07-02
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("roo_wallet.t_dapps")
public class DappsEntity {
private static final long serialVersionUID = 1L;
@TableId
private Long id;
/**
* 名称
*/
private String name;
/**
* 图标
*/
private String icon;
/**
* 类型
*/
private String type;
/**
* 访问地址
*/
private String links;
/**
* 是否热门(1:热门 0:非热门)
*/
private Integer hots;
/**
* dapp所属链
*/
private String chain;
/**
* 是否显示(show、hide)
*/
private String display;
/**
* 排序(排序,最小靠前)
*/
private Integer sort;
/**
* 收录时间
*/
private Date createTime;
}
package com.roo.entity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.*;
import java.math.BigDecimal;
import java.util.Date;
/**
* 交易对管理
*
* @author momin 460363410@qq.com
* @since 1.0 2021-07-02
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("roo_wallet.t_market")
public class MarketEntity {
private static final long serialVersionUID = 1L;
/**
* ID主键
*/
@TableId
private Long id;
/**
* 符号
*/
private String symbol;
/**
* 对比币种
*/
private String baseAsset;
/**
* 计价币种
*/
private String quoteAsset;
/**
* 排序,正序
*/
private Integer sort;
/**
* 发行量
*/
private BigDecimal initSupply;
/**
* 小数位
*/
private Integer decimals;
/**
* 是否显示
*/
private Boolean isShow;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)
private Date createDate;
/**
* 更新时间
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
private Date updateDate;
}
package com.roo.entity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.*;
import java.util.Date;
/**
* 法币币种
*
* @author momin 460363410@qq.com
* @since 1.0 2021-07-02
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("roo_wallet.t_otc")
public class OtcEntity {
private static final long serialVersionUID = 1L;
/**
* id主键
*/
@TableId
private Long id;
/**
* 法币名称
*/
private String name;
/**
* 法币符号
*/
private String symbol;
/**
* 图标
*/
private String icon;
/**
* 小数位
*/
private Integer decimals;
/**
* 排序,最小靠前
*/
private Integer sort;
/**
* 是否启用(1=启用,0=关闭)
*/
private Boolean isEnabled;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)
private Date createDate;
/**
* 更新时间
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
private Date updateDate;
}
package com.roo.entity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.*;
import java.util.Date;
/**
* 代币管理
*
* @author momin 460363410@qq.com
* @since 1.0 2021-07-02
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("roo_wallet.t_token")
public class TokenEntity {
private static final long serialVersionUID = 1L;
/**
* ID主键
*/
@TableId
private Long id;
/**
* block_chain_code
*/
private String chainCode;
/**
* 币种名
*/
private String name;
/**
* 英文币种名
*/
private String nameEn;
/**
* 符号
*/
private String symbol;
/**
* 合约地址
*/
private String contractId;
/**
* 小数位
*/
private Integer decimals;
/**
* 排序,正序
*/
private Integer sort;
/**
* 是否系统推荐
*/
private Boolean isRecommend;
/**
* 是否可搜索
*/
private Boolean isSearch;
/**
* 是否可区块扫描
*/
private Boolean isScan;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)
private Date createDate;
/**
* 更新时间
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
private Date updateDate;
}
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;
/**
* RPC节点配置
*
* @author momin 460363410@qq.com
* @since 1.0 2021-07-02
*/
@Data
@ContentRowHeight(20)
@HeadRowHeight(20)
@ColumnWidth(25)
public class ChainNodesExcel {
@ExcelProperty(value = "id主键", index = 0)
private Long id;
@ExcelProperty(value = "block_chain_code", index = 1)
private String chainCode;
@ExcelProperty(value = "网络标识(MAIN=主网,TEST=测试网)", index = 2)
private String network;
@ExcelProperty(value = "节点RPC链接", index = 3)
private String rpcUrl;
@ExcelProperty(value = "区块浏览器", index = 4)
private String browserUrl;
@ExcelProperty(value = "排序,最小靠前", index = 5)
private Integer sort;
@ExcelProperty(value = "是否启用", index = 6)
private Boolean isEnabled;
@ExcelProperty(value = "创建时间", index = 7)
private Date createDate;
@ExcelProperty(value = "更新时间", index = 8)
private Date updateDate;
}
\ No newline at end of file
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-07-02
*/
@Data
@ContentRowHeight(20)
@HeadRowHeight(20)
@ColumnWidth(25)
public class DappsExcel {
@ExcelProperty(value = "Long", index = 0)
private Long id;
@ExcelProperty(value = "名称", index = 1)
private String name;
@ExcelProperty(value = "图标", index = 2)
private String icon;
@ExcelProperty(value = "类型", index = 3)
private String type;
@ExcelProperty(value = "访问地址", index = 4)
private String links;
@ExcelProperty(value = "是否热门(1:热门 0:非热门)", index = 5)
private Integer hots;
@ExcelProperty(value = "dapp所属链", index = 6)
private String chain;
@ExcelProperty(value = "是否显示(show、hide)", index = 7)
private String display;
@ExcelProperty(value = "排序(排序,最小靠前)", index = 8)
private Integer sort;
@ExcelProperty(value = "收录时间", index = 9)
private Date createTime;
}
\ No newline at end of file
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.math.BigDecimal;
import java.util.Date;
/**
* 交易对管理
*
* @author momin 460363410@qq.com
* @since 1.0 2021-07-02
*/
@Data
@ContentRowHeight(20)
@HeadRowHeight(20)
@ColumnWidth(25)
public class MarketExcel {
@ExcelProperty(value = "ID主键", index = 0)
private Long id;
@ExcelProperty(value = "符号", index = 1)
private String symbol;
@ExcelProperty(value = "对比币种", index = 2)
private String baseAsset;
@ExcelProperty(value = "计价币种", index = 3)
private String quoteAsset;
@ExcelProperty(value = "排序,正序", index = 4)
private Integer sort;
@ExcelProperty(value = "发行量", index = 5)
private BigDecimal initSupply;
@ExcelProperty(value = "小数位", index = 6)
private Integer decimals;
@ExcelProperty(value = "是否显示", index = 7)
private Boolean isShow;
@ExcelProperty(value = "创建时间", index = 8)
private Date createDate;
@ExcelProperty(value = "更新时间", index = 9)
private Date updateDate;
}
\ No newline at end of file
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;
/**
* 法币币种
*
* @author momin 460363410@qq.com
* @since 1.0 2021-07-02
*/
@Data
@ContentRowHeight(20)
@HeadRowHeight(20)
@ColumnWidth(25)
public class OtcExcel {
@ExcelProperty(value = "id主键", index = 0)
private Long id;
@ExcelProperty(value = "法币名称", index = 1)
private String name;
@ExcelProperty(value = "法币符号", index = 2)
private String symbol;
@ExcelProperty(value = "图标", index = 3)
private String icon;
@ExcelProperty(value = "小数位", index = 4)
private Integer decimals;
@ExcelProperty(value = "排序,最小靠前", index = 5)
private Integer sort;
@ExcelProperty(value = "是否启用(1=启用,0=关闭)", index = 6)
private Boolean isEnabled;
@ExcelProperty(value = "创建时间", index = 7)
private Date createDate;
@ExcelProperty(value = "更新时间", index = 8)
private Date updateDate;
}
\ No newline at end of file
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;
/**
* 代币管理
*
* @author momin 460363410@qq.com
* @since 1.0 2021-07-02
*/
@Data
@ContentRowHeight(20)
@HeadRowHeight(20)
@ColumnWidth(25)
public class TokenExcel {
@ExcelProperty(value = "ID主键", index = 0)
private Long id;
@ExcelProperty(value = "block_chain_code", index = 1)
private String chainCode;
@ExcelProperty(value = "币种名", index = 2)
private String name;
@ExcelProperty(value = "英文币种名", index = 3)
private String nameEn;
@ExcelProperty(value = "符号", index = 4)
private String symbol;
@ExcelProperty(value = "合约地址", index = 5)
private String contractId;
@ExcelProperty(value = "小数位", index = 6)
private Integer decimals;
@ExcelProperty(value = "排序,正序", index = 7)
private Integer sort;
@ExcelProperty(value = "是否系统推荐", index = 8)
private Boolean isRecommend;
@ExcelProperty(value = "是否可搜索", index = 9)
private Boolean isSearch;
@ExcelProperty(value = "是否可区块扫描", index = 10)
private Boolean isScan;
@ExcelProperty(value = "创建时间", index = 11)
private Date createDate;
@ExcelProperty(value = "更新时间", index = 12)
private Date updateDate;
}
\ No newline at end of file
package com.roo.service;
import com.roo.commons.mybatis.service.CrudService;
import com.roo.dto.ChainNodesDTO;
import com.roo.entity.ChainNodesEntity;
/**
* RPC节点配置
*
* @author momin 460363410@qq.com
* @since 1.0 2021-07-02
*/
public interface ChainNodesService extends CrudService<ChainNodesEntity, ChainNodesDTO> {
}
\ No newline at end of file
package com.roo.service;
import com.roo.commons.mybatis.service.CrudService;
import com.roo.dto.DappsDTO;
import com.roo.entity.DappsEntity;
/**
* dapp管理
*
* @author momin 460363410@qq.com
* @since 1.0 2021-07-02
*/
public interface DappsService extends CrudService<DappsEntity, DappsDTO> {
}
\ No newline at end of file
package com.roo.service;
import com.roo.commons.mybatis.service.CrudService;
import com.roo.dto.MarketDTO;
import com.roo.entity.MarketEntity;
/**
* 交易对管理
*
* @author momin 460363410@qq.com
* @since 1.0 2021-07-02
*/
public interface MarketService extends CrudService<MarketEntity, MarketDTO> {
}
\ No newline at end of file
package com.roo.service;
import com.roo.commons.mybatis.service.CrudService;
import com.roo.dto.OtcDTO;
import com.roo.entity.OtcEntity;
/**
* 法币币种
*
* @author momin 460363410@qq.com
* @since 1.0 2021-07-02
*/
public interface OtcService extends CrudService<OtcEntity, OtcDTO> {
}
\ No newline at end of file
package com.roo.service;
import com.roo.commons.mybatis.service.CrudService;
import com.roo.dto.TokenDTO;
import com.roo.entity.TokenEntity;
/**
* 代币管理
*
* @author momin 460363410@qq.com
* @since 1.0 2021-07-02
*/
public interface TokenService extends CrudService<TokenEntity, TokenDTO> {
}
\ No newline at end of file
......@@ -6,7 +6,6 @@ import com.roo.dao.BlockChainDao;
import com.roo.dto.BlockChainDTO;
import com.roo.entity.BlockChainEntity;
import com.roo.service.BlockChainService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
import java.util.Map;
......
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.ChainNodesDao;
import com.roo.dto.ChainNodesDTO;
import com.roo.entity.ChainNodesEntity;
import com.roo.service.ChainNodesService;
import org.springframework.stereotype.Service;
import java.util.Map;
/**
* RPC节点配置
*
* @author momin 460363410@qq.com
* @since 1.0 2021-07-02
*/
@Service
public class ChainNodesServiceImpl extends CrudServiceImpl<ChainNodesDao, ChainNodesEntity, ChainNodesDTO> implements ChainNodesService {
@Override
public QueryWrapper<ChainNodesEntity> getWrapper(Map<String, Object> params){
QueryWrapper<ChainNodesEntity> wrapper = new QueryWrapper<>();
return wrapper;
}
}
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.DappsDao;
import com.roo.dto.DappsDTO;
import com.roo.entity.DappsEntity;
import com.roo.service.DappsService;
import org.springframework.stereotype.Service;
import java.util.Map;
/**
* dapp管理
*
* @author momin 460363410@qq.com
* @since 1.0 2021-07-02
*/
@Service
public class DappsServiceImpl extends CrudServiceImpl<DappsDao, DappsEntity, DappsDTO> implements DappsService {
@Override
public QueryWrapper<DappsEntity> getWrapper(Map<String, Object> params){
QueryWrapper<DappsEntity> wrapper = new QueryWrapper<>();
return wrapper;
}
}
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.MarketDao;
import com.roo.dto.MarketDTO;
import com.roo.entity.MarketEntity;
import com.roo.service.MarketService;
import org.springframework.stereotype.Service;
import java.util.Map;
/**
* 交易对管理
*
* @author momin 460363410@qq.com
* @since 1.0 2021-07-02
*/
@Service
public class MarketServiceImpl extends CrudServiceImpl<MarketDao, MarketEntity, MarketDTO> implements MarketService {
@Override
public QueryWrapper<MarketEntity> getWrapper(Map<String, Object> params){
QueryWrapper<MarketEntity> wrapper = new QueryWrapper<>();
return wrapper;
}
}
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.OtcDao;
import com.roo.dto.OtcDTO;
import com.roo.entity.OtcEntity;
import com.roo.service.OtcService;
import org.springframework.stereotype.Service;
import java.util.Map;
/**
* 法币币种
*
* @author momin 460363410@qq.com
* @since 1.0 2021-07-02
*/
@Service
public class OtcServiceImpl extends CrudServiceImpl<OtcDao, OtcEntity, OtcDTO> implements OtcService {
@Override
public QueryWrapper<OtcEntity> getWrapper(Map<String, Object> params){
QueryWrapper<OtcEntity> wrapper = new QueryWrapper<>();
return wrapper;
}
}
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.TokenDao;
import com.roo.dto.TokenDTO;
import com.roo.entity.TokenEntity;
import com.roo.service.TokenService;
import org.springframework.stereotype.Service;
import java.util.Map;
/**
* 代币管理
*
* @author momin 460363410@qq.com
* @since 1.0 2021-07-02
*/
@Service
public class TokenServiceImpl extends CrudServiceImpl<TokenDao, TokenEntity, TokenDTO> implements TokenService {
@Override
public QueryWrapper<TokenEntity> getWrapper(Map<String, Object> params){
QueryWrapper<TokenEntity> wrapper = new QueryWrapper<>();
return wrapper;
}
}
<?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.ChainNodesDao">
<resultMap type="com.roo.entity.ChainNodesEntity" id="chainNodesMap">
<result property="id" column="id"/>
<result property="chainCode" column="chain_code"/>
<result property="network" column="network"/>
<result property="rpcUrl" column="rpc_url"/>
<result property="browserUrl" column="browser_url"/>
<result property="sort" column="sort"/>
<result property="isEnabled" column="is_enabled"/>
<result property="createDate" column="create_date"/>
<result property="updateDate" column="update_date"/>
</resultMap>
</mapper>
\ No newline at end of file
<?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.DappsDao">
<resultMap type="com.roo.entity.DappsEntity" id="dappsMap">
<result property="id" column="id"/>
<result property="name" column="name"/>
<result property="icon" column="icon"/>
<result property="type" column="type"/>
<result property="links" column="links"/>
<result property="hots" column="hots"/>
<result property="chain" column="chain"/>
<result property="display" column="display"/>
<result property="sort" column="sort"/>
<result property="createTime" column="create_time"/>
</resultMap>
</mapper>
\ No newline at end of file
<?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.MarketDao">
<resultMap type="com.roo.entity.MarketEntity" id="marketMap">
<result property="id" column="id"/>
<result property="symbol" column="symbol"/>
<result property="baseAsset" column="base_asset"/>
<result property="quoteAsset" column="quote_asset"/>
<result property="sort" column="sort"/>
<result property="initSupply" column="init_supply"/>
<result property="decimals" column="decimals"/>
<result property="isShow" column="is_show"/>
<result property="createDate" column="create_date"/>
<result property="updateDate" column="update_date"/>
</resultMap>
</mapper>
\ No newline at end of file
<?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.OtcDao">
<resultMap type="com.roo.entity.OtcEntity" id="otcMap">
<result property="id" column="id"/>
<result property="name" column="name"/>
<result property="symbol" column="symbol"/>
<result property="icon" column="icon"/>
<result property="decimals" column="decimals"/>
<result property="sort" column="sort"/>
<result property="isEnabled" column="is_enabled"/>
<result property="createDate" column="create_date"/>
<result property="updateDate" column="update_date"/>
</resultMap>
</mapper>
\ No newline at end of file
<?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.TokenDao">
<resultMap type="com.roo.entity.TokenEntity" id="tokenMap">
<result property="id" column="id"/>
<result property="chainCode" column="chain_code"/>
<result property="name" column="name"/>
<result property="nameEn" column="name_en"/>
<result property="symbol" column="symbol"/>
<result property="contractId" column="contract_id"/>
<result property="decimals" column="decimals"/>
<result property="sort" column="sort"/>
<result property="isRecommend" column="is_recommend"/>
<result property="isSearch" column="is_search"/>
<result property="isScan" column="is_scan"/>
<result property="createDate" column="create_date"/>
<result property="updateDate" column="update_date"/>
</resultMap>
</mapper>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment