master
enoch 4 years ago
commit 01909c60c6
  1. 84
      README.md
  2. 112
      build.gradle
  3. BIN
      gradle/wrapper/gradle-wrapper.jar
  4. 6
      gradle/wrapper/gradle-wrapper.properties
  5. 185
      gradlew
  6. 89
      gradlew.bat
  7. 5
      settings.gradle
  8. 86
      sliyun-system.sh
  9. 688
      sql/a_sliyun.sql
  10. 112
      src/main/java/cn/sliyun/CodeGenerator.java
  11. 19
      src/main/java/cn/sliyun/SLYApplication.java
  12. 18
      src/main/java/cn/sliyun/SLYServletInitializer.java
  13. 43
      src/main/java/cn/sliyun/api/ad/controller/AdItemController.java
  14. 44
      src/main/java/cn/sliyun/api/ad/controller/AdPositionController.java
  15. 51
      src/main/java/cn/sliyun/api/ad/entity/Ad.java
  16. 55
      src/main/java/cn/sliyun/api/ad/entity/AdEntity.java
  17. 177
      src/main/java/cn/sliyun/api/ad/entity/AdItem.java
  18. 94
      src/main/java/cn/sliyun/api/ad/entity/AdPosition.java
  19. 177
      src/main/java/cn/sliyun/api/ad/entity/Item.java
  20. 16
      src/main/java/cn/sliyun/api/ad/mapper/AdItemMapper.java
  21. 16
      src/main/java/cn/sliyun/api/ad/mapper/AdMapper.java
  22. 16
      src/main/java/cn/sliyun/api/ad/mapper/AdPositionMapper.java
  23. 16
      src/main/java/cn/sliyun/api/ad/mapper/ItemMapper.java
  24. 16
      src/main/java/cn/sliyun/api/ad/service/IAdItemService.java
  25. 16
      src/main/java/cn/sliyun/api/ad/service/IAdPositionService.java
  26. 16
      src/main/java/cn/sliyun/api/ad/service/IAdService.java
  27. 16
      src/main/java/cn/sliyun/api/ad/service/IItemService.java
  28. 45
      src/main/java/cn/sliyun/api/ad/service/impl/AdItemServiceImpl.java
  29. 20
      src/main/java/cn/sliyun/api/ad/service/impl/AdPositionServiceImpl.java
  30. 20
      src/main/java/cn/sliyun/api/ad/service/impl/AdServiceImpl.java
  31. 46
      src/main/java/cn/sliyun/api/ad/service/impl/ItemServiceImpl.java
  32. 20
      src/main/java/cn/sliyun/api/admin/controller/DictController.java
  33. 20
      src/main/java/cn/sliyun/api/admin/controller/LoginLogController.java
  34. 20
      src/main/java/cn/sliyun/api/admin/controller/OperationLogController.java
  35. 20
      src/main/java/cn/sliyun/api/admin/controller/RelationController.java
  36. 20
      src/main/java/cn/sliyun/api/admin/controller/RoleController.java
  37. 20
      src/main/java/cn/sliyun/api/admin/controller/UserController.java
  38. 106
      src/main/java/cn/sliyun/api/admin/entity/Dict.java
  39. 133
      src/main/java/cn/sliyun/api/admin/entity/LoginLog.java
  40. 159
      src/main/java/cn/sliyun/api/admin/entity/OperationLog.java
  41. 67
      src/main/java/cn/sliyun/api/admin/entity/Relation.java
  42. 119
      src/main/java/cn/sliyun/api/admin/entity/Role.java
  43. 224
      src/main/java/cn/sliyun/api/admin/entity/User.java
  44. 16
      src/main/java/cn/sliyun/api/admin/mapper/DictMapper.java
  45. 16
      src/main/java/cn/sliyun/api/admin/mapper/LoginLogMapper.java
  46. 16
      src/main/java/cn/sliyun/api/admin/mapper/OperationLogMapper.java
  47. 16
      src/main/java/cn/sliyun/api/admin/mapper/RelationMapper.java
  48. 16
      src/main/java/cn/sliyun/api/admin/mapper/RoleMapper.java
  49. 16
      src/main/java/cn/sliyun/api/admin/mapper/UserMapper.java
  50. 16
      src/main/java/cn/sliyun/api/admin/service/IDictService.java
  51. 16
      src/main/java/cn/sliyun/api/admin/service/ILoginLogService.java
  52. 16
      src/main/java/cn/sliyun/api/admin/service/IOperationLogService.java
  53. 16
      src/main/java/cn/sliyun/api/admin/service/IRelationService.java
  54. 16
      src/main/java/cn/sliyun/api/admin/service/IRoleService.java
  55. 16
      src/main/java/cn/sliyun/api/admin/service/IUserService.java
  56. 20
      src/main/java/cn/sliyun/api/admin/service/impl/DictServiceImpl.java
  57. 20
      src/main/java/cn/sliyun/api/admin/service/impl/LoginLogServiceImpl.java
  58. 20
      src/main/java/cn/sliyun/api/admin/service/impl/OperationLogServiceImpl.java
  59. 20
      src/main/java/cn/sliyun/api/admin/service/impl/RelationServiceImpl.java
  60. 20
      src/main/java/cn/sliyun/api/admin/service/impl/RoleServiceImpl.java
  61. 20
      src/main/java/cn/sliyun/api/admin/service/impl/UserServiceImpl.java
  62. 30
      src/main/java/cn/sliyun/api/app/AppController.java
  63. 33
      src/main/java/cn/sliyun/api/app/DashboardController.java
  64. 20
      src/main/java/cn/sliyun/api/app/controller/BeamImgController.java
  65. 107
      src/main/java/cn/sliyun/api/app/entity/BeamImg.java
  66. 16
      src/main/java/cn/sliyun/api/app/mapper/BeamImgMapper.java
  67. 16
      src/main/java/cn/sliyun/api/app/service/IBeamImgService.java
  68. 10
      src/main/java/cn/sliyun/api/app/service/service/IAppService.java
  69. 4
      src/main/java/cn/sliyun/api/app/service/service/IDashboardService.java
  70. 23
      src/main/java/cn/sliyun/api/app/service/service/impl/AppServiceImpl.java
  71. 105
      src/main/java/cn/sliyun/api/app/service/service/impl/DashboardServiceImpl.java
  72. 20
      src/main/java/cn/sliyun/api/auth/controller/AuthController.java
  73. 86
      src/main/java/cn/sliyun/api/coin/controller/CoinController.java
  74. 46
      src/main/java/cn/sliyun/api/coin/controller/CoinPackageController.java
  75. 34
      src/main/java/cn/sliyun/api/coin/controller/CoinPackageUnitController.java
  76. 128
      src/main/java/cn/sliyun/api/coin/entity/Coin.java
  77. 57
      src/main/java/cn/sliyun/api/coin/entity/CoinAction.java
  78. 171
      src/main/java/cn/sliyun/api/coin/entity/CoinPackage.java
  79. 103
      src/main/java/cn/sliyun/api/coin/entity/CoinPackageUnit.java
  80. 16
      src/main/java/cn/sliyun/api/coin/mapper/CoinMapper.java
  81. 29
      src/main/java/cn/sliyun/api/coin/mapper/CoinPackageMapper.java
  82. 16
      src/main/java/cn/sliyun/api/coin/mapper/CoinPackageUnitMapper.java
  83. 16
      src/main/java/cn/sliyun/api/coin/service/ICoinPackageService.java
  84. 16
      src/main/java/cn/sliyun/api/coin/service/ICoinPackageUnitService.java
  85. 16
      src/main/java/cn/sliyun/api/coin/service/ICoinService.java
  86. 47
      src/main/java/cn/sliyun/api/coin/service/impl/CoinPackageServiceImpl.java
  87. 20
      src/main/java/cn/sliyun/api/coin/service/impl/CoinPackageUnitServiceImpl.java
  88. 74
      src/main/java/cn/sliyun/api/coin/service/impl/CoinServiceImpl.java
  89. 46
      src/main/java/cn/sliyun/api/member/controller/MemberCoinAddressController.java
  90. 21
      src/main/java/cn/sliyun/api/member/controller/MemberCoinRecordController.java
  91. 74
      src/main/java/cn/sliyun/api/member/controller/MemberController.java
  92. 21
      src/main/java/cn/sliyun/api/member/controller/MemberLevelController.java
  93. 21
      src/main/java/cn/sliyun/api/member/controller/MemberLoginLogController.java
  94. 21
      src/main/java/cn/sliyun/api/member/controller/MemberStatisticsInfoController.java
  95. 278
      src/main/java/cn/sliyun/api/member/entity/Member.java
  96. 164
      src/main/java/cn/sliyun/api/member/entity/MemberCoinAddress.java
  97. 157
      src/main/java/cn/sliyun/api/member/entity/MemberCoinRecord.java
  98. 160
      src/main/java/cn/sliyun/api/member/entity/MemberLevel.java
  99. 118
      src/main/java/cn/sliyun/api/member/entity/MemberLoginLog.java
  100. 141
      src/main/java/cn/sliyun/api/member/entity/MemberStatisticsInfo.java
  101. Some files were not shown because too many files have changed in this diff Show More

@ -0,0 +1,84 @@
## 平台简介
* 本仓库为RuoYi-Vue的单应用版本,保持同步更新。
* 配套前端代码地址[RuoYi-Vue-UI](https://gitee.com/y_project/RuoYi-Vue/tree/master/ruoyi-ui)。
* 前端采用Vue、Element UI。
* 后端采用Spring Boot、Spring Security、Redis & Jwt。
* 权限认证使用Jwt,支持多终端认证系统。
* 支持加载动态权限菜单,多方式轻松权限控制。
* 高效率开发,使用代码生成器可以一键生成前后端代码。
* 提供了一个Oracle版本[RuoYi-Vue-Oracle](https://github.com/yangzongzhuan/RuoYi-Vue-Oracle),保持同步更新。
* 不分离版本,请移步[RuoYi](https://gitee.com/y_project/RuoYi),微服务版本,请移步[RuoYi-Cloud](https://gitee.com/y_project/RuoYi-Cloud)
* 阿里云折扣场:[点我进入](http://aly.ruoyi.vip),腾讯云秒杀场:[点我进入](http://txy.ruoyi.vip)  
* 阿里云优惠券:[点我领取](https://www.aliyun.com/minisite/goods?userCode=brki8iof&share_source=copy_link),腾讯云优惠券:[点我领取](https://cloud.tencent.com/redirect.php?redirect=1025&cps_key=198c8df2ed259157187173bc7f4f32fd&from=console)  
## 内置功能
1. 用户管理:用户是系统操作者,该功能主要完成系统用户配置。
2. 部门管理:配置系统组织机构(公司、部门、小组),树结构展现支持数据权限。
3. 岗位管理:配置系统用户所属担任职务。
4. 菜单管理:配置系统菜单,操作权限,按钮权限标识等。
5. 角色管理:角色菜单权限分配、设置角色按机构进行数据范围权限划分。
6. 字典管理:对系统中经常使用的一些较为固定的数据进行维护。
7. 参数管理:对系统动态配置常用参数。
8. 通知公告:系统通知公告信息发布维护。
9. 操作日志:系统正常操作日志记录和查询;系统异常信息日志记录和查询。
10. 登录日志:系统登录日志记录查询包含登录异常。
11. 在线用户:当前系统中活跃用户状态监控。
12. 定时任务:在线(添加、修改、删除)任务调度包含执行结果日志。
13. 代码生成:前后端代码的生成(java、html、xml、sql)支持CRUD下载 。
14. 系统接口:根据业务代码自动生成相关的api接口文档。
15. 服务监控:监视当前系统CPU、内存、磁盘、堆栈等相关信息。
16. 缓存监控:对系统的缓存信息查询,命令统计等。
17. 在线构建器:拖动表单元素生成相应的HTML代码。
18. 连接池监视:监视当前系统数据库连接池状态,可进行分析SQL找出系统性能瓶颈。
## 在线体验
- admin/admin123
- 陆陆续续收到一些打赏,为了更好的体验已用于演示服务器升级。谢谢各位小伙伴。
演示地址:http://vue.ruoyi.vip
文档地址:http://doc.ruoyi.vip
## 演示图
<table>
<tr>
<td><img src="https://oscimg.oschina.net/oscnet/cd1f90be5f2684f4560c9519c0f2a232ee8.jpg"/></td>
<td><img src="https://oscimg.oschina.net/oscnet/1cbcf0e6f257c7d3a063c0e3f2ff989e4b3.jpg"/></td>
</tr>
<tr>
<td><img src="https://oscimg.oschina.net/oscnet/up-8074972883b5ba0622e13246738ebba237a.png"/></td>
<td><img src="https://oscimg.oschina.net/oscnet/up-9f88719cdfca9af2e58b352a20e23d43b12.png"/></td>
</tr>
<tr>
<td><img src="https://oscimg.oschina.net/oscnet/up-39bf2584ec3a529b0d5a3b70d15c9b37646.png"/></td>
<td><img src="https://oscimg.oschina.net/oscnet/up-936ec82d1f4872e1bc980927654b6007307.png"/></td>
</tr>
<tr>
<td><img src="https://oscimg.oschina.net/oscnet/up-b2d62ceb95d2dd9b3fbe157bb70d26001e9.png"/></td>
<td><img src="https://oscimg.oschina.net/oscnet/up-d67451d308b7a79ad6819723396f7c3d77a.png"/></td>
</tr>
<tr>
<td><img src="https://oscimg.oschina.net/oscnet/5e8c387724954459291aafd5eb52b456f53.jpg"/></td>
<td><img src="https://oscimg.oschina.net/oscnet/644e78da53c2e92a95dfda4f76e6d117c4b.jpg"/></td>
</tr>
<tr>
<td><img src="https://oscimg.oschina.net/oscnet/up-8370a0d02977eebf6dbf854c8450293c937.png"/></td>
<td><img src="https://oscimg.oschina.net/oscnet/up-49003ed83f60f633e7153609a53a2b644f7.png"/></td>
</tr>
<tr>
<td><img src="https://oscimg.oschina.net/oscnet/up-d4fe726319ece268d4746602c39cffc0621.png"/></td>
<td><img src="https://oscimg.oschina.net/oscnet/up-c195234bbcd30be6927f037a6755e6ab69c.png"/></td>
</tr>
<tr>
<td><img src="https://oscimg.oschina.net/oscnet/b6115bc8c31de52951982e509930b20684a.jpg"/></td>
<td><img src="https://oscimg.oschina.net/oscnet/up-5e4daac0bb59612c5038448acbcef235e3a.png"/></td>
</tr>
</table>
## 若依前后端分离交流群
QQ群: [![加入QQ群](https://img.shields.io/badge/已满-937441-blue.svg)](https://jq.qq.com/?_wv=1027&k=5bVB1og) [![加入QQ群](https://img.shields.io/badge/已满-887144332-blue.svg)](https://jq.qq.com/?_wv=1027&k=5eiA4DH) [![加入QQ群](https://img.shields.io/badge/已满-180251782-blue.svg)](https://jq.qq.com/?_wv=1027&k=5AxMKlC) [![加入QQ群](https://img.shields.io/badge/已满-104180207-blue.svg)](https://jq.qq.com/?_wv=1027&k=51G72yr) [![加入QQ群](https://img.shields.io/badge/186866453-blue.svg)](https://jq.qq.com/?_wv=1027&k=VvjN2nvu) 点击按钮入群。

@ -0,0 +1,112 @@
/*
* This file was generated by the Gradle 'init' task.
*/
//gradle脚本自身需要使用的资源,
buildscript {
ext {
springBootVersion = '2.2.4.RELEASE'
}
repositories {
maven { url 'https://maven.aliyun.com/nexus/content/groups/public' }
maven { url 'https://maven.aliyun.com/repository/spring/' }
jcenter()
mavenCentral()
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
}
// java编译的时候缺省状态下会因为中文字符而失败
}
//allprojects
allprojects {
apply plugin: 'idea'
apply plugin: 'java-library'
apply plugin: 'org.springframework.boot' //使springboot插件
apply plugin: 'io.spring.dependency-management' //
version = '1.0'
sourceCompatibility = 8
targetCompatibility = 8
}
repositories {
mavenLocal()
maven {
url = 'http://maven.aliyun.com/nexus/content/groups/public/'
}
maven {
url = 'http://repo.maven.apache.org/maven2'
}
}
dependencies {
testCompile 'org.springframework.boot:spring-boot-starter-test'
compile 'org.springframework.boot:spring-boot-starter'
compile 'org.springframework.boot:spring-boot-starter-aop'
compile 'org.springframework.boot:spring-boot-starter-web'
compile 'org.springframework.boot:spring-boot-devtools'
compile 'org.springframework.boot:spring-boot-starter-security'
compile 'org.springframework.boot:spring-boot-starter-jdbc'
//mail
implementation 'org.springframework.boot:spring-boot-starter-mail'
compile 'org.apache.commons:commons-pool2:2.7.0'
compile 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.1.3'
compile 'com.github.pagehelper:pagehelper-spring-boot-starter:1.3.0'
compile 'com.alibaba:druid-spring-boot-starter:1.2.4'
compile 'org.apache.commons:commons-lang3:3.9'
compile 'commons-io:commons-io:2.5'
compile 'commons-fileupload:commons-fileupload:1.3.3'
compile 'eu.bitwalker:UserAgentUtils:1.21'
compile 'com.alibaba:fastjson:1.2.75'
compile 'org.springframework:spring-context-support:5.2.12.RELEASE'
compile 'io.jsonwebtoken:jjwt:0.9.1'
compile 'io.springfox:springfox-swagger2:2.9.2'
compile 'io.swagger:swagger-annotations:1.5.21'
compile 'io.swagger:swagger-models:1.5.21'
compile 'io.springfox:springfox-swagger-ui:2.9.2'
compile 'com.github.oshi:oshi-core:5.3.6'
compile 'org.apache.poi:poi-ooxml:4.1.2'
compile 'org.apache.velocity:velocity:1.7'
compile 'com.github.penggle:kaptcha:2.3.2'
compile 'mysql:mysql-connector-java:8.0.22'
//lombok
implementation 'org.projectlombok:lombok:1.18.12'
// commons
implementation 'commons-lang:commons-lang:2.6'
// OSS
implementation 'com.aliyun.oss:aliyun-sdk-oss:3.10.2'
// okhttp
implementation 'com.squareup.okhttp3:okhttp:3.10.0'
//mybatis-plus
implementation 'com.baomidou:mybatis-plus-boot-starter:3.4.2'
//mybatis-plus-generator
implementation 'com.baomidou:mybatis-plus-generator:3.3.2'
//freemarker
implementation 'org.springframework.boot:spring-boot-starter-freemarker'
implementation 'com.squareup.okhttp3:okhttp:3.10.0'
implementation 'org.bitcoinj:bitcoinj-core:0.14.7'
compile 'org.apache.httpcomponents:httpclient:4.5.6'
compile 'org.apache.httpcomponents:httpcore:4.4.14'
}
group = 'cn.sliyun'
version = '0.1.0'
description = 'system'
sourceCompatibility = '1.8'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}

Binary file not shown.

@ -0,0 +1,6 @@
#Mon Dec 14 15:14:12 CST 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip

185
gradlew vendored

@ -0,0 +1,185 @@
#!/usr/bin/env sh
#
# Copyright 2015 the original author or authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
##############################################################################
##
## Gradle start up script for UN*X
##
##############################################################################
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$link"
fi
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >/dev/null
APP_HOME="`pwd -P`"
cd "$SAVED" >/dev/null
APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
warn () {
echo "$*"
}
die () {
echo
echo "$*"
echo
exit 1
}
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
nonstop=false
case "`uname`" in
CYGWIN* )
cygwin=true
;;
Darwin* )
darwin=true
;;
MINGW* )
msys=true
;;
NONSTOP* )
nonstop=true
;;
esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD="java"
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
# Increase the maximum file descriptors if we can.
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
MAX_FD_LIMIT=`ulimit -H -n`
if [ $? -eq 0 ] ; then
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
MAX_FD="$MAX_FD_LIMIT"
fi
ulimit -n $MAX_FD
if [ $? -ne 0 ] ; then
warn "Could not set maximum file descriptor limit: $MAX_FD"
fi
else
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
fi
fi
# For Darwin, add options to specify how the application appears in the dock
if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi
# For Cygwin or MSYS, switch paths to Windows format before running java
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"`
# We build the pattern for arguments to be converted via cygpath
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
SEP=""
for dir in $ROOTDIRSRAW ; do
ROOTDIRS="$ROOTDIRS$SEP$dir"
SEP="|"
done
OURCYGPATTERN="(^($ROOTDIRS))"
# Add a user-defined pattern to the cygpath arguments
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
fi
# Now convert the arguments - kludge to limit ourselves to /bin/sh
i=0
for arg in "$@" ; do
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
else
eval `echo args$i`="\"$arg\""
fi
i=`expr $i + 1`
done
case $i in
0) set -- ;;
1) set -- "$args0" ;;
2) set -- "$args0" "$args1" ;;
3) set -- "$args0" "$args1" "$args2" ;;
4) set -- "$args0" "$args1" "$args2" "$args3" ;;
5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
esac
fi
# Escape application args
save () {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " "
}
APP_ARGS=`save "$@"`
# Collect all arguments for the java command, following the shell quoting and substitution rules
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
exec "$JAVACMD" "$@"

89
gradlew.bat vendored

@ -0,0 +1,89 @@
@rem
@rem Copyright 2015 the original author or authors.
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem https://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto execute
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto execute
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
goto fail
:execute
@rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
:mainEnd
if "%OS%"=="Windows_NT" endlocal
:omega

@ -0,0 +1,5 @@
/*
* This file was generated by the Gradle 'init' task.
*/
rootProject.name = 'sliyun'

@ -0,0 +1,86 @@
#!/bin/bash
AppName=sliyun-system.jar
#JVM参数
JVM_OPTS="-Dname=$AppName -Duser.timezone=Asia/Shanghai -Xms512M -Xmx512M -XX:PermSize=256M -XX:MaxPermSize=512M -XX:+HeapDumpOnOutOfMemoryError -XX:+PrintGCDateStamps -XX:+PrintGCDetails -XX:NewRatio=1 -XX:SurvivorRatio=30 -XX:+UseParallelGC -XX:+UseParallelOldGC"
APP_HOME=`pwd`
LOG_PATH=$APP_HOME/logs/$AppName.log
if [ "$1" = "" ];
then
echo -e "\033[0;31m 未输入操作名 \033[0m \033[0;34m {start|stop|restart|status} \033[0m"
exit 1
fi
if [ "$AppName" = "" ];
then
echo -e "\033[0;31m 未输入应用名 \033[0m"
exit 1
fi
function start()
{
PID=`ps -ef |grep java|grep $AppName|grep -v grep|awk '{print $2}'`
if [ x"$PID" != x"" ]; then
echo "$AppName is running..."
else
nohup java -jar $JVM_OPTS target/$AppName > /dev/null 2>&1 &
echo "Start $AppName success..."
fi
}
function stop()
{
echo "Stop $AppName"
PID=""
query(){
PID=`ps -ef |grep java|grep $AppName|grep -v grep|awk '{print $2}'`
}
query
if [ x"$PID" != x"" ]; then
kill -TERM $PID
echo "$AppName (pid:$PID) exiting..."
while [ x"$PID" != x"" ]
do
sleep 1
query
done
echo "$AppName exited."
else
echo "$AppName already stopped."
fi
}
function restart()
{
stop
sleep 2
start
}
function status()
{
PID=`ps -ef |grep java|grep $AppName|grep -v grep|wc -l`
if [ $PID != 0 ];then
echo "$AppName is running..."
else
echo "$AppName is not running..."
fi
}
case $1 in
start)
start;;
stop)
stop;;
restart)
restart;;
status)
status;;
*)
esac

@ -0,0 +1,688 @@
/*
Navicat Premium Data Transfer
Source Server : asliyun
Source Server Type : MySQL
Source Server Version : 80018
Source Host : rm-wz99smt6zjv8tt10x1250109m.mysql.rds.aliyuncs.com:3306
Source Schema : a_sliyun
Target Server Type : MySQL
Target Server Version : 80018
File Encoding : 65001
Date: 15/03/2021 21:34:16
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for sys_config
-- ----------------------------
DROP TABLE IF EXISTS `sys_config`;
CREATE TABLE `sys_config` (
`config_id` int(5) NOT NULL AUTO_INCREMENT COMMENT '参数主键',
`config_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '参数名称',
`config_key` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '参数键名',
`config_value` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '参数键值',
`config_type` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'N' COMMENT '系统内置(Y是 N否)',
`create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
PRIMARY KEY (`config_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 100 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '参数配置表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_config
-- ----------------------------
INSERT INTO `sys_config` VALUES (1, '主框架页-默认皮肤样式名称', 'sys.index.skinName', 'skin-blue', 'Y', 'admin', '2021-03-07 17:11:54', '', NULL, '蓝色 skin-blue、绿色 skin-green、紫色 skin-purple、红色 skin-red、黄色 skin-yellow');
INSERT INTO `sys_config` VALUES (2, '用户管理-账号初始密码', 'sys.user.initPassword', '123456', 'Y', 'admin', '2021-03-07 17:11:54', '', NULL, '初始化密码 123456');
INSERT INTO `sys_config` VALUES (3, '主框架页-侧边栏主题', 'sys.index.sideTheme', 'theme-dark', 'Y', 'admin', '2021-03-07 17:11:54', '', NULL, '深色主题theme-dark,浅色主题theme-light');
-- ----------------------------
-- Table structure for sys_dept
-- ----------------------------
DROP TABLE IF EXISTS `sys_dept`;
CREATE TABLE `sys_dept` (
`dept_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '部门id',
`parent_id` bigint(20) NULL DEFAULT 0 COMMENT '父部门id',
`ancestors` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '祖级列表',
`dept_name` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '部门名称',
`order_num` int(4) NULL DEFAULT 0 COMMENT '显示顺序',
`leader` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '负责人',
`phone` varchar(11) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联系电话',
`email` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '邮箱',
`status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '部门状态(0正常 1停用)',
`del_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)',
`create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`dept_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 201 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '部门表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_dept
-- ----------------------------
INSERT INTO `sys_dept` VALUES (100, 0, '0', '算力云', 0, '算力云', '', 'yingzikeji@gmail.com', '0', '0', 'admin', '2021-03-07 17:11:54', 'admin', '2021-03-14 19:24:08');
INSERT INTO `sys_dept` VALUES (101, 100, '0,100', '广州研发中心', 1, '算力云', '15888888888', 'yingzikeji@gmail.com', '0', '0', 'admin', '2021-03-07 17:11:54', 'admin', '2021-03-14 19:24:08');
INSERT INTO `sys_dept` VALUES (102, 100, '0,100', '长沙分公司', 2, '若依', '15888888888', 'ry@qq.com', '0', '2', 'admin', '2021-03-07 17:11:54', '', NULL);
INSERT INTO `sys_dept` VALUES (103, 101, '0,100,101', '研发部门', 1, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2021-03-07 17:11:54', '', NULL);
INSERT INTO `sys_dept` VALUES (104, 101, '0,100,101', '市场部门', 2, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2021-03-07 17:11:54', '', NULL);
INSERT INTO `sys_dept` VALUES (105, 101, '0,100,101', '测试部门', 3, '若依', '15888888888', 'ry@qq.com', '0', '0', 'admin', '2021-03-07 17:11:54', '', NULL);
INSERT INTO `sys_dept` VALUES (106, 101, '0,100,101', '财务部门', 4, '若依', '15888888888', 'ry@qq.com', '0', '2', 'admin', '2021-03-07 17:11:54', '', NULL);
INSERT INTO `sys_dept` VALUES (107, 101, '0,100,101', '运维部门', 5, '若依', '15888888888', 'ry@qq.com', '0', '2', 'admin', '2021-03-07 17:11:54', '', NULL);
INSERT INTO `sys_dept` VALUES (108, 102, '0,100,102', '市场部门', 1, '若依', '15888888888', 'ry@qq.com', '0', '2', 'admin', '2021-03-07 17:11:54', '', NULL);
INSERT INTO `sys_dept` VALUES (109, 102, '0,100,102', '财务部门', 2, '若依', '15888888888', 'ry@qq.com', '0', '2', 'admin', '2021-03-07 17:11:54', '', NULL);
INSERT INTO `sys_dept` VALUES (200, 100, '0,100', '广州运营中心', 2, NULL, NULL, NULL, '0', '0', 'admin', '2021-03-14 19:24:30', '', NULL);
-- ----------------------------
-- Table structure for sys_dict_data
-- ----------------------------
DROP TABLE IF EXISTS `sys_dict_data`;
CREATE TABLE `sys_dict_data` (
`dict_code` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '字典编码',
`dict_sort` int(4) NULL DEFAULT 0 COMMENT '字典排序',
`dict_label` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '字典标签',
`dict_value` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '字典键值',
`dict_type` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '字典类型',
`css_class` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '样式属性(其他样式扩展)',
`list_class` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '表格回显样式',
`is_default` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'N' COMMENT '是否默认(Y是 N否)',
`status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '状态(0正常 1停用)',
`create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
PRIMARY KEY (`dict_code`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 100 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '字典数据表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_dict_data
-- ----------------------------
INSERT INTO `sys_dict_data` VALUES (1, 1, '', '0', 'sys_user_sex', '', '', 'Y', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '性别男');
INSERT INTO `sys_dict_data` VALUES (2, 2, '', '1', 'sys_user_sex', '', '', 'N', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '性别女');
INSERT INTO `sys_dict_data` VALUES (3, 3, '未知', '2', 'sys_user_sex', '', '', 'N', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '性别未知');
INSERT INTO `sys_dict_data` VALUES (4, 1, '显示', '0', 'sys_show_hide', '', 'primary', 'Y', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '显示菜单');
INSERT INTO `sys_dict_data` VALUES (5, 2, '隐藏', '1', 'sys_show_hide', '', 'danger', 'N', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '隐藏菜单');
INSERT INTO `sys_dict_data` VALUES (6, 1, '正常', '0', 'sys_normal_disable', '', 'primary', 'Y', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '正常状态');
INSERT INTO `sys_dict_data` VALUES (7, 2, '停用', '1', 'sys_normal_disable', '', 'danger', 'N', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '停用状态');
INSERT INTO `sys_dict_data` VALUES (8, 1, '正常', '0', 'sys_job_status', '', 'primary', 'Y', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '正常状态');
INSERT INTO `sys_dict_data` VALUES (9, 2, '暂停', '1', 'sys_job_status', '', 'danger', 'N', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '停用状态');
INSERT INTO `sys_dict_data` VALUES (10, 1, '默认', 'DEFAULT', 'sys_job_group', '', '', 'Y', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '默认分组');
INSERT INTO `sys_dict_data` VALUES (11, 2, '系统', 'SYSTEM', 'sys_job_group', '', '', 'N', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '系统分组');
INSERT INTO `sys_dict_data` VALUES (12, 1, '', 'Y', 'sys_yes_no', '', 'primary', 'Y', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '系统默认是');
INSERT INTO `sys_dict_data` VALUES (13, 2, '', 'N', 'sys_yes_no', '', 'danger', 'N', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '系统默认否');
INSERT INTO `sys_dict_data` VALUES (14, 1, '通知', '1', 'sys_notice_type', '', 'warning', 'Y', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '通知');
INSERT INTO `sys_dict_data` VALUES (15, 2, '公告', '2', 'sys_notice_type', '', 'success', 'N', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '公告');
INSERT INTO `sys_dict_data` VALUES (16, 1, '正常', '0', 'sys_notice_status', '', 'primary', 'Y', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '正常状态');
INSERT INTO `sys_dict_data` VALUES (17, 2, '关闭', '1', 'sys_notice_status', '', 'danger', 'N', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '关闭状态');
INSERT INTO `sys_dict_data` VALUES (18, 1, '新增', '1', 'sys_oper_type', '', 'info', 'N', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '新增操作');
INSERT INTO `sys_dict_data` VALUES (19, 2, '修改', '2', 'sys_oper_type', '', 'info', 'N', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '修改操作');
INSERT INTO `sys_dict_data` VALUES (20, 3, '删除', '3', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '删除操作');
INSERT INTO `sys_dict_data` VALUES (21, 4, '授权', '4', 'sys_oper_type', '', 'primary', 'N', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '授权操作');
INSERT INTO `sys_dict_data` VALUES (22, 5, '导出', '5', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '导出操作');
INSERT INTO `sys_dict_data` VALUES (23, 6, '导入', '6', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '导入操作');
INSERT INTO `sys_dict_data` VALUES (24, 7, '强退', '7', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '强退操作');
INSERT INTO `sys_dict_data` VALUES (25, 8, '生成代码', '8', 'sys_oper_type', '', 'warning', 'N', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '生成操作');
INSERT INTO `sys_dict_data` VALUES (26, 9, '清空数据', '9', 'sys_oper_type', '', 'danger', 'N', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '清空操作');
INSERT INTO `sys_dict_data` VALUES (27, 1, '成功', '0', 'sys_common_status', '', 'primary', 'N', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '正常状态');
INSERT INTO `sys_dict_data` VALUES (28, 2, '失败', '1', 'sys_common_status', '', 'danger', 'N', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '停用状态');
-- ----------------------------
-- Table structure for sys_dict_type
-- ----------------------------
DROP TABLE IF EXISTS `sys_dict_type`;
CREATE TABLE `sys_dict_type` (
`dict_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '字典主键',
`dict_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '字典名称',
`dict_type` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '字典类型',
`status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '状态(0正常 1停用)',
`create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
PRIMARY KEY (`dict_id`) USING BTREE,
UNIQUE INDEX `dict_type`(`dict_type`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 100 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '字典类型表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_dict_type
-- ----------------------------
INSERT INTO `sys_dict_type` VALUES (1, '用户性别', 'sys_user_sex', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '用户性别列表');
INSERT INTO `sys_dict_type` VALUES (2, '菜单状态', 'sys_show_hide', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '菜单状态列表');
INSERT INTO `sys_dict_type` VALUES (3, '系统开关', 'sys_normal_disable', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '系统开关列表');
INSERT INTO `sys_dict_type` VALUES (4, '任务状态', 'sys_job_status', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '任务状态列表');
INSERT INTO `sys_dict_type` VALUES (5, '任务分组', 'sys_job_group', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '任务分组列表');
INSERT INTO `sys_dict_type` VALUES (6, '系统是否', 'sys_yes_no', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '系统是否列表');
INSERT INTO `sys_dict_type` VALUES (7, '通知类型', 'sys_notice_type', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '通知类型列表');
INSERT INTO `sys_dict_type` VALUES (8, '通知状态', 'sys_notice_status', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '通知状态列表');
INSERT INTO `sys_dict_type` VALUES (9, '操作类型', 'sys_oper_type', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '操作类型列表');
INSERT INTO `sys_dict_type` VALUES (10, '系统状态', 'sys_common_status', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '登录状态列表');
-- ----------------------------
-- Table structure for sys_job
-- ----------------------------
DROP TABLE IF EXISTS `sys_job`;
CREATE TABLE `sys_job` (
`job_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '任务ID',
`job_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '任务名称',
`job_group` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'DEFAULT' COMMENT '任务组名',
`invoke_target` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '调用目标字符串',
`cron_expression` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT 'cron执行表达式',
`misfire_policy` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '3' COMMENT '计划执行错误策略(1立即执行 2执行一次 3放弃执行)',
`concurrent` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '1' COMMENT '是否并发执行(0允许 1禁止)',
`status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '状态(0正常 1暂停)',
`create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注信息',
PRIMARY KEY (`job_id`, `job_name`, `job_group`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 100 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '定时任务调度表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_job
-- ----------------------------
INSERT INTO `sys_job` VALUES (1, '系统默认(无参)', 'DEFAULT', 'ryTask.ryNoParams', '0/10 * * * * ?', '3', '1', '1', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_job` VALUES (2, '系统默认(有参)', 'DEFAULT', 'ryTask.ryParams(\'ry\')', '0/15 * * * * ?', '3', '1', '1', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_job` VALUES (3, '系统默认(多参)', 'DEFAULT', 'ryTask.ryMultipleParams(\'ry\', true, 2000L, 316.50D, 100)', '0/20 * * * * ?', '3', '1', '1', 'admin', '2021-03-07 17:11:54', '', NULL, '');
-- ----------------------------
-- Table structure for sys_job_log
-- ----------------------------
DROP TABLE IF EXISTS `sys_job_log`;
CREATE TABLE `sys_job_log` (
`job_log_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '任务日志ID',
`job_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '任务名称',
`job_group` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '任务组名',
`invoke_target` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '调用目标字符串',
`job_message` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '日志信息',
`status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '执行状态(0正常 1失败)',
`exception_info` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '异常信息',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`job_log_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '定时任务调度日志表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Table structure for sys_logininfor
-- ----------------------------
DROP TABLE IF EXISTS `sys_logininfor`;
CREATE TABLE `sys_logininfor` (
`info_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '访问ID',
`user_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '用户账号',
`ipaddr` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '登录IP地址',
`login_location` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '登录地点',
`browser` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '浏览器类型',
`os` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '操作系统',
`status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '登录状态(0成功 1失败)',
`msg` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '提示消息',
`login_time` datetime(0) NULL DEFAULT NULL COMMENT '访问时间',
PRIMARY KEY (`info_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 11 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '系统访问记录' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_logininfor
-- ----------------------------
INSERT INTO `sys_logininfor` VALUES (1, 'admin', '192.168.1.102', '内网IP', 'Chrome 8', 'Windows 10', '0', '退出成功', '2021-03-14 20:22:49');
INSERT INTO `sys_logininfor` VALUES (2, 'admin', '192.168.1.102', '内网IP', 'Chrome 8', 'Windows 10', '0', '登录成功', '2021-03-14 20:52:18');
INSERT INTO `sys_logininfor` VALUES (3, 'admin', '192.168.1.102', '内网IP', 'Chrome 8', 'Windows 10', '0', '退出成功', '2021-03-14 21:02:24');
INSERT INTO `sys_logininfor` VALUES (4, 'admin', '192.168.1.102', '内网IP', 'Chrome 8', 'Windows 10', '0', '登录成功', '2021-03-14 21:02:27');
INSERT INTO `sys_logininfor` VALUES (5, 'admin', '192.168.1.102', '内网IP', 'Chrome 8', 'Windows 10', '0', '退出成功', '2021-03-14 21:05:10');
INSERT INTO `sys_logininfor` VALUES (6, 'admin', '192.168.1.102', '内网IP', 'Chrome 8', 'Windows 10', '0', '登录成功', '2021-03-14 21:14:42');
INSERT INTO `sys_logininfor` VALUES (7, 'admin', '192.168.1.102', '内网IP', 'Chrome 8', 'Windows 10', '0', '退出成功', '2021-03-14 22:13:37');
INSERT INTO `sys_logininfor` VALUES (8, 'admin', '192.168.1.102', '内网IP', 'Chrome 8', 'Windows 10', '0', '登录成功', '2021-03-14 22:19:23');
INSERT INTO `sys_logininfor` VALUES (9, 'admin', '192.168.1.101', '内网IP', 'Chrome 8', 'Windows 10', '0', '登录成功', '2021-03-15 21:05:04');
INSERT INTO `sys_logininfor` VALUES (10, 'admin', '192.168.1.101', '内网IP', 'Chrome 8', 'Windows 10', '0', '登录成功', '2021-03-15 21:27:04');
-- ----------------------------
-- Table structure for sys_menu
-- ----------------------------
DROP TABLE IF EXISTS `sys_menu`;
CREATE TABLE `sys_menu` (
`menu_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '菜单ID',
`menu_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '菜单名称',
`parent_id` bigint(20) NULL DEFAULT 0 COMMENT '父菜单ID',
`order_num` int(4) NULL DEFAULT 0 COMMENT '显示顺序',
`path` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '路由地址',
`component` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '组件路径',
`is_frame` int(1) NULL DEFAULT 1 COMMENT '是否为外链(0是 1否)',
`is_cache` int(1) NULL DEFAULT 0 COMMENT '是否缓存(0缓存 1不缓存)',
`menu_type` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '菜单类型(M目录 C菜单 F按钮)',
`visible` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '菜单状态(0显示 1隐藏)',
`status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '菜单状态(0正常 1停用)',
`perms` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '权限标识',
`icon` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '#' COMMENT '菜单图标',
`create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '备注',
PRIMARY KEY (`menu_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 2014 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '菜单权限表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_menu
-- ----------------------------
INSERT INTO `sys_menu` VALUES (1, '系统管理', 0, 5, 'system', NULL, 1, 0, 'M', '0', '0', '', 'system', 'admin', '2021-03-07 17:11:54', 'admin', '2021-03-14 22:04:12', '系统管理目录');
INSERT INTO `sys_menu` VALUES (2, '系统监控', 0, 6, 'monitor', NULL, 1, 0, 'M', '0', '0', '', 'monitor', 'admin', '2021-03-07 17:11:54', 'admin', '2021-03-14 22:04:19', '系统监控目录');
INSERT INTO `sys_menu` VALUES (3, '系统工具', 0, 7, 'tool', NULL, 1, 0, 'M', '0', '0', '', 'tool', 'admin', '2021-03-07 17:11:54', 'admin', '2021-03-14 22:04:26', '系统工具目录');
INSERT INTO `sys_menu` VALUES (4, '帮助', 0, 8, 'http://aopcloud.com/', NULL, 0, 0, 'M', '0', '0', '', 'guide', 'admin', '2021-03-07 17:11:54', 'admin', '2021-03-14 22:04:31', '若依官网地址');
INSERT INTO `sys_menu` VALUES (100, '用户管理', 1, 1, 'user', 'system/user/index', 1, 0, 'C', '0', '0', 'system:user:list', 'user', 'admin', '2021-03-07 17:11:54', '', NULL, '用户管理菜单');
INSERT INTO `sys_menu` VALUES (101, '角色管理', 1, 2, 'role', 'system/role/index', 1, 0, 'C', '0', '0', 'system:role:list', 'peoples', 'admin', '2021-03-07 17:11:54', '', NULL, '角色管理菜单');
INSERT INTO `sys_menu` VALUES (102, '菜单管理', 1, 3, 'menu', 'system/menu/index', 1, 0, 'C', '0', '0', 'system:menu:list', 'treeTable', 'admin', '2021-03-07 17:11:54', 'admin', '2021-03-14 19:27:26', '菜单管理菜单');
INSERT INTO `sys_menu` VALUES (103, '部门管理', 1, 4, 'dept', 'system/dept/index', 1, 0, 'C', '0', '0', 'system:dept:list', 'tree', 'admin', '2021-03-07 17:11:54', '', NULL, '部门管理菜单');
INSERT INTO `sys_menu` VALUES (104, '岗位管理', 1, 5, 'post', 'system/post/index', 1, 0, 'C', '0', '0', 'system:post:list', 'post', 'admin', '2021-03-07 17:11:54', '', NULL, '岗位管理菜单');
INSERT INTO `sys_menu` VALUES (105, '字典管理', 1, 6, 'dict', 'system/dict/index', 1, 0, 'C', '0', '0', 'system:dict:list', 'dict', 'admin', '2021-03-07 17:11:54', '', NULL, '字典管理菜单');
INSERT INTO `sys_menu` VALUES (106, '参数设置', 1, 7, 'config', 'system/config/index', 1, 0, 'C', '0', '0', 'system:config:list', 'edit', 'admin', '2021-03-07 17:11:54', '', NULL, '参数设置菜单');
INSERT INTO `sys_menu` VALUES (107, '通知公告', 2004, 1, 'notice', 'system/notice/index', 1, 0, 'C', '0', '0', 'system:notice:list', 'message', 'admin', '2021-03-07 17:11:54', 'admin', '2021-03-14 20:16:02', '通知公告菜单');
INSERT INTO `sys_menu` VALUES (108, '日志管理', 1, 9, 'log', '', 1, 0, 'M', '0', '0', '', 'log', 'admin', '2021-03-07 17:11:54', '', NULL, '日志管理菜单');
INSERT INTO `sys_menu` VALUES (111, '数据监控', 2, 3, 'druid', 'monitor/druid/index', 1, 0, 'C', '0', '0', 'monitor:druid:list', 'druid', 'admin', '2021-03-07 17:11:54', '', NULL, '数据监控菜单');
INSERT INTO `sys_menu` VALUES (112, '服务监控', 2, 4, 'server', 'monitor/server/index', 1, 0, 'C', '0', '0', 'monitor:server:list', 'server', 'admin', '2021-03-07 17:11:54', '', NULL, '服务监控菜单');
INSERT INTO `sys_menu` VALUES (116, '系统接口', 3, 3, 'swagger', 'tool/swagger/index', 1, 0, 'C', '0', '0', 'tool:swagger:list', 'swagger', 'admin', '2021-03-07 17:11:54', '', NULL, '系统接口菜单');
INSERT INTO `sys_menu` VALUES (500, '操作日志', 108, 1, 'operlog', 'monitor/operlog/index', 1, 0, 'C', '0', '0', 'monitor:operlog:list', 'form', 'admin', '2021-03-07 17:11:54', '', NULL, '操作日志菜单');
INSERT INTO `sys_menu` VALUES (501, '登录日志', 108, 2, 'logininfor', 'monitor/logininfor/index', 1, 0, 'C', '0', '0', 'monitor:logininfor:list', 'logininfor', 'admin', '2021-03-07 17:11:54', '', NULL, '登录日志菜单');
INSERT INTO `sys_menu` VALUES (1001, '用户查询', 100, 1, '', '', 1, 0, 'F', '0', '0', 'system:user:query', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1002, '用户新增', 100, 2, '', '', 1, 0, 'F', '0', '0', 'system:user:add', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1003, '用户修改', 100, 3, '', '', 1, 0, 'F', '0', '0', 'system:user:edit', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1004, '用户删除', 100, 4, '', '', 1, 0, 'F', '0', '0', 'system:user:remove', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1005, '用户导出', 100, 5, '', '', 1, 0, 'F', '0', '0', 'system:user:export', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1006, '用户导入', 100, 6, '', '', 1, 0, 'F', '0', '0', 'system:user:import', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1007, '重置密码', 100, 7, '', '', 1, 0, 'F', '0', '0', 'system:user:resetPwd', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1008, '角色查询', 101, 1, '', '', 1, 0, 'F', '0', '0', 'system:role:query', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1009, '角色新增', 101, 2, '', '', 1, 0, 'F', '0', '0', 'system:role:add', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1010, '角色修改', 101, 3, '', '', 1, 0, 'F', '0', '0', 'system:role:edit', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1011, '角色删除', 101, 4, '', '', 1, 0, 'F', '0', '0', 'system:role:remove', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1012, '角色导出', 101, 5, '', '', 1, 0, 'F', '0', '0', 'system:role:export', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1013, '菜单查询', 102, 1, '', '', 1, 0, 'F', '0', '0', 'system:menu:query', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1014, '菜单新增', 102, 2, '', '', 1, 0, 'F', '0', '0', 'system:menu:add', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1015, '菜单修改', 102, 3, '', '', 1, 0, 'F', '0', '0', 'system:menu:edit', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1016, '菜单删除', 102, 4, '', '', 1, 0, 'F', '0', '0', 'system:menu:remove', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1017, '部门查询', 103, 1, '', '', 1, 0, 'F', '0', '0', 'system:dept:query', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1018, '部门新增', 103, 2, '', '', 1, 0, 'F', '0', '0', 'system:dept:add', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1019, '部门修改', 103, 3, '', '', 1, 0, 'F', '0', '0', 'system:dept:edit', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1020, '部门删除', 103, 4, '', '', 1, 0, 'F', '0', '0', 'system:dept:remove', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1021, '岗位查询', 104, 1, '', '', 1, 0, 'F', '0', '0', 'system:post:query', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1022, '岗位新增', 104, 2, '', '', 1, 0, 'F', '0', '0', 'system:post:add', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1023, '岗位修改', 104, 3, '', '', 1, 0, 'F', '0', '0', 'system:post:edit', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1024, '岗位删除', 104, 4, '', '', 1, 0, 'F', '0', '0', 'system:post:remove', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1025, '岗位导出', 104, 5, '', '', 1, 0, 'F', '0', '0', 'system:post:export', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1026, '字典查询', 105, 1, '#', '', 1, 0, 'F', '0', '0', 'system:dict:query', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1027, '字典新增', 105, 2, '#', '', 1, 0, 'F', '0', '0', 'system:dict:add', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1028, '字典修改', 105, 3, '#', '', 1, 0, 'F', '0', '0', 'system:dict:edit', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1029, '字典删除', 105, 4, '#', '', 1, 0, 'F', '0', '0', 'system:dict:remove', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1030, '字典导出', 105, 5, '#', '', 1, 0, 'F', '0', '0', 'system:dict:export', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1031, '参数查询', 106, 1, '#', '', 1, 0, 'F', '0', '0', 'system:config:query', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1032, '参数新增', 106, 2, '#', '', 1, 0, 'F', '0', '0', 'system:config:add', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1033, '参数修改', 106, 3, '#', '', 1, 0, 'F', '0', '0', 'system:config:edit', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1034, '参数删除', 106, 4, '#', '', 1, 0, 'F', '0', '0', 'system:config:remove', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1035, '参数导出', 106, 5, '#', '', 1, 0, 'F', '0', '0', 'system:config:export', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1036, '公告查询', 107, 1, '#', '', 1, 0, 'F', '0', '0', 'system:notice:query', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1037, '公告新增', 107, 2, '#', '', 1, 0, 'F', '0', '0', 'system:notice:add', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1038, '公告修改', 107, 3, '#', '', 1, 0, 'F', '0', '0', 'system:notice:edit', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1039, '公告删除', 107, 4, '#', '', 1, 0, 'F', '0', '0', 'system:notice:remove', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1040, '操作查询', 500, 1, '#', '', 1, 0, 'F', '0', '0', 'monitor:operlog:query', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1041, '操作删除', 500, 2, '#', '', 1, 0, 'F', '0', '0', 'monitor:operlog:remove', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1042, '日志导出', 500, 4, '#', '', 1, 0, 'F', '0', '0', 'monitor:operlog:export', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1043, '登录查询', 501, 1, '#', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:query', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1044, '登录删除', 501, 2, '#', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:remove', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (1045, '日志导出', 501, 3, '#', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:export', '#', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_menu` VALUES (2001, 'TokenView', 3, 5, 'https://tokenview.com', NULL, 0, 1, 'C', '0', '0', '', 'guide', 'admin', '2021-03-14 19:36:05', 'admin', '2021-03-14 19:49:10', '');
INSERT INTO `sys_menu` VALUES (2002, '会员管理', 0, 1, 'member', NULL, 1, 0, 'M', '0', '0', '', 'peoples', 'admin', '2021-03-14 19:51:55', 'admin', '2021-03-14 21:41:01', '');
INSERT INTO `sys_menu` VALUES (2003, '货币系统', 0, 2, 'coin', NULL, 1, 0, 'M', '0', '0', '', 'dollar', 'admin', '2021-03-14 19:52:49', 'admin', '2021-03-14 22:00:46', '');
INSERT INTO `sys_menu` VALUES (2004, '广告系统', 0, 4, 'ad', NULL, 1, 0, 'M', '0', '0', '', 'message', 'admin', '2021-03-14 19:54:17', 'admin', '2021-03-14 22:03:54', '');
INSERT INTO `sys_menu` VALUES (2005, '会员列表', 2002, 1, 'MemberList', 'member/MemberList', 1, 0, 'C', '0', '0', '', 'user', 'admin', '2021-03-14 20:03:41', 'admin', '2021-03-14 21:43:21', '');
INSERT INTO `sys_menu` VALUES (2006, '货币列表', 2003, 1, 'CoinList', 'coin/CoinList', 1, 0, 'C', '0', '0', '', 'euro', 'admin', '2021-03-14 20:05:37', 'admin', '2021-03-14 21:59:54', '');
INSERT INTO `sys_menu` VALUES (2007, '算力包', 2003, 2, 'HashPackageList', 'coin/CoinHashPackageList', 1, 0, 'C', '0', '0', '', 'gold', 'admin', '2021-03-14 20:07:49', 'admin', '2021-03-14 22:00:03', '');
INSERT INTO `sys_menu` VALUES (2008, '地址列表', 2003, 3, 'AddressList', 'coin/CoinAddressList', 1, 0, 'C', '0', '0', '', 'cloud', 'admin', '2021-03-14 20:11:04', 'admin', '2021-03-14 22:00:10', '');
INSERT INTO `sys_menu` VALUES (2009, '广告列表', 2004, 2, 'ad/AdList', 'ad/AdList', 1, 0, 'C', '0', '0', '', 'sound', 'admin', '2021-03-14 20:14:21', 'admin', '2021-03-14 21:17:15', '');
INSERT INTO `sys_menu` VALUES (2010, '财务系统', 0, 3, 'finance', NULL, 1, 0, 'M', '0', '0', '', 'property-safety', 'admin', '2021-03-14 22:01:52', 'admin', '2021-03-14 22:02:53', '');
INSERT INTO `sys_menu` VALUES (2011, '财务报表', 2010, 1, 'dashboard', NULL, 1, 0, 'M', '0', '0', '', 'pie-chart', 'admin', '2021-03-14 22:05:40', 'admin', '2021-03-14 22:07:54', '');
INSERT INTO `sys_menu` VALUES (2012, '订单列表', 2010, 2, 'order', NULL, 1, 0, 'M', '0', '0', '', 'bar-chart', 'admin', '2021-03-14 22:06:04', 'admin', '2021-03-14 22:08:07', '');
INSERT INTO `sys_menu` VALUES (2013, '交易记录', 2010, 3, 'records', NULL, 1, 0, 'M', '0', '0', '', 'build', 'admin', '2021-03-14 22:07:36', 'admin', '2021-03-14 22:08:52', '');
-- ----------------------------
-- Table structure for sys_notice
-- ----------------------------
DROP TABLE IF EXISTS `sys_notice`;
CREATE TABLE `sys_notice` (
`notice_id` int(4) NOT NULL AUTO_INCREMENT COMMENT '公告ID',
`notice_title` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '公告标题',
`notice_type` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '公告类型(1通知 2公告)',
`notice_content` longblob NULL COMMENT '公告内容',
`status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '公告状态(0正常 1关闭)',
`create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
PRIMARY KEY (`notice_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 11 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '通知公告表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_notice
-- ----------------------------
INSERT INTO `sys_notice` VALUES (1, '温馨提醒:2018-07-01 若依新版本发布啦', '2', 0xE696B0E78988E69CACE58685E5AEB90A, '0', 'admin', '2021-03-07 17:11:54', 'admin', '2021-03-14 19:20:28', '管理员');
INSERT INTO `sys_notice` VALUES (2, '维护通知:2018-07-01 若依系统凌晨维护', '1', 0xE7BBB4E68AA4E58685E5AEB9, '0', 'admin', '2021-03-07 17:11:54', '', NULL, '管理员');
INSERT INTO `sys_notice` VALUES (10, '测试', '2', 0x61640A, '0', 'admin', '2021-03-14 20:15:26', '', NULL, NULL);
-- ----------------------------
-- Table structure for sys_oper_log
-- ----------------------------
DROP TABLE IF EXISTS `sys_oper_log`;
CREATE TABLE `sys_oper_log` (
`oper_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '日志主键',
`title` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '模块标题',
`business_type` int(2) NULL DEFAULT 0 COMMENT '业务类型(0其它 1新增 2修改 3删除)',
`method` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '方法名称',
`request_method` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '请求方式',
`operator_type` int(1) NULL DEFAULT 0 COMMENT '操作类别(0其它 1后台用户 2手机端用户)',
`oper_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '操作人员',
`dept_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '部门名称',
`oper_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '请求URL',
`oper_ip` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '主机地址',
`oper_location` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '操作地点',
`oper_param` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '请求参数',
`json_result` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '返回参数',
`status` int(1) NULL DEFAULT 0 COMMENT '操作状态(0正常 1异常)',
`error_msg` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '错误消息',
`oper_time` datetime(0) NULL DEFAULT NULL COMMENT '操作时间',
PRIMARY KEY (`oper_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 74 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '操作日志记录' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_oper_log
-- ----------------------------
INSERT INTO `sys_oper_log` VALUES (1, '操作日志', 9, 'com.ruoyi.project.monitor.controller.SysOperlogController.clean()', 'DELETE', 1, 'admin', NULL, '/monitor/operlog/clean', '192.168.1.102', '内网IP', '{}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 19:28:52');
INSERT INTO `sys_oper_log` VALUES (2, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"guide\",\"orderNum\":\"2\",\"menuName\":\"TokenView\",\"params\":{},\"parentId\":3,\"isCache\":\"0\",\"path\":\"https://www.baidu.com/\",\"children\":[],\"createTime\":1615767447000,\"updateBy\":\"admin\",\"isFrame\":\"0\",\"menuId\":2000,\"menuType\":\"M\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 19:31:33');
INSERT INTO `sys_oper_log` VALUES (3, '菜单管理', 1, 'com.ruoyi.project.system.controller.SysMenuController.add()', 'POST', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"guide\",\"orderNum\":\"5\",\"menuName\":\"百度\",\"params\":{},\"parentId\":0,\"isCache\":\"0\",\"path\":\"https://www.baidu.com/\",\"createBy\":\"admin\",\"children\":[],\"isFrame\":\"0\",\"menuType\":\"M\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 19:36:05');
INSERT INTO `sys_oper_log` VALUES (4, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"guide\",\"orderNum\":\"5\",\"menuName\":\"TokenView\",\"params\":{},\"parentId\":3,\"isCache\":\"0\",\"path\":\"https://tokenview.com/\",\"children\":[],\"createTime\":1615768565000,\"isFrame\":\"0\",\"menuId\":2001,\"menuType\":\"M\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"修改菜单\'TokenView\'失败,菜单名称已存在\",\"code\":500}', 0, NULL, '2021-03-14 19:36:42');
INSERT INTO `sys_oper_log` VALUES (5, '菜单管理', 3, 'com.ruoyi.project.system.controller.SysMenuController.remove()', 'DELETE', 1, 'admin', NULL, '/system/menu/2000', '192.168.1.102', '内网IP', '{menuId=2000}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 19:36:53');
INSERT INTO `sys_oper_log` VALUES (6, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"guide\",\"orderNum\":\"5\",\"menuName\":\"TokenView\",\"params\":{},\"parentId\":3,\"isCache\":\"0\",\"path\":\"https://tokenview.com/\",\"children\":[],\"createTime\":1615768565000,\"updateBy\":\"admin\",\"isFrame\":\"0\",\"menuId\":2001,\"menuType\":\"M\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 19:37:05');
INSERT INTO `sys_oper_log` VALUES (7, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"guide\",\"orderNum\":\"5\",\"menuName\":\"TokenView\",\"params\":{},\"parentId\":3,\"isCache\":\"1\",\"path\":\"https://tokenview.com/\",\"children\":[],\"createTime\":1615768565000,\"updateBy\":\"admin\",\"isFrame\":\"0\",\"menuId\":2001,\"menuType\":\"M\",\"perms\":\"\",\"status\":\"1\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 19:38:17');
INSERT INTO `sys_oper_log` VALUES (8, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"guide\",\"orderNum\":\"5\",\"menuName\":\"TokenView\",\"params\":{},\"parentId\":3,\"isCache\":\"1\",\"path\":\"https://tokenview.com/\",\"children\":[],\"createTime\":1615768565000,\"updateBy\":\"admin\",\"isFrame\":\"0\",\"menuId\":2001,\"menuType\":\"M\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 19:40:50');
INSERT INTO `sys_oper_log` VALUES (9, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"guide\",\"orderNum\":\"5\",\"menuName\":\"TokenView\",\"params\":{},\"parentId\":3,\"isCache\":\"1\",\"path\":\"https://tokenview.com\",\"children\":[],\"createTime\":1615768565000,\"updateBy\":\"admin\",\"isFrame\":\"0\",\"menuId\":2001,\"menuType\":\"M\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 19:47:16');
INSERT INTO `sys_oper_log` VALUES (10, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"guide\",\"orderNum\":\"5\",\"menuName\":\"TokenView\",\"params\":{},\"parentId\":3,\"isCache\":\"1\",\"path\":\"https://tokenview.com\",\"children\":[],\"createTime\":1615768565000,\"updateBy\":\"admin\",\"isFrame\":\"0\",\"menuId\":2001,\"menuType\":\"C\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 19:49:10');
INSERT INTO `sys_oper_log` VALUES (11, '菜单管理', 3, 'com.ruoyi.project.system.controller.SysMenuController.remove()', 'DELETE', 1, 'admin', NULL, '/system/menu/110', '192.168.1.102', '内网IP', '{menuId=110}', '{\"msg\":\"菜单已分配,不允许删除\",\"code\":500}', 0, NULL, '2021-03-14 19:50:05');
INSERT INTO `sys_oper_log` VALUES (12, '角色管理', 2, 'com.ruoyi.project.system.controller.SysRoleController.edit()', 'PUT', 1, 'admin', NULL, '/system/role', '192.168.1.102', '内网IP', '{\"flag\":false,\"roleId\":2,\"admin\":false,\"remark\":\"普通角色\",\"dataScope\":\"2\",\"delFlag\":\"0\",\"params\":{},\"roleSort\":\"2\",\"deptCheckStrictly\":true,\"createTime\":1615158714000,\"updateBy\":\"admin\",\"menuCheckStrictly\":true,\"roleKey\":\"common\",\"roleName\":\"普通角色\",\"menuIds\":[4,111,112,116,1001,100,1,1002,1003,1004,1005,1006,1007,1008,101,1009,1010,1011,1012,1013,102,1014,1015,1016,1017,103,1018,1019,1020,1021,104,1022,1023,1024,1025,1026,105,1027,1028,1029,1030,1031,106,1032,1033,1034,1035,1036,107,1037,1038,1039,1040,500,108,1041,1042,1043,501,1044,1045,3,2],\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 19:50:42');
INSERT INTO `sys_oper_log` VALUES (13, '菜单管理', 3, 'com.ruoyi.project.system.controller.SysMenuController.remove()', 'DELETE', 1, 'admin', NULL, '/system/menu/110', '192.168.1.102', '内网IP', '{menuId=110}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 19:50:55');
INSERT INTO `sys_oper_log` VALUES (14, '菜单管理', 1, 'com.ruoyi.project.system.controller.SysMenuController.add()', 'POST', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"orderNum\":\"1\",\"menuName\":\"会员管理\",\"params\":{},\"parentId\":0,\"isCache\":\"0\",\"path\":\"member\",\"createBy\":\"admin\",\"children\":[],\"isFrame\":\"1\",\"menuType\":\"M\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 19:51:55');
INSERT INTO `sys_oper_log` VALUES (15, '菜单管理', 1, 'com.ruoyi.project.system.controller.SysMenuController.add()', 'POST', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"orderNum\":\"3\",\"menuName\":\"财务管理\",\"params\":{},\"parentId\":0,\"isCache\":\"0\",\"path\":\"w\",\"createBy\":\"admin\",\"children\":[],\"isFrame\":\"1\",\"menuType\":\"M\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 19:52:49');
INSERT INTO `sys_oper_log` VALUES (16, '菜单管理', 1, 'com.ruoyi.project.system.controller.SysMenuController.add()', 'POST', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"orderNum\":\"3\",\"menuName\":\"广告系统\",\"params\":{},\"parentId\":0,\"isCache\":\"0\",\"path\":\"ad\",\"createBy\":\"admin\",\"children\":[],\"isFrame\":\"1\",\"menuType\":\"M\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 19:54:17');
INSERT INTO `sys_oper_log` VALUES (17, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"system\",\"orderNum\":\"2\",\"menuName\":\"系统管理\",\"params\":{},\"parentId\":0,\"isCache\":\"0\",\"path\":\"system\",\"children\":[],\"createTime\":1615158714000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":1,\"menuType\":\"M\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 19:56:00');
INSERT INTO `sys_oper_log` VALUES (18, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"monitor\",\"orderNum\":\"5\",\"menuName\":\"系统监控\",\"params\":{},\"parentId\":0,\"isCache\":\"0\",\"path\":\"monitor\",\"children\":[],\"createTime\":1615158714000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":2,\"menuType\":\"M\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 19:56:13');
INSERT INTO `sys_oper_log` VALUES (19, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"tool\",\"orderNum\":\"6\",\"menuName\":\"系统工具\",\"params\":{},\"parentId\":0,\"isCache\":\"0\",\"path\":\"tool\",\"children\":[],\"createTime\":1615158714000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":3,\"menuType\":\"M\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 19:56:20');
INSERT INTO `sys_oper_log` VALUES (20, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"guide\",\"orderNum\":\"7\",\"menuName\":\"帮助\",\"params\":{},\"parentId\":0,\"isCache\":\"0\",\"path\":\"http://aopcloud.com/\",\"children\":[],\"createTime\":1615158714000,\"updateBy\":\"admin\",\"isFrame\":\"0\",\"menuId\":4,\"menuType\":\"M\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 19:56:26');
INSERT INTO `sys_oper_log` VALUES (21, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"system\",\"orderNum\":\"4\",\"menuName\":\"系统管理\",\"params\":{},\"parentId\":0,\"isCache\":\"0\",\"path\":\"system\",\"children\":[],\"createTime\":1615158714000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":1,\"menuType\":\"M\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 19:56:38');
INSERT INTO `sys_oper_log` VALUES (22, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"peoples\",\"orderNum\":\"1\",\"menuName\":\"会员管理\",\"params\":{},\"parentId\":0,\"isCache\":\"0\",\"path\":\"member\",\"children\":[],\"createTime\":1615769515000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":2002,\"menuType\":\"M\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 19:58:28');
INSERT INTO `sys_oper_log` VALUES (23, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"dollar\",\"orderNum\":\"3\",\"menuName\":\"财务管理\",\"params\":{},\"parentId\":0,\"isCache\":\"0\",\"path\":\"w\",\"children\":[],\"createTime\":1615769569000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":2003,\"menuType\":\"M\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 19:59:25');
INSERT INTO `sys_oper_log` VALUES (24, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"message\",\"orderNum\":\"3\",\"menuName\":\"广告系统\",\"params\":{},\"parentId\":0,\"isCache\":\"0\",\"path\":\"ad\",\"children\":[],\"createTime\":1615769657000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":2004,\"menuType\":\"M\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 20:01:16');
INSERT INTO `sys_oper_log` VALUES (25, '菜单管理', 1, 'com.ruoyi.project.system.controller.SysMenuController.add()', 'POST', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"orderNum\":\"1\",\"menuName\":\"会员列表\",\"params\":{},\"parentId\":2002,\"isCache\":\"0\",\"path\":\"member/list\",\"component\":\"member/list\",\"createBy\":\"admin\",\"children\":[],\"isFrame\":\"1\",\"menuType\":\"C\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 20:03:41');
INSERT INTO `sys_oper_log` VALUES (26, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"user\",\"orderNum\":\"1\",\"menuName\":\"会员列表\",\"params\":{},\"parentId\":2002,\"isCache\":\"0\",\"path\":\"member/list\",\"component\":\"\",\"children\":[],\"createTime\":1615770221000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":2005,\"menuType\":\"C\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 20:04:24');
INSERT INTO `sys_oper_log` VALUES (27, '菜单管理', 1, 'com.ruoyi.project.system.controller.SysMenuController.add()', 'POST', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"orderNum\":\"1\",\"menuName\":\"货币列表\",\"params\":{},\"parentId\":2003,\"isCache\":\"0\",\"path\":\"f/coin/list\",\"createBy\":\"admin\",\"children\":[],\"isFrame\":\"1\",\"menuType\":\"M\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 20:05:37');
INSERT INTO `sys_oper_log` VALUES (28, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"euro\",\"orderNum\":\"1\",\"menuName\":\"货币列表\",\"params\":{},\"parentId\":2003,\"isCache\":\"0\",\"path\":\"f/coin/list\",\"children\":[],\"createTime\":1615770337000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":2006,\"menuType\":\"M\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 20:06:05');
INSERT INTO `sys_oper_log` VALUES (29, '菜单管理', 1, 'com.ruoyi.project.system.controller.SysMenuController.add()', 'POST', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"gold\",\"orderNum\":\"2\",\"menuName\":\"算力包\",\"params\":{},\"parentId\":2003,\"isCache\":\"0\",\"path\":\"f/coin/package\",\"createBy\":\"admin\",\"children\":[],\"isFrame\":\"1\",\"menuType\":\"M\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 20:07:49');
INSERT INTO `sys_oper_log` VALUES (30, '菜单管理', 1, 'com.ruoyi.project.system.controller.SysMenuController.add()', 'POST', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"cloud\",\"orderNum\":\"3\",\"menuName\":\"地址列表\",\"params\":{},\"parentId\":2003,\"isCache\":\"0\",\"path\":\"f/member/address\",\"createBy\":\"admin\",\"children\":[],\"isFrame\":\"1\",\"menuType\":\"C\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 20:11:04');
INSERT INTO `sys_oper_log` VALUES (31, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"message\",\"orderNum\":\"1\",\"menuName\":\"通知公告\",\"params\":{},\"parentId\":2004,\"isCache\":\"0\",\"path\":\"notice\",\"component\":\"system/notice/index\",\"children\":[],\"createTime\":1615158714000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":107,\"menuType\":\"C\",\"perms\":\"system:notice:list\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 20:12:08');
INSERT INTO `sys_oper_log` VALUES (32, '菜单管理', 1, 'com.ruoyi.project.system.controller.SysMenuController.add()', 'POST', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"sound\",\"orderNum\":\"2\",\"menuName\":\"广告列表\",\"params\":{},\"parentId\":2004,\"isCache\":\"0\",\"path\":\"ad/a/list\",\"createBy\":\"admin\",\"children\":[],\"isFrame\":\"1\",\"menuType\":\"C\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 20:14:21');
INSERT INTO `sys_oper_log` VALUES (33, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"message\",\"orderNum\":\"1\",\"menuName\":\"通知公告\",\"params\":{},\"parentId\":2004,\"isCache\":\"0\",\"path\":\"notice\",\"component\":\"system/notice/index\",\"children\":[],\"createTime\":1615158714000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":107,\"menuType\":\"C\",\"perms\":\"system:notice:list\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 20:14:41');
INSERT INTO `sys_oper_log` VALUES (34, '通知公告', 1, 'com.ruoyi.project.system.controller.SysNoticeController.add()', 'POST', 1, 'admin', NULL, '/system/notice', '192.168.1.102', '内网IP', '{\"noticeContent\":\"ad\\n\",\"createBy\":\"admin\",\"noticeType\":\"2\",\"params\":{},\"noticeTitle\":\"测试\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 20:15:26');
INSERT INTO `sys_oper_log` VALUES (35, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"message\",\"orderNum\":\"1\",\"menuName\":\"通知公告\",\"params\":{},\"parentId\":2004,\"isCache\":\"0\",\"path\":\"notice\",\"component\":\"system/notice/index\",\"children\":[],\"createTime\":1615158714000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":107,\"menuType\":\"C\",\"perms\":\"system:notice:list\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 20:16:02');
INSERT INTO `sys_oper_log` VALUES (36, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"sound\",\"orderNum\":\"2\",\"menuName\":\"广告列表\",\"params\":{},\"parentId\":2004,\"isCache\":\"0\",\"path\":\"ad/AdList\",\"component\":\"ad/AdList\",\"children\":[],\"createTime\":1615770861000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":2009,\"menuType\":\"C\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 21:17:15');
INSERT INTO `sys_oper_log` VALUES (37, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"user\",\"orderNum\":\"1\",\"menuName\":\"会员列表\",\"params\":{},\"parentId\":2002,\"isCache\":\"0\",\"path\":\"member/list\",\"component\":\"\",\"children\":[],\"createTime\":1615770221000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":2005,\"menuType\":\"C\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 21:37:27');
INSERT INTO `sys_oper_log` VALUES (38, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"user\",\"orderNum\":\"1\",\"menuName\":\"会员列表\",\"params\":{},\"parentId\":2002,\"isCache\":\"0\",\"path\":\"member/MemberList\",\"component\":\"\",\"children\":[],\"createTime\":1615770221000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":2005,\"menuType\":\"C\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 21:38:49');
INSERT INTO `sys_oper_log` VALUES (39, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"user\",\"orderNum\":\"1\",\"menuName\":\"会员列表\",\"params\":{},\"parentId\":2002,\"isCache\":\"0\",\"path\":\"MemberList\",\"component\":\"\",\"children\":[],\"createTime\":1615770221000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":2005,\"menuType\":\"C\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 21:39:21');
INSERT INTO `sys_oper_log` VALUES (40, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"peoples\",\"orderNum\":\"1\",\"menuName\":\"会员管理\",\"params\":{},\"parentId\":0,\"isCache\":\"0\",\"path\":\"member\",\"children\":[],\"createTime\":1615769515000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":2002,\"menuType\":\"M\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 21:40:56');
INSERT INTO `sys_oper_log` VALUES (41, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"peoples\",\"orderNum\":\"1\",\"menuName\":\"会员管理\",\"params\":{},\"parentId\":0,\"isCache\":\"0\",\"path\":\"member\",\"children\":[],\"createTime\":1615769515000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":2002,\"menuType\":\"M\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 21:41:01');
INSERT INTO `sys_oper_log` VALUES (42, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"user\",\"orderNum\":\"1\",\"menuName\":\"会员列表\",\"params\":{},\"parentId\":2002,\"isCache\":\"0\",\"path\":\"MemberList\",\"component\":\"MemberList\",\"children\":[],\"createTime\":1615770221000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":2005,\"menuType\":\"C\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 21:41:10');
INSERT INTO `sys_oper_log` VALUES (43, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"user\",\"orderNum\":\"1\",\"menuName\":\"会员列表\",\"params\":{},\"parentId\":2002,\"isCache\":\"0\",\"path\":\"MemberList\",\"component\":\"member/MemberList\",\"children\":[],\"createTime\":1615770221000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":2005,\"menuType\":\"C\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 21:43:21');
INSERT INTO `sys_oper_log` VALUES (44, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"euro\",\"orderNum\":\"1\",\"menuName\":\"货币列表\",\"params\":{},\"parentId\":2003,\"isCache\":\"0\",\"path\":\"coin/CoinList\",\"children\":[],\"createTime\":1615770337000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":2006,\"menuType\":\"M\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 21:45:43');
INSERT INTO `sys_oper_log` VALUES (45, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"euro\",\"orderNum\":\"1\",\"menuName\":\"货币列表\",\"params\":{},\"parentId\":2003,\"isCache\":\"0\",\"path\":\"coin/CoinList\",\"component\":\"coin/CoinList\",\"children\":[],\"createTime\":1615770337000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":2006,\"menuType\":\"C\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 21:46:09');
INSERT INTO `sys_oper_log` VALUES (46, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"gold\",\"orderNum\":\"2\",\"menuName\":\"算力包\",\"params\":{},\"parentId\":2003,\"isCache\":\"0\",\"path\":\"coin/HashPackageList\",\"component\":\"coin/HashPackageList\",\"children\":[],\"createTime\":1615770469000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":2007,\"menuType\":\"C\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 21:47:00');
INSERT INTO `sys_oper_log` VALUES (47, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"cloud\",\"orderNum\":\"3\",\"menuName\":\"地址列表\",\"params\":{},\"parentId\":2003,\"isCache\":\"0\",\"path\":\"coin/CoinAddressList\",\"component\":\"coin/CoinAddressList\",\"children\":[],\"createTime\":1615770664000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":2008,\"menuType\":\"C\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 21:47:24');
INSERT INTO `sys_oper_log` VALUES (48, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"gold\",\"orderNum\":\"2\",\"menuName\":\"算力包\",\"params\":{},\"parentId\":2003,\"isCache\":\"0\",\"path\":\"coin/HashPackageList\",\"component\":\"coin/HashPackageList\",\"children\":[],\"createTime\":1615770469000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":2007,\"menuType\":\"C\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 21:48:28');
INSERT INTO `sys_oper_log` VALUES (49, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"gold\",\"orderNum\":\"2\",\"menuName\":\"算力包\",\"params\":{},\"parentId\":2003,\"isCache\":\"0\",\"path\":\"coin/CoinHashPackageList\",\"component\":\"coin/CoinHashPackageList\",\"children\":[],\"createTime\":1615770469000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":2007,\"menuType\":\"C\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 21:50:33');
INSERT INTO `sys_oper_log` VALUES (50, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"dollar\",\"orderNum\":\"3\",\"menuName\":\"货币系统\",\"params\":{},\"parentId\":0,\"isCache\":\"0\",\"path\":\"coin\",\"children\":[],\"createTime\":1615769569000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":2003,\"menuType\":\"M\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 21:59:29');
INSERT INTO `sys_oper_log` VALUES (51, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"euro\",\"orderNum\":\"1\",\"menuName\":\"货币列表\",\"params\":{},\"parentId\":2003,\"isCache\":\"0\",\"path\":\"CoinList\",\"component\":\"coin/CoinList\",\"children\":[],\"createTime\":1615770337000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":2006,\"menuType\":\"C\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 21:59:54');
INSERT INTO `sys_oper_log` VALUES (52, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"gold\",\"orderNum\":\"2\",\"menuName\":\"算力包\",\"params\":{},\"parentId\":2003,\"isCache\":\"0\",\"path\":\"HashPackageList\",\"component\":\"coin/CoinHashPackageList\",\"children\":[],\"createTime\":1615770469000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":2007,\"menuType\":\"C\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 22:00:03');
INSERT INTO `sys_oper_log` VALUES (53, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"cloud\",\"orderNum\":\"3\",\"menuName\":\"地址列表\",\"params\":{},\"parentId\":2003,\"isCache\":\"0\",\"path\":\"AddressList\",\"component\":\"coin/CoinAddressList\",\"children\":[],\"createTime\":1615770664000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":2008,\"menuType\":\"C\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 22:00:10');
INSERT INTO `sys_oper_log` VALUES (54, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"dollar\",\"orderNum\":\"2\",\"menuName\":\"货币系统\",\"params\":{},\"parentId\":0,\"isCache\":\"0\",\"path\":\"coin\",\"children\":[],\"createTime\":1615769569000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":2003,\"menuType\":\"M\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 22:00:46');
INSERT INTO `sys_oper_log` VALUES (55, '菜单管理', 1, 'com.ruoyi.project.system.controller.SysMenuController.add()', 'POST', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"orderNum\":\"3\",\"menuName\":\"财务系统\",\"params\":{},\"parentId\":0,\"isCache\":\"0\",\"path\":\"finance\",\"createBy\":\"admin\",\"children\":[],\"isFrame\":\"1\",\"menuType\":\"M\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 22:01:52');
INSERT INTO `sys_oper_log` VALUES (56, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"message\",\"orderNum\":\"4\",\"menuName\":\"广告系统\",\"params\":{},\"parentId\":0,\"isCache\":\"0\",\"path\":\"ad\",\"children\":[],\"createTime\":1615769657000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":2004,\"menuType\":\"M\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 22:02:02');
INSERT INTO `sys_oper_log` VALUES (57, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"property-safety\",\"orderNum\":\"3\",\"menuName\":\"财务系统\",\"params\":{},\"parentId\":0,\"isCache\":\"0\",\"path\":\"finance\",\"children\":[],\"createTime\":1615777312000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":2010,\"menuType\":\"M\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 22:02:53');
INSERT INTO `sys_oper_log` VALUES (58, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"message\",\"orderNum\":\"5\",\"menuName\":\"广告系统\",\"params\":{},\"parentId\":0,\"isCache\":\"0\",\"path\":\"ad\",\"children\":[],\"createTime\":1615769657000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":2004,\"menuType\":\"M\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 22:03:15');
INSERT INTO `sys_oper_log` VALUES (59, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"message\",\"orderNum\":\"6\",\"menuName\":\"广告系统\",\"params\":{},\"parentId\":0,\"isCache\":\"0\",\"path\":\"ad\",\"children\":[],\"createTime\":1615769657000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":2004,\"menuType\":\"M\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 22:03:21');
INSERT INTO `sys_oper_log` VALUES (60, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"message\",\"orderNum\":\"7\",\"menuName\":\"广告系统\",\"params\":{},\"parentId\":0,\"isCache\":\"0\",\"path\":\"ad\",\"children\":[],\"createTime\":1615769657000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":2004,\"menuType\":\"M\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 22:03:26');
INSERT INTO `sys_oper_log` VALUES (61, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"message\",\"orderNum\":\"8\",\"menuName\":\"广告系统\",\"params\":{},\"parentId\":0,\"isCache\":\"0\",\"path\":\"ad\",\"children\":[],\"createTime\":1615769657000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":2004,\"menuType\":\"M\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 22:03:30');
INSERT INTO `sys_oper_log` VALUES (62, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"message\",\"orderNum\":\"4\",\"menuName\":\"广告系统\",\"params\":{},\"parentId\":0,\"isCache\":\"0\",\"path\":\"ad\",\"children\":[],\"createTime\":1615769657000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":2004,\"menuType\":\"M\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 22:03:54');
INSERT INTO `sys_oper_log` VALUES (63, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"monitor\",\"orderNum\":\"5\",\"menuName\":\"系统监控\",\"params\":{},\"parentId\":0,\"isCache\":\"0\",\"path\":\"monitor\",\"children\":[],\"createTime\":1615158714000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":2,\"menuType\":\"M\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 22:04:03');
INSERT INTO `sys_oper_log` VALUES (64, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"system\",\"orderNum\":\"5\",\"menuName\":\"系统管理\",\"params\":{},\"parentId\":0,\"isCache\":\"0\",\"path\":\"system\",\"children\":[],\"createTime\":1615158714000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":1,\"menuType\":\"M\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 22:04:12');
INSERT INTO `sys_oper_log` VALUES (65, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"monitor\",\"orderNum\":\"6\",\"menuName\":\"系统监控\",\"params\":{},\"parentId\":0,\"isCache\":\"0\",\"path\":\"monitor\",\"children\":[],\"createTime\":1615158714000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":2,\"menuType\":\"M\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 22:04:19');
INSERT INTO `sys_oper_log` VALUES (66, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"tool\",\"orderNum\":\"7\",\"menuName\":\"系统工具\",\"params\":{},\"parentId\":0,\"isCache\":\"0\",\"path\":\"tool\",\"children\":[],\"createTime\":1615158714000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":3,\"menuType\":\"M\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 22:04:26');
INSERT INTO `sys_oper_log` VALUES (67, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"guide\",\"orderNum\":\"8\",\"menuName\":\"帮助\",\"params\":{},\"parentId\":0,\"isCache\":\"0\",\"path\":\"http://aopcloud.com/\",\"children\":[],\"createTime\":1615158714000,\"updateBy\":\"admin\",\"isFrame\":\"0\",\"menuId\":4,\"menuType\":\"M\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 22:04:31');
INSERT INTO `sys_oper_log` VALUES (68, '菜单管理', 1, 'com.ruoyi.project.system.controller.SysMenuController.add()', 'POST', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"orderNum\":\"1\",\"menuName\":\"财务报表\",\"params\":{},\"parentId\":2010,\"isCache\":\"0\",\"path\":\"dashboard\",\"createBy\":\"admin\",\"children\":[],\"isFrame\":\"1\",\"menuType\":\"M\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 22:05:40');
INSERT INTO `sys_oper_log` VALUES (69, '菜单管理', 1, 'com.ruoyi.project.system.controller.SysMenuController.add()', 'POST', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"orderNum\":\"2\",\"menuName\":\"订单列表\",\"params\":{},\"parentId\":2010,\"isCache\":\"0\",\"path\":\"order\",\"createBy\":\"admin\",\"children\":[],\"isFrame\":\"1\",\"menuType\":\"M\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 22:06:04');
INSERT INTO `sys_oper_log` VALUES (70, '菜单管理', 1, 'com.ruoyi.project.system.controller.SysMenuController.add()', 'POST', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"orderNum\":\"3\",\"menuName\":\"交易记录\",\"params\":{},\"parentId\":2010,\"isCache\":\"0\",\"path\":\"records\",\"createBy\":\"admin\",\"children\":[],\"isFrame\":\"1\",\"menuType\":\"M\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 22:07:36');
INSERT INTO `sys_oper_log` VALUES (71, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"pie-chart\",\"orderNum\":\"1\",\"menuName\":\"财务报表\",\"params\":{},\"parentId\":2010,\"isCache\":\"0\",\"path\":\"dashboard\",\"children\":[],\"createTime\":1615777540000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":2011,\"menuType\":\"M\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 22:07:54');
INSERT INTO `sys_oper_log` VALUES (72, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"bar-chart\",\"orderNum\":\"2\",\"menuName\":\"订单列表\",\"params\":{},\"parentId\":2010,\"isCache\":\"0\",\"path\":\"order\",\"children\":[],\"createTime\":1615777564000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":2012,\"menuType\":\"M\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 22:08:07');
INSERT INTO `sys_oper_log` VALUES (73, '菜单管理', 2, 'com.ruoyi.project.system.controller.SysMenuController.edit()', 'PUT', 1, 'admin', NULL, '/system/menu', '192.168.1.102', '内网IP', '{\"visible\":\"0\",\"icon\":\"build\",\"orderNum\":\"3\",\"menuName\":\"交易记录\",\"params\":{},\"parentId\":2010,\"isCache\":\"0\",\"path\":\"records\",\"children\":[],\"createTime\":1615777656000,\"updateBy\":\"admin\",\"isFrame\":\"1\",\"menuId\":2013,\"menuType\":\"M\",\"perms\":\"\",\"status\":\"0\"}', '{\"msg\":\"操作成功\",\"code\":200}', 0, NULL, '2021-03-14 22:08:52');
-- ----------------------------
-- Table structure for sys_post
-- ----------------------------
DROP TABLE IF EXISTS `sys_post`;
CREATE TABLE `sys_post` (
`post_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '岗位ID',
`post_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '岗位编码',
`post_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '岗位名称',
`post_sort` int(4) NOT NULL COMMENT '显示顺序',
`status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '状态(0正常 1停用)',
`create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
PRIMARY KEY (`post_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 5 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '岗位信息表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_post
-- ----------------------------
INSERT INTO `sys_post` VALUES (1, 'ceo', '董事长', 1, '0', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_post` VALUES (2, 'se', '项目经理', 2, '0', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_post` VALUES (3, 'hr', '人力资源', 3, '0', 'admin', '2021-03-07 17:11:54', '', NULL, '');
INSERT INTO `sys_post` VALUES (4, 'user', '普通员工', 4, '0', 'admin', '2021-03-07 17:11:54', '', NULL, '');
-- ----------------------------
-- Table structure for sys_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_role`;
CREATE TABLE `sys_role` (
`role_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '角色ID',
`role_name` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '角色名称',
`role_key` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '角色权限字符串',
`role_sort` int(4) NOT NULL COMMENT '显示顺序',
`data_scope` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '1' COMMENT '数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限)',
`menu_check_strictly` tinyint(1) NULL DEFAULT 1 COMMENT '菜单树选择项是否关联显示',
`dept_check_strictly` tinyint(1) NULL DEFAULT 1 COMMENT '部门树选择项是否关联显示',
`status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '角色状态(0正常 1停用)',
`del_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)',
`create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
PRIMARY KEY (`role_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 100 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '角色信息表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_role
-- ----------------------------
INSERT INTO `sys_role` VALUES (1, '超级管理员', 'admin', 1, '1', 1, 1, '0', '0', 'admin', '2021-03-07 17:11:54', '', NULL, '超级管理员');
INSERT INTO `sys_role` VALUES (2, '普通角色', 'common', 2, '2', 1, 1, '0', '0', 'admin', '2021-03-07 17:11:54', 'admin', '2021-03-14 19:50:42', '普通角色');
-- ----------------------------
-- Table structure for sys_role_dept
-- ----------------------------
DROP TABLE IF EXISTS `sys_role_dept`;
CREATE TABLE `sys_role_dept` (
`role_id` bigint(20) NOT NULL COMMENT '角色ID',
`dept_id` bigint(20) NOT NULL COMMENT '部门ID',
PRIMARY KEY (`role_id`, `dept_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '角色和部门关联表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_role_dept
-- ----------------------------
INSERT INTO `sys_role_dept` VALUES (2, 100);
INSERT INTO `sys_role_dept` VALUES (2, 101);
INSERT INTO `sys_role_dept` VALUES (2, 105);
-- ----------------------------
-- Table structure for sys_role_menu
-- ----------------------------
DROP TABLE IF EXISTS `sys_role_menu`;
CREATE TABLE `sys_role_menu` (
`role_id` bigint(20) NOT NULL COMMENT '角色ID',
`menu_id` bigint(20) NOT NULL COMMENT '菜单ID',
PRIMARY KEY (`role_id`, `menu_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '角色和菜单关联表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_role_menu
-- ----------------------------
INSERT INTO `sys_role_menu` VALUES (2, 1);
INSERT INTO `sys_role_menu` VALUES (2, 2);
INSERT INTO `sys_role_menu` VALUES (2, 3);
INSERT INTO `sys_role_menu` VALUES (2, 4);
INSERT INTO `sys_role_menu` VALUES (2, 100);
INSERT INTO `sys_role_menu` VALUES (2, 101);
INSERT INTO `sys_role_menu` VALUES (2, 102);
INSERT INTO `sys_role_menu` VALUES (2, 103);
INSERT INTO `sys_role_menu` VALUES (2, 104);
INSERT INTO `sys_role_menu` VALUES (2, 105);
INSERT INTO `sys_role_menu` VALUES (2, 106);
INSERT INTO `sys_role_menu` VALUES (2, 107);
INSERT INTO `sys_role_menu` VALUES (2, 108);
INSERT INTO `sys_role_menu` VALUES (2, 111);
INSERT INTO `sys_role_menu` VALUES (2, 112);
INSERT INTO `sys_role_menu` VALUES (2, 116);
INSERT INTO `sys_role_menu` VALUES (2, 500);
INSERT INTO `sys_role_menu` VALUES (2, 501);
INSERT INTO `sys_role_menu` VALUES (2, 1001);
INSERT INTO `sys_role_menu` VALUES (2, 1002);
INSERT INTO `sys_role_menu` VALUES (2, 1003);
INSERT INTO `sys_role_menu` VALUES (2, 1004);
INSERT INTO `sys_role_menu` VALUES (2, 1005);
INSERT INTO `sys_role_menu` VALUES (2, 1006);
INSERT INTO `sys_role_menu` VALUES (2, 1007);
INSERT INTO `sys_role_menu` VALUES (2, 1008);
INSERT INTO `sys_role_menu` VALUES (2, 1009);
INSERT INTO `sys_role_menu` VALUES (2, 1010);
INSERT INTO `sys_role_menu` VALUES (2, 1011);
INSERT INTO `sys_role_menu` VALUES (2, 1012);
INSERT INTO `sys_role_menu` VALUES (2, 1013);
INSERT INTO `sys_role_menu` VALUES (2, 1014);
INSERT INTO `sys_role_menu` VALUES (2, 1015);
INSERT INTO `sys_role_menu` VALUES (2, 1016);
INSERT INTO `sys_role_menu` VALUES (2, 1017);
INSERT INTO `sys_role_menu` VALUES (2, 1018);
INSERT INTO `sys_role_menu` VALUES (2, 1019);
INSERT INTO `sys_role_menu` VALUES (2, 1020);
INSERT INTO `sys_role_menu` VALUES (2, 1021);
INSERT INTO `sys_role_menu` VALUES (2, 1022);
INSERT INTO `sys_role_menu` VALUES (2, 1023);
INSERT INTO `sys_role_menu` VALUES (2, 1024);
INSERT INTO `sys_role_menu` VALUES (2, 1025);
INSERT INTO `sys_role_menu` VALUES (2, 1026);
INSERT INTO `sys_role_menu` VALUES (2, 1027);
INSERT INTO `sys_role_menu` VALUES (2, 1028);
INSERT INTO `sys_role_menu` VALUES (2, 1029);
INSERT INTO `sys_role_menu` VALUES (2, 1030);
INSERT INTO `sys_role_menu` VALUES (2, 1031);
INSERT INTO `sys_role_menu` VALUES (2, 1032);
INSERT INTO `sys_role_menu` VALUES (2, 1033);
INSERT INTO `sys_role_menu` VALUES (2, 1034);
INSERT INTO `sys_role_menu` VALUES (2, 1035);
INSERT INTO `sys_role_menu` VALUES (2, 1036);
INSERT INTO `sys_role_menu` VALUES (2, 1037);
INSERT INTO `sys_role_menu` VALUES (2, 1038);
INSERT INTO `sys_role_menu` VALUES (2, 1039);
INSERT INTO `sys_role_menu` VALUES (2, 1040);
INSERT INTO `sys_role_menu` VALUES (2, 1041);
INSERT INTO `sys_role_menu` VALUES (2, 1042);
INSERT INTO `sys_role_menu` VALUES (2, 1043);
INSERT INTO `sys_role_menu` VALUES (2, 1044);
INSERT INTO `sys_role_menu` VALUES (2, 1045);
-- ----------------------------
-- Table structure for sys_user
-- ----------------------------
DROP TABLE IF EXISTS `sys_user`;
CREATE TABLE `sys_user` (
`user_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '用户ID',
`dept_id` bigint(20) NULL DEFAULT NULL COMMENT '部门ID',
`user_name` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '用户账号',
`nick_name` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '用户昵称',
`user_type` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '00' COMMENT '用户类型(00系统用户)',
`email` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '用户邮箱',
`phonenumber` varchar(11) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '手机号码',
`sex` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '用户性别(0男 1女 2未知)',
`avatar` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '头像地址',
`password` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '密码',
`status` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '帐号状态(0正常 1停用)',
`del_flag` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)',
`login_ip` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '最后登录IP',
`login_date` datetime(0) NULL DEFAULT NULL COMMENT '最后登录时间',
`create_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '创建者',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_by` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '更新者',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注',
PRIMARY KEY (`user_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 100 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户信息表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_user
-- ----------------------------
INSERT INTO `sys_user` VALUES (1, 103, 'admin', '若依', '00', 'ry@163.com', '15888888888', '1', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', '2021-03-07 17:11:54', 'admin', '2021-03-07 17:11:54', '', NULL, '管理员');
INSERT INTO `sys_user` VALUES (2, 101, 'ry', '若依', '00', 'ry@qq.com', '15666666666', '1', '', '$2a$10$7JB720yubVSZvUI0rEqK/.VqGOZTH.ulu33dHOiBE8ByOhJIrdAu2', '0', '0', '127.0.0.1', '2021-03-07 17:11:54', 'admin', '2021-03-07 17:11:54', 'admin', '2021-03-14 19:22:46', '测试员');
-- ----------------------------
-- Table structure for sys_user_post
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_post`;
CREATE TABLE `sys_user_post` (
`user_id` bigint(20) NOT NULL COMMENT '用户ID',
`post_id` bigint(20) NOT NULL COMMENT '岗位ID',
PRIMARY KEY (`user_id`, `post_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户与岗位关联表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_user_post
-- ----------------------------
INSERT INTO `sys_user_post` VALUES (1, 1);
INSERT INTO `sys_user_post` VALUES (2, 2);
-- ----------------------------
-- Table structure for sys_user_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_role`;
CREATE TABLE `sys_user_role` (
`user_id` bigint(20) NOT NULL COMMENT '用户ID',
`role_id` bigint(20) NOT NULL COMMENT '角色ID',
PRIMARY KEY (`user_id`, `role_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户和角色关联表' ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of sys_user_role
-- ----------------------------
INSERT INTO `sys_user_role` VALUES (1, 1);
INSERT INTO `sys_user_role` VALUES (2, 2);
SET FOREIGN_KEY_CHECKS = 1;

@ -0,0 +1,112 @@
package cn.sliyun;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.core.exceptions.MybatisPlusException;
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
import com.baomidou.mybatisplus.generator.AutoGenerator;
import com.baomidou.mybatisplus.generator.InjectionConfig;
import com.baomidou.mybatisplus.generator.config.*;
import com.baomidou.mybatisplus.generator.config.rules.NamingStrategy;
import com.baomidou.mybatisplus.generator.engine.FreemarkerTemplateEngine;
import java.util.Scanner;
public class CodeGenerator {
private static String pack = "cn.sliyun";
private static String parent = pack+".api";
private static String moduleName = "";
private static String projectPath = System.getProperty("user.dir") + "/" + moduleName;
/**
* <p>
* 读取控制台内容
* </p>
*/
public static String scanner(String tip) {
Scanner scanner = new Scanner(System.in);
StringBuilder help = new StringBuilder();
help.append("请输入" + tip + ":");
System.out.println(help.toString());
if (scanner.hasNext()) {
String ipt = scanner.next();
if (StringUtils.isNotBlank(ipt)) {
return ipt;
}
}
throw new MybatisPlusException("请输入正确的" + tip + "!");
}
public static void main(String[] args) {
// 代码生成器
AutoGenerator mpg = new AutoGenerator();
// 全局配置
GlobalConfig gc = new GlobalConfig();
// String projectPath = System.getProperty("user.dir");
gc.setOutputDir(projectPath + "/src/main/java/");
// gc.setOutputDir(projectPath);
gc.setAuthor("Enoch");
gc.setOpen(false);
gc.setIdType(IdType.AUTO);
// gc.setSwagger2(true); 实体属性 Swagger2 注解
mpg.setGlobalConfig(gc);
// 数据源配置
DataSourceConfig dsc = new DataSourceConfig();
dsc.setUrl("jdbc:mysql://rm-wz99smt6zjv8tt10x1250109m.mysql.rds.aliyuncs.com:3306/sliyun?characterEncoding=utf8&autoReconnect=true&failOverReadOnly=false");
// dsc.setSchemaName("public");
dsc.setDriverName("com.mysql.cj.jdbc.Driver");
dsc.setUsername("sliyun");
dsc.setPassword("Nf46KD8MCTN3jWKZ");
mpg.setDataSource(dsc);
// 包配置
PackageConfig pc = new PackageConfig();
pc.setModuleName(scanner("模块名"));
pc.setParent(parent);
mpg.setPackageInfo(pc);
// 自定义配置
InjectionConfig cfg = new InjectionConfig() {
@Override
public void initMap() {
// to do nothing
}
};
// 配置模板
TemplateConfig templateConfig = new TemplateConfig();
// 配置自定义输出模板
//指定自定义模板路径,注意不要带上.ftl/.vm, 会根据使用的模板引擎自动识别
// templateConfig.setEntity("templates/entity2.java");
// templateConfig.setService();
// templateConfig.setController();
templateConfig.setXml(null);
mpg.setTemplate(templateConfig);
// 策略配置
StrategyConfig strategy = new StrategyConfig();
strategy.setNaming(NamingStrategy.underline_to_camel);
strategy.setColumnNaming(NamingStrategy.underline_to_camel);
// strategy.setSuperEntityClass("你自己的父类实体,没有就不用设置!");
strategy.setEntityLombokModel(false);
strategy.setRestControllerStyle(true);
// 公共父类
// strategy.setSuperControllerClass("你自己的父类控制器,没有就不用设置!");
// 写于父类中的公共字段
// strategy.setSuperEntityColumns("id");
strategy.setInclude(scanner("表名,多个英文逗号分割").split(","));
strategy.setControllerMappingHyphenStyle(true);
strategy.setTablePrefix("sly_","sys_");
mpg.setStrategy(strategy);
mpg.setTemplateEngine(new FreemarkerTemplateEngine());
mpg.execute();
}
}

@ -0,0 +1,19 @@
package cn.sliyun;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
/**
* 启动程序
*
* @author ruoyi
*/
@SpringBootApplication
public class SLYApplication {
public static void main(String[] args) {
// System.setProperty("spring.devtools.restart.enabled", "false");
SpringApplication.run(SLYApplication.class, args);
}
}

@ -0,0 +1,18 @@
package cn.sliyun;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
/**
* web容器中进行部署
*
* @author ruoyi
*/
public class SLYServletInitializer extends SpringBootServletInitializer
{
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application)
{
return application.sources(SLYApplication.class);
}
}

@ -0,0 +1,43 @@
package cn.sliyun.api.ad.controller;
import cn.sliyun.api.ad.entity.AdEntity;
import cn.sliyun.api.ad.service.impl.AdItemServiceImpl;
import cn.sliyun.common.core.Result;
import org.springframework.web.bind.annotation.*;
import org.springframework.stereotype.Controller;
import javax.annotation.Resource;
/**
* <p>
* 广告表 前端控制器
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@RestController
@RequestMapping("/swipe")
public class AdItemController {
@Resource
private AdItemServiceImpl itemService;
@PostMapping("/create")
public Result create(@RequestBody AdEntity entity) {
return itemService.create(entity);
}
@GetMapping("/list")
public Result list() {
return itemService.getAll();
}
@PostMapping("/delete")
public Result delete(int id) {
return itemService.delete(id);
}
}

@ -0,0 +1,44 @@
package cn.sliyun.api.ad.controller;
import cn.sliyun.api.ad.entity.AdEntity;
import cn.sliyun.api.ad.service.impl.AdItemServiceImpl;
import cn.sliyun.api.ad.service.impl.ItemServiceImpl;
import cn.sliyun.common.core.Result;
import org.springframework.web.bind.annotation.*;
import org.springframework.stereotype.Controller;
import javax.annotation.Resource;
/**
* <p>
* 广告位表 前端控制器
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@RestController
@RequestMapping("/swipe/position")
public class AdPositionController {
@Resource
private AdItemServiceImpl itemService;
@PostMapping("/create")
public Result create(@RequestBody AdEntity entity) {
return itemService.create(entity);
}
@GetMapping("/list")
public Result list() {
return itemService.getAll();
}
@PostMapping("/delete")
public Result delete(int id) {
return itemService.delete(id);
}
}

@ -0,0 +1,51 @@
package cn.sliyun.api.ad.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* Banner表格
* </p>
*
* @author Enoch
* @since 2021-02-21
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class Ad implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键id
*/
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
/**
* banner 名称广告位名称
*/
private String name;
/**
* banner 描述
*/
private String description;
/**
* 创建时间
*/
private LocalDateTime createTime;
/**
* 更新时间
*/
private LocalDateTime updateTime;
}

@ -0,0 +1,55 @@
package cn.sliyun.api.ad.entity;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import javax.validation.Valid;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
@JsonIgnoreProperties(ignoreUnknown = true)
public class AdEntity {
@Min(value = 1,message = "广告位ID不能为空")
public int adId;
@NotBlank(message = "广告位事件类型不能为空")
public String eventType;
@NotBlank(message = "广告位事件不能为空")
public String event;
@NotBlank(message = "广告位封面不能为空")
public String img;
public int getAdId() {
return adId;
}
public void setAdId(int adId) {
this.adId = adId;
}
public String getEventType() {
return eventType;
}
public void setEventType(String eventType) {
this.eventType = eventType;
}
public String getEvent() {
return event;
}
public void setEvent(String event) {
this.event = event;
}
public String getImg() {
return img;
}
public void setImg(String img) {
this.img = img;
}
}

@ -0,0 +1,177 @@
package cn.sliyun.api.ad.entity;
import cn.sliyun.common.utils.AliyunOSSUtil;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.time.format.DateTimeFormatter;
/**
* <p>
* 广告表
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@TableName("sly_ad_item")
public class AdItem implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键id
*/
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
/**
* 广告位ID id
*/
private Integer adId;
/**
* imgage id
*/
@JsonIgnore
private String imgOssFile;
/**
* 广告事件
*/
private String actionEvent;
/**
* 广告事件类型
*/
private String actionType;
/**
* 创建时间
*/
private LocalDateTime createTime;
/**
* 更新时间
*/
@JsonIgnore
private LocalDateTime updateTime;
@TableField(exist = false)
private String imgUrl;
@TableField(exist = false)
private String adPosition = "App 首页Banner";
@TableField(exist = false)
private String eventName = "链接跳转";
@TableField(exist = false)
private String time ;
public void setTime(String time) {
this.time = time;
}
public String getTime() {
DateTimeFormatter dtf2 = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
return dtf2.format(createTime);
}
public String getImgUrl() {
return AliyunOSSUtil.getInstance().getFileUrl(imgOssFile);
}
public void setImgUrl(String imgUrl) {
this.imgUrl = imgUrl;
}
public String getAdPosition() {
return adPosition;
}
public void setAdPosition(String adPosition) {
this.adPosition = adPosition;
}
public String getEventName() {
return eventName;
}
public void setEventName(String eventName) {
this.eventName = eventName;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getAdId() {
return adId;
}
public void setAdId(Integer adId) {
this.adId = adId;
}
public String getImgOssFile() {
return imgOssFile;
}
public void setImgOssFile(String imgOssFile) {
this.imgOssFile = imgOssFile;
}
public String getActionEvent() {
return actionEvent;
}
public void setActionEvent(String actionEvent) {
this.actionEvent = actionEvent;
}
public String getActionType() {
return actionType;
}
public void setActionType(String actionType) {
this.actionType = actionType;
}
public LocalDateTime getCreateTime() {
return createTime;
}
public void setCreateTime(LocalDateTime createTime) {
this.createTime = createTime;
}
public LocalDateTime getUpdateTime() {
return updateTime;
}
public void setUpdateTime(LocalDateTime updateTime) {
this.updateTime = updateTime;
}
@Override
public String toString() {
return "AdItem{" +
"id=" + id +
", adId=" + adId +
", imgOssFile=" + imgOssFile +
", actionEvent=" + actionEvent +
", actionType=" + actionType +
", createTime=" + createTime +
", updateTime=" + updateTime +
"}";
}
}

@ -0,0 +1,94 @@
package cn.sliyun.api.ad.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
/**
* <p>
* 广告位表
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@TableName("sly_ad_position")
public class AdPosition implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键id
*/
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
/**
* 广告位名称
*/
private String name;
/**
* 广告位名称
*/
private String description;
/**
* 创建时间
*/
private LocalDateTime createTime;
/**
* 更新时间
*/
private LocalDateTime updateTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public LocalDateTime getCreateTime() {
return createTime;
}
public void setCreateTime(LocalDateTime createTime) {
this.createTime = createTime;
}
public LocalDateTime getUpdateTime() {
return updateTime;
}
public void setUpdateTime(LocalDateTime updateTime) {
this.updateTime = updateTime;
}
@Override
public String toString() {
return "AdPosition{" +
"id=" + id +
", name=" + name +
", description=" + description +
", createTime=" + createTime +
", updateTime=" + updateTime +
"}";
}
}

@ -0,0 +1,177 @@
package cn.sliyun.api.ad.entity;
import cn.sliyun.common.utils.AliyunOSSUtil;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.beans.Transient;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.time.format.DateTimeFormatter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* Banner item 表格
* </p>
*
* @author Enoch
* @since 2021-02-21
*/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("ad_item")
public class Item implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键id
*/
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
/**
* banner id
*/
private Integer adId;
/**
* image
*/
@JsonIgnore
private String ossFileName;
/**
* event
*/
private String actionEvent;
/**
* 类型
*/
private String actionType;
/**
* 创建时间
*/
@JsonIgnore
private LocalDateTime createTime;
/**
* 更新时间
*/
@JsonIgnore
private LocalDateTime updateTime;
@TableField(exist = false)
private String imgUrl;
@TableField(exist = false)
private String adPosition = "App 首页Banner";
@TableField(exist = false)
private String eventName = "链接跳转";
@TableField(exist = false)
private String time ;
public void setTime(String time) {
this.time = time;
}
public String getTime() {
DateTimeFormatter dtf2 = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
return dtf2.format(createTime);
}
public static long getSerialVersionUID() {
return serialVersionUID;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getAdId() {
return adId;
}
public void setAdId(Integer adId) {
this.adId = adId;
}
public String getOssFileName() {
return ossFileName;
}
public void setOssFileName(String ossFileName) {
this.ossFileName = ossFileName;
}
public String getActionEvent() {
return actionEvent;
}
public void setActionEvent(String actionEvent) {
this.actionEvent = actionEvent;
}
public String getActionType() {
return actionType;
}
public void setActionType(String actionType) {
this.actionType = actionType;
}
public LocalDateTime getCreateTime() {
return createTime;
}
public void setCreateTime(LocalDateTime createTime) {
this.createTime = createTime;
}
public LocalDateTime getUpdateTime() {
return updateTime;
}
public void setUpdateTime(LocalDateTime updateTime) {
this.updateTime = updateTime;
}
public String getImgUrl() {
return AliyunOSSUtil.getInstance().getFileUrl(ossFileName);
}
public void setImgUrl(String imgUrl) {
this.imgUrl = imgUrl;
}
public String getAdPosition() {
return adPosition;
}
public void setAdPosition(String adPosition) {
this.adPosition = adPosition;
}
public String getEventName() {
return eventName;
}
public void setEventName(String eventName) {
this.eventName = eventName;
}
}

@ -0,0 +1,16 @@
package cn.sliyun.api.ad.mapper;
import cn.sliyun.api.ad.entity.AdItem;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 广告表 Mapper 接口
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
public interface AdItemMapper extends BaseMapper<AdItem> {
}

@ -0,0 +1,16 @@
package cn.sliyun.api.ad.mapper;
import cn.sliyun.api.ad.entity.Ad;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* Banner表格 Mapper 接口
* </p>
*
* @author Enoch
* @since 2021-02-21
*/
public interface AdMapper extends BaseMapper<Ad> {
}

@ -0,0 +1,16 @@
package cn.sliyun.api.ad.mapper;
import cn.sliyun.api.ad.entity.AdPosition;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 广告位表 Mapper 接口
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
public interface AdPositionMapper extends BaseMapper<AdPosition> {
}

@ -0,0 +1,16 @@
package cn.sliyun.api.ad.mapper;
import cn.sliyun.api.ad.entity.Item;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* Banner item 表格 Mapper 接口
* </p>
*
* @author Enoch
* @since 2021-02-21
*/
public interface ItemMapper extends BaseMapper<Item> {
}

@ -0,0 +1,16 @@
package cn.sliyun.api.ad.service;
import cn.sliyun.api.ad.entity.AdItem;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 广告表 服务类
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
public interface IAdItemService extends IService<AdItem> {
}

@ -0,0 +1,16 @@
package cn.sliyun.api.ad.service;
import cn.sliyun.api.ad.entity.AdPosition;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 广告位表 服务类
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
public interface IAdPositionService extends IService<AdPosition> {
}

@ -0,0 +1,16 @@
package cn.sliyun.api.ad.service;
import cn.sliyun.api.ad.entity.Ad;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* Banner表格 服务类
* </p>
*
* @author Enoch
* @since 2021-02-21
*/
public interface IAdService extends IService<Ad> {
}

@ -0,0 +1,16 @@
package cn.sliyun.api.ad.service;
import cn.sliyun.api.ad.entity.Item;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* Banner item 表格 服务类
* </p>
*
* @author Enoch
* @since 2021-02-21
*/
public interface IItemService extends IService<Item> {
}

@ -0,0 +1,45 @@
package cn.sliyun.api.ad.service.impl;
import cn.sliyun.api.ad.entity.AdEntity;
import cn.sliyun.api.ad.entity.AdItem;
import cn.sliyun.api.ad.mapper.AdItemMapper;
import cn.sliyun.api.ad.service.IAdItemService;
import cn.sliyun.common.core.Result;
import cn.sliyun.common.core.ResultGenerator;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import java.time.LocalDateTime;
/**
* <p>
* 广告表 服务实现类
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@Service
public class AdItemServiceImpl extends ServiceImpl<AdItemMapper, AdItem> implements IAdItemService {
public Result create(AdEntity adEntity) {
AdItem item = new AdItem();
item.setAdId(adEntity.adId);
item.setActionType(adEntity.eventType);
item.setActionEvent(adEntity.event);
item.setImgOssFile(adEntity.getImg());
item.setCreateTime(LocalDateTime.now());
item.setUpdateTime(LocalDateTime.now());
save(item);
return ResultGenerator.genSuccessResult(item);
}
public Result delete(int id) {
removeById(id);
return ResultGenerator.genSuccessResult();
}
public Result getAll() {
return ResultGenerator.genSuccessResult(list());
}
}

@ -0,0 +1,20 @@
package cn.sliyun.api.ad.service.impl;
import cn.sliyun.api.ad.entity.AdPosition;
import cn.sliyun.api.ad.mapper.AdPositionMapper;
import cn.sliyun.api.ad.service.IAdPositionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 广告位表 服务实现类
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@Service
public class AdPositionServiceImpl extends ServiceImpl<AdPositionMapper, AdPosition> implements IAdPositionService {
}

@ -0,0 +1,20 @@
package cn.sliyun.api.ad.service.impl;
import cn.sliyun.api.ad.entity.Ad;
import cn.sliyun.api.ad.mapper.AdMapper;
import cn.sliyun.api.ad.service.IAdService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* Banner表格 服务实现类
* </p>
*
* @author Enoch
* @since 2021-02-21
*/
@Service
public class AdServiceImpl extends ServiceImpl<AdMapper, Ad> implements IAdService {
}

@ -0,0 +1,46 @@
package cn.sliyun.api.ad.service.impl;
import cn.sliyun.api.ad.entity.AdEntity;
import cn.sliyun.api.ad.entity.Item;
import cn.sliyun.api.ad.mapper.ItemMapper;
import cn.sliyun.api.ad.service.IItemService;
import cn.sliyun.common.core.Result;
import cn.sliyun.common.core.ResultGenerator;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import java.time.LocalDateTime;
/**
* <p>
* Banner item 表格 服务实现类
* </p>
*
* @author Enoch
* @since 2021-02-21
*/
@Service
public class ItemServiceImpl extends ServiceImpl<ItemMapper, Item> implements IItemService {
public Result create(AdEntity adEntity) {
System.out.println(adEntity.img);
Item item = new Item();
item.setAdId(adEntity.adId);
item.setActionType(adEntity.eventType);
item.setActionEvent(adEntity.event);
item.setOssFileName(adEntity.getImg());
item.setCreateTime(LocalDateTime.now());
item.setUpdateTime(LocalDateTime.now());
save(item);
return ResultGenerator.genSuccessResult(item);
}
public Result delete(int id) {
removeById(id);
return ResultGenerator.genSuccessResult();
}
public Result getAll() {
return ResultGenerator.genSuccessResult(list());
}
}

@ -0,0 +1,20 @@
package cn.sliyun.api.admin.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 字典表 前端控制器
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@RestController
@RequestMapping("/admin/dict")
public class DictController {
}

@ -0,0 +1,20 @@
package cn.sliyun.api.admin.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 登录记录 前端控制器
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@RestController
@RequestMapping("/admin/login-log")
public class LoginLogController {
}

@ -0,0 +1,20 @@
package cn.sliyun.api.admin.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 操作日志 前端控制器
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@RestController
@RequestMapping("/admin/operation-log")
public class OperationLogController {
}

@ -0,0 +1,20 @@
package cn.sliyun.api.admin.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 角色和菜单关联表 前端控制器
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@RestController
@RequestMapping("/admin/relation")
public class RelationController {
}

@ -0,0 +1,20 @@
package cn.sliyun.api.admin.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 角色表 前端控制器
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@RestController
@RequestMapping("/admin/role")
public class RoleController {
}

@ -0,0 +1,20 @@
package cn.sliyun.api.admin.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 管理员表 前端控制器
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@RestController
@RequestMapping("/admin/user")
public class UserController {
}

@ -0,0 +1,106 @@
package cn.sliyun.api.admin.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
/**
* <p>
* 字典表
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@TableName("sys_dict")
public class Dict implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键id
*/
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
/**
* 排序
*/
private Integer num;
/**
* 父级字典
*/
private Integer pid;
/**
* 名称
*/
private String name;
/**
* 提示
*/
private String tips;
/**
*
*/
private String code;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getNum() {
return num;
}
public void setNum(Integer num) {
this.num = num;
}
public Integer getPid() {
return pid;
}
public void setPid(Integer pid) {
this.pid = pid;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getTips() {
return tips;
}
public void setTips(String tips) {
this.tips = tips;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
@Override
public String toString() {
return "Dict{" +
"id=" + id +
", num=" + num +
", pid=" + pid +
", name=" + name +
", tips=" + tips +
", code=" + code +
"}";
}
}

@ -0,0 +1,133 @@
package cn.sliyun.api.admin.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
/**
* <p>
* 登录记录
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@TableName("sys_login_log")
public class LoginLog implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
/**
* 日志名称
*/
private String logname;
/**
* 管理员id
*/
private Integer userid;
/**
* 是否执行成功
*/
private String succeed;
/**
* 具体消息
*/
private String message;
/**
* 登录ip
*/
private String ip;
/**
* 创建时间
*/
private LocalDateTime createTime;
/**
* 更新时间
*/
private LocalDateTime updateTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getLogname() {
return logname;
}
public void setLogname(String logname) {
this.logname = logname;
}
public Integer getUserid() {
return userid;
}
public void setUserid(Integer userid) {
this.userid = userid;
}
public String getSucceed() {
return succeed;
}
public void setSucceed(String succeed) {
this.succeed = succeed;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public String getIp() {
return ip;
}
public void setIp(String ip) {
this.ip = ip;
}
public LocalDateTime getCreateTime() {
return createTime;
}
public void setCreateTime(LocalDateTime createTime) {
this.createTime = createTime;
}
public LocalDateTime getUpdateTime() {
return updateTime;
}
public void setUpdateTime(LocalDateTime updateTime) {
this.updateTime = updateTime;
}
@Override
public String toString() {
return "LoginLog{" +
"id=" + id +
", logname=" + logname +
", userid=" + userid +
", succeed=" + succeed +
", message=" + message +
", ip=" + ip +
", createTime=" + createTime +
", updateTime=" + updateTime +
"}";
}
}

@ -0,0 +1,159 @@
package cn.sliyun.api.admin.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
/**
* <p>
* 操作日志
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@TableName("sys_operation_log")
public class OperationLog implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
/**
* 日志类型
*/
private String logtype;
/**
* 日志名称
*/
private String logname;
/**
* 用户id
*/
private Integer userid;
/**
* 类名称
*/
private String classname;
/**
* 方法名称
*/
private String method;
/**
* 是否成功
*/
private String succeed;
/**
* 备注
*/
private String message;
/**
* 创建时间
*/
private LocalDateTime createTime;
/**
* 更新时间
*/
private LocalDateTime updateTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getLogtype() {
return logtype;
}
public void setLogtype(String logtype) {
this.logtype = logtype;
}
public String getLogname() {
return logname;
}
public void setLogname(String logname) {
this.logname = logname;
}
public Integer getUserid() {
return userid;
}
public void setUserid(Integer userid) {
this.userid = userid;
}
public String getClassname() {
return classname;
}
public void setClassname(String classname) {
this.classname = classname;
}
public String getMethod() {
return method;
}
public void setMethod(String method) {
this.method = method;
}
public String getSucceed() {
return succeed;
}
public void setSucceed(String succeed) {
this.succeed = succeed;
}
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
public LocalDateTime getCreateTime() {
return createTime;
}
public void setCreateTime(LocalDateTime createTime) {
this.createTime = createTime;
}
public LocalDateTime getUpdateTime() {
return updateTime;
}
public void setUpdateTime(LocalDateTime updateTime) {
this.updateTime = updateTime;
}
@Override
public String toString() {
return "OperationLog{" +
"id=" + id +
", logtype=" + logtype +
", logname=" + logname +
", userid=" + userid +
", classname=" + classname +
", method=" + method +
", succeed=" + succeed +
", message=" + message +
", createTime=" + createTime +
", updateTime=" + updateTime +
"}";
}
}

@ -0,0 +1,67 @@
package cn.sliyun.api.admin.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
/**
* <p>
* 角色和菜单关联表
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@TableName("sys_relation")
public class Relation implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
/**
* 菜单id
*/
private Long menuid;
/**
* 角色id
*/
private Integer roleid;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Long getMenuid() {
return menuid;
}
public void setMenuid(Long menuid) {
this.menuid = menuid;
}
public Integer getRoleid() {
return roleid;
}
public void setRoleid(Integer roleid) {
this.roleid = roleid;
}
@Override
public String toString() {
return "Relation{" +
"id=" + id +
", menuid=" + menuid +
", roleid=" + roleid +
"}";
}
}

@ -0,0 +1,119 @@
package cn.sliyun.api.admin.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
/**
* <p>
* 角色表
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@TableName("sys_role")
public class Role implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键id
*/
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
/**
* 序号
*/
private Integer num;
/**
* 父角色id
*/
private Integer pid;
/**
* 角色名称
*/
private String name;
/**
* 部门名称
*/
private Integer deptid;
/**
* 提示
*/
private String tips;
/**
* 保留字段(暂时没用
*/
private Integer version;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getNum() {
return num;
}
public void setNum(Integer num) {
this.num = num;
}
public Integer getPid() {
return pid;
}
public void setPid(Integer pid) {
this.pid = pid;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Integer getDeptid() {
return deptid;
}
public void setDeptid(Integer deptid) {
this.deptid = deptid;
}
public String getTips() {
return tips;
}
public void setTips(String tips) {
this.tips = tips;
}
public Integer getVersion() {
return version;
}
public void setVersion(Integer version) {
this.version = version;
}
@Override
public String toString() {
return "Role{" +
"id=" + id +
", num=" + num +
", pid=" + pid +
", name=" + name +
", deptid=" + deptid +
", tips=" + tips +
", version=" + version +
"}";
}
}

@ -0,0 +1,224 @@
package cn.sliyun.api.admin.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
/**
* <p>
* 管理员表
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@TableName("sys_user")
public class User implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键id
*/
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
/**
* 头像
*/
private String avatar;
/**
* 账号
*/
private String account;
/**
* 密码
*/
private String password;
/**
* md5密码盐
*/
private String salt;
/**
* 名字
*/
private String name;
/**
* 生日
*/
private LocalDateTime birthday;
/**
* 性别1 2
*/
private Integer sex;
/**
* 电子邮件
*/
private String email;
/**
* 电话
*/
private String phone;
/**
* 角色id
*/
private String roleid;
/**
* 部门id
*/
private Integer deptid;
/**
* 状态(1启用 2冻结 3删除
*/
private Integer status;
/**
* 创建时间
*/
private LocalDateTime createtime;
/**
* 保留字段
*/
private Integer version;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getAvatar() {
return avatar;
}
public void setAvatar(String avatar) {
this.avatar = avatar;
}
public String getAccount() {
return account;
}
public void setAccount(String account) {
this.account = account;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getSalt() {
return salt;
}
public void setSalt(String salt) {
this.salt = salt;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public LocalDateTime getBirthday() {
return birthday;
}
public void setBirthday(LocalDateTime birthday) {
this.birthday = birthday;
}
public Integer getSex() {
return sex;
}
public void setSex(Integer sex) {
this.sex = sex;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public String getRoleid() {
return roleid;
}
public void setRoleid(String roleid) {
this.roleid = roleid;
}
public Integer getDeptid() {
return deptid;
}
public void setDeptid(Integer deptid) {
this.deptid = deptid;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public LocalDateTime getCreatetime() {
return createtime;
}
public void setCreatetime(LocalDateTime createtime) {
this.createtime = createtime;
}
public Integer getVersion() {
return version;
}
public void setVersion(Integer version) {
this.version = version;
}
@Override
public String toString() {
return "User{" +
"id=" + id +
", avatar=" + avatar +
", account=" + account +
", password=" + password +
", salt=" + salt +
", name=" + name +
", birthday=" + birthday +
", sex=" + sex +
", email=" + email +
", phone=" + phone +
", roleid=" + roleid +
", deptid=" + deptid +
", status=" + status +
", createtime=" + createtime +
", version=" + version +
"}";
}
}

@ -0,0 +1,16 @@
package cn.sliyun.api.admin.mapper;
import cn.sliyun.api.admin.entity.Dict;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 字典表 Mapper 接口
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
public interface DictMapper extends BaseMapper<Dict> {
}

@ -0,0 +1,16 @@
package cn.sliyun.api.admin.mapper;
import cn.sliyun.api.admin.entity.LoginLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 登录记录 Mapper 接口
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
public interface LoginLogMapper extends BaseMapper<LoginLog> {
}

@ -0,0 +1,16 @@
package cn.sliyun.api.admin.mapper;
import cn.sliyun.api.admin.entity.OperationLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 操作日志 Mapper 接口
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
public interface OperationLogMapper extends BaseMapper<OperationLog> {
}

@ -0,0 +1,16 @@
package cn.sliyun.api.admin.mapper;
import cn.sliyun.api.admin.entity.Relation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 角色和菜单关联表 Mapper 接口
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
public interface RelationMapper extends BaseMapper<Relation> {
}

@ -0,0 +1,16 @@
package cn.sliyun.api.admin.mapper;
import cn.sliyun.api.admin.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 角色表 Mapper 接口
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
public interface RoleMapper extends BaseMapper<Role> {
}

@ -0,0 +1,16 @@
package cn.sliyun.api.admin.mapper;
import cn.sliyun.api.admin.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 管理员表 Mapper 接口
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
public interface UserMapper extends BaseMapper<User> {
}

@ -0,0 +1,16 @@
package cn.sliyun.api.admin.service;
import cn.sliyun.api.admin.entity.Dict;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 字典表 服务类
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
public interface IDictService extends IService<Dict> {
}

@ -0,0 +1,16 @@
package cn.sliyun.api.admin.service;
import cn.sliyun.api.admin.entity.LoginLog;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 登录记录 服务类
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
public interface ILoginLogService extends IService<LoginLog> {
}

@ -0,0 +1,16 @@
package cn.sliyun.api.admin.service;
import cn.sliyun.api.admin.entity.OperationLog;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 操作日志 服务类
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
public interface IOperationLogService extends IService<OperationLog> {
}

@ -0,0 +1,16 @@
package cn.sliyun.api.admin.service;
import cn.sliyun.api.admin.entity.Relation;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 角色和菜单关联表 服务类
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
public interface IRelationService extends IService<Relation> {
}

@ -0,0 +1,16 @@
package cn.sliyun.api.admin.service;
import cn.sliyun.api.admin.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 角色表 服务类
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
public interface IRoleService extends IService<Role> {
}

@ -0,0 +1,16 @@
package cn.sliyun.api.admin.service;
import cn.sliyun.api.admin.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 管理员表 服务类
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
public interface IUserService extends IService<User> {
}

@ -0,0 +1,20 @@
package cn.sliyun.api.admin.service.impl;
import cn.sliyun.api.admin.entity.Dict;
import cn.sliyun.api.admin.mapper.DictMapper;
import cn.sliyun.api.admin.service.IDictService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 字典表 服务实现类
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@Service
public class DictServiceImpl extends ServiceImpl<DictMapper, Dict> implements IDictService {
}

@ -0,0 +1,20 @@
package cn.sliyun.api.admin.service.impl;
import cn.sliyun.api.admin.entity.LoginLog;
import cn.sliyun.api.admin.mapper.LoginLogMapper;
import cn.sliyun.api.admin.service.ILoginLogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 登录记录 服务实现类
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@Service
public class LoginLogServiceImpl extends ServiceImpl<LoginLogMapper, LoginLog> implements ILoginLogService {
}

@ -0,0 +1,20 @@
package cn.sliyun.api.admin.service.impl;
import cn.sliyun.api.admin.entity.OperationLog;
import cn.sliyun.api.admin.mapper.OperationLogMapper;
import cn.sliyun.api.admin.service.IOperationLogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 操作日志 服务实现类
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@Service
public class OperationLogServiceImpl extends ServiceImpl<OperationLogMapper, OperationLog> implements IOperationLogService {
}

@ -0,0 +1,20 @@
package cn.sliyun.api.admin.service.impl;
import cn.sliyun.api.admin.entity.Relation;
import cn.sliyun.api.admin.mapper.RelationMapper;
import cn.sliyun.api.admin.service.IRelationService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 角色和菜单关联表 服务实现类
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@Service
public class RelationServiceImpl extends ServiceImpl<RelationMapper, Relation> implements IRelationService {
}

@ -0,0 +1,20 @@
package cn.sliyun.api.admin.service.impl;
import cn.sliyun.api.admin.entity.Role;
import cn.sliyun.api.admin.mapper.RoleMapper;
import cn.sliyun.api.admin.service.IRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 角色表 服务实现类
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements IRoleService {
}

@ -0,0 +1,20 @@
package cn.sliyun.api.admin.service.impl;
import cn.sliyun.api.admin.entity.User;
import cn.sliyun.api.admin.mapper.UserMapper;
import cn.sliyun.api.admin.service.IUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 管理员表 服务实现类
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserService {
}

@ -0,0 +1,30 @@
package cn.sliyun.api.app;
import cn.sliyun.api.app.service.service.impl.AppServiceImpl;
import cn.sliyun.common.core.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
import javax.annotation.Resource;
@RestController
@RequestMapping("/app")
public class AppController {
@Resource
public AppServiceImpl appService;
@PostMapping("/uploadImg")
public Result uploadImg(MultipartFile file) {
return appService.upload(file);
}
}

@ -0,0 +1,33 @@
package cn.sliyun.api.app;
import cn.sliyun.api.app.service.service.impl.AppServiceImpl;
import cn.sliyun.api.app.service.service.impl.DashboardServiceImpl;
import cn.sliyun.common.core.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
import javax.annotation.Resource;
@RestController
@RequestMapping("/console")
public class DashboardController {
@Resource
public DashboardServiceImpl appService;
@GetMapping("/dashboard")
public Result dashboard() {
return appService.dashboard();
}
}

@ -0,0 +1,20 @@
package cn.sliyun.api.app.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* img 表格 前端控制器
* </p>
*
* @author Enoch
* @since 2021-02-21
*/
@RestController
@RequestMapping("/app/beam-img")
public class BeamImgController {
}

@ -0,0 +1,107 @@
package cn.sliyun.api.app.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
* img 表格
* </p>
*
* @author Enoch
* @since 2021-02-21
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class BeamImg implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键id
*/
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
/**
* OSS fileName
*/
private String ossFileName;
/**
* file_md5
*/
private String ossFileMd5;
/**
* 创建人
*/
private String createBy;
/**
* 创建时间
*/
private LocalDateTime createTime;
/**
* 更新时间
*/
private LocalDateTime updateTime;
public static long getSerialVersionUID() {
return serialVersionUID;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getOssFileName() {
return ossFileName;
}
public void setOssFileName(String ossFileName) {
this.ossFileName = ossFileName;
}
public String getOssFileMd5() {
return ossFileMd5;
}
public void setOssFileMd5(String ossFileMd5) {
this.ossFileMd5 = ossFileMd5;
}
public String getCreateBy() {
return createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy;
}
public LocalDateTime getCreateTime() {
return createTime;
}
public void setCreateTime(LocalDateTime createTime) {
this.createTime = createTime;
}
public LocalDateTime getUpdateTime() {
return updateTime;
}
public void setUpdateTime(LocalDateTime updateTime) {
this.updateTime = updateTime;
}
}

@ -0,0 +1,16 @@
package cn.sliyun.api.app.mapper;
import cn.sliyun.api.app.entity.BeamImg;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* img 表格 Mapper 接口
* </p>
*
* @author Enoch
* @since 2021-02-21
*/
public interface BeamImgMapper extends BaseMapper<BeamImg> {
}

@ -0,0 +1,16 @@
package cn.sliyun.api.app.service;
import cn.sliyun.api.app.entity.BeamImg;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* img 表格 服务类
* </p>
*
* @author Enoch
* @since 2021-02-21
*/
public interface IBeamImgService extends IService<BeamImg> {
}

@ -0,0 +1,10 @@
package cn.sliyun.api.app.service.service;
import cn.sliyun.common.core.Result;
import org.springframework.web.multipart.MultipartFile;
public interface IAppService {
Result upload(MultipartFile file);
}

@ -0,0 +1,4 @@
package cn.sliyun.api.app.service.service;
public interface IDashboardService {
}

@ -0,0 +1,23 @@
package cn.sliyun.api.app.service.service.impl;
import cn.sliyun.api.app.service.service.IAppService;
import cn.sliyun.common.utils.AliyunOSSUtil;
import cn.sliyun.common.core.Result;
import cn.sliyun.common.core.ResultGenerator;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
import java.util.HashMap;
import java.util.Map;
@Service
public class AppServiceImpl implements IAppService {
@Override
public Result upload(MultipartFile file) {
String objPath = AliyunOSSUtil.getInstance().uploadImage(file);
return ResultGenerator.genSuccessResult(objPath);
}
}

@ -0,0 +1,105 @@
package cn.sliyun.api.app.service.service.impl;
import cn.sliyun.dotwallet.DotWalletManager;
import cn.sliyun.dotwallet.entity.BlockBean;
import com.alibaba.fastjson.JSON;
import cn.sliyun.api.app.service.service.IDashboardService;
import cn.sliyun.api.member.service.impl.MemberServiceImpl;
import cn.sliyun.api.order.entity.Order;
import cn.sliyun.api.order.service.impl.OrderServiceImpl;
import cn.sliyun.common.core.Result;
import cn.sliyun.common.core.ResultGenerator;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.conditions.query.QueryChainWrapper;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.math.BigDecimal;
import java.time.ZoneOffset;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@Service
public class DashboardServiceImpl implements IDashboardService {
@Resource
private MemberServiceImpl memberService;
@Resource
private OrderServiceImpl orderService;
public Result dashboard() {
Map map = new HashMap();
Map member = new HashMap();
Map order = new HashMap();
Map coinAddress = new HashMap();
Map pay = new HashMap();
Map sales = new HashMap();
member.put("total", "" + memberService.count());
member.put("week", "" + memberService.getBaseMapper().getWeekList());
member.put("today", "" + 10000);
int unpaid = orderService.count(new QueryWrapper<Order>().eq("status", 0));
int success = orderService.count(new QueryWrapper<Order>().ne("status", 0));
order.put("total", "" + orderService.count());
order.put("proportion", success == 0 ? "--%" : (unpaid / success * 100) + "%");
order.put("unpaid", "" + unpaid);
order.put("success", "" + success);
order.put("cancel", "" + orderService.count(new QueryWrapper<Order>().eq("status", 1)));
coinAddress.put("total", "" + 9999);
coinAddress.put("btc", "" + 100);
coinAddress.put("bth", "" + 300);
coinAddress.put("ltc", "" + 909);
QueryWrapper<Order> queryWrapper = new QueryWrapper<>();
queryWrapper.select("sum(total_amount) as totalAmount");
// queryWrapper.ne("status",0);
Map<String, Object> objectMap = orderService.getMap(queryWrapper);
BigDecimal sumCount = new BigDecimal("0.00");
System.out.println("--------:" + JSON.toJSONString(objectMap));
if (null!=objectMap&&objectMap.size() > 0 && null!=objectMap.get("totalAmount")){
sumCount = (BigDecimal) objectMap.get("totalAmount");
}
sales.put("total", "" + sumCount);
sales.put("week", "" + 452);
sales.put("today", "" + 20);
long startTime = 1616924237;
long endTime = System.currentTimeMillis() / 1000;
List<BlockBean> blockList = DotWalletManager.getInstance().getBlockList(startTime, endTime);
double block = 0;
for (int i = 0; i < blockList.size(); i++) {
block = block + blockList.get(i).getRewards();
}
List list = new ArrayList<>();
for (int i = 0; i < 7; i++) {
Map a = new HashMap();
a.put("count", "" + i);
a.put("day", System.currentTimeMillis() / 1000);
list.add(a);
}
pay.put("total", "" + 1000);
pay.put("list", list);
map.put("member", member);
map.put("order", order);
map.put("coinAddress", coinAddress);
map.put("pay", pay);
map.put("sales", sales);
map.put("profit", block);
return ResultGenerator.genSuccessResult(map);
}
}

@ -0,0 +1,20 @@
package cn.sliyun.api.auth.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
import java.util.List;
@RestController
@RequestMapping("/auth")
public class AuthController {
@RequestMapping("/login")
public Object login() {
List list = new ArrayList();
list.add("1");
list.add(2);
return list;
}
}

@ -0,0 +1,86 @@
package cn.sliyun.api.coin.controller;
import cn.sliyun.api.coin.entity.CoinAction;
import cn.sliyun.api.coin.service.impl.CoinServiceImpl;
import cn.sliyun.common.core.Result;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.validation.Valid;
/**
* <p>
* 货币类型表 前端控制器
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@RestController
@RequestMapping("/coin")
public class CoinController {
@Resource
private CoinServiceImpl mCoinServiceImpl;
@PostMapping("/create")
public Result create(@RequestBody @Valid CoinAction action) {
// if (icon != null) {
// try {
// //当前项目下路径
// String realPath = System.getProperty("user.dir") + new String("/beam-system/src/main/resources/" + UPLOAD_PATH_PREFIX);
// System.out.println("-----------上传文件保存的路径【" + realPath + "】-----------");
// //存放上传文件的文件夹
// File folder = new File(realPath);
// System.out.println("-----------存放上传文件的文件夹【" + folder.getAbsolutePath() + "】-----------");
// System.out.println("-----------输出文件夹绝对路径 -- 这里的绝对路径是相当于当前项目的路径而不是“容器”路径【" + folder.getAbsolutePath() + "】-----------");
// if (!folder.isDirectory()) {
// //递归生成文件夹
// folder.mkdirs();
// }
// //获取原始的名字 方法是得到原来的文件名在客户机的文件系统名称
// String oldName = icon.getOriginalFilename();
// System.out.println("-----------文件原始的名字【" + oldName + "】-----------");
// //新命名=随机UUID+原始文件的后缀名
// String newName = "img_coin_" + System.currentTimeMillis() + oldName.substring(oldName.lastIndexOf("."));
// System.out.println("-----------文件要保存后的新名字【" + newName + "】-----------");
// File newFile = new File(folder.getAbsolutePath().replace("\\", "/") + File.separator + newName);
// System.out.println("-----------getAbsolutePath【" + newFile.getAbsolutePath() + "】-----------");
// //将图片保存到static文件夹里
// icon.transferTo(newFile);
// System.out.println("-----------getAbsolutePath【" + newFile.exists() + "/" + newFile.isFile() + "】-----------");
// String filePath = "/images/" + newName;
// System.out.println("icon:" + filePath);
// BeamImg img = new BeamImg();
//// img.setUrl(filePath);
//// img.setDescription("coin create icon");
//// img.setImgMd5("");
//// img.setCreateBy("coin create icon");
//// img.setCreateTime(LocalDateTime.now());
//// img.setUpdateTime(LocalDateTime.now());
// mImgService.save(img);
// return mCoinServiceImpl.create(img.getId(), name, description);
// } catch (Exception e) {
// e.printStackTrace();
// }
// }
return mCoinServiceImpl.create(action);
}
@PostMapping("/edit")
public Result editCoin(@RequestBody CoinAction action) {
return mCoinServiceImpl.edit(action);
}
@PostMapping("/delete")
public Result deleteCoin(@RequestBody CoinAction action) {
return mCoinServiceImpl.delete(action.getId());
}
@GetMapping("/list")
public Result list(@RequestParam(defaultValue = "1") int pageNo,
@RequestParam(defaultValue = "20") int pageSize) {
return mCoinServiceImpl.getList(pageNo, pageSize);
}
}

@ -0,0 +1,46 @@
package cn.sliyun.api.coin.controller;
import cn.sliyun.api.coin.entity.CoinPackage;
import cn.sliyun.api.coin.service.impl.CoinPackageServiceImpl;
import cn.sliyun.common.core.Result;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.validation.Valid;
/**
* <p>
* 算力包 前端控制器
* </p>
*
* @author Enoch
* @since 2021-03-01
*/
@RestController
@RequestMapping("/coin/package")
public class CoinPackageController {
@Resource
private CoinPackageServiceImpl coinPackageService;
@PostMapping("/create")
public Result create(@RequestBody @Valid CoinPackage entity) {
return coinPackageService.create(entity);
}
@PostMapping("/edit")
public Result edit(@RequestBody CoinPackage entity) {
return coinPackageService.edit(entity);
}
@PostMapping("/delete")
public Result delete(@RequestBody CoinPackage entity) {
return coinPackageService.delete(entity.getId());
}
@GetMapping("/list")
public Result list(@RequestParam(required = false ,defaultValue = "0") int coinId) {
return coinPackageService.getList(coinId);
}
}

@ -0,0 +1,34 @@
package cn.sliyun.api.coin.controller;
import cn.sliyun.api.coin.service.impl.CoinPackageServiceImpl;
import cn.sliyun.api.coin.service.impl.CoinPackageUnitServiceImpl;
import cn.sliyun.api.coin.service.impl.CoinServiceImpl;
import cn.sliyun.common.core.Result;
import cn.sliyun.common.core.ResultGenerator;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
/**
* <p>
* 算力包单位 前端控制器
* </p>
*
* @author Enoch
* @since 2021-03-01
*/
@RestController
@RequestMapping("/coin/package/unit")
public class CoinPackageUnitController {
@Resource
private CoinPackageUnitServiceImpl coinPackageService;
@GetMapping("/list")
public Result list() {
return ResultGenerator.genSuccessResult(coinPackageService.list());
}
}

@ -0,0 +1,128 @@
package cn.sliyun.api.coin.entity;
import cn.sliyun.common.utils.AliyunOSSUtil;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.time.LocalDateTime;
import java.io.Serializable;
/**
* <p>
* 货币类型表
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@TableName("sly_coin")
public class Coin implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键id
*/
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
/**
* 英文名称
*/
private String enName;
/**
* 中文名称
*/
private String cnName;
/**
* img name
*/
@JsonIgnore
private String imgOssFile;
/**
* 创建时间
*/
private LocalDateTime createTime;
/**
* 更新时间
*/
private LocalDateTime updateTime;
@TableField(exist = false)
public String icon ;
public String getIcon() {
return AliyunOSSUtil.getInstance().getFileUrl(imgOssFile);
}
public void setIcon(String icon) {
this.icon = icon;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getEnName() {
return enName;
}
public void setEnName(String enName) {
this.enName = enName;
}
public String getCnName() {
return cnName;
}
public void setCnName(String cnName) {
this.cnName = cnName;
}
public String getImgOssFile() {
return imgOssFile;
}
public void setImgOssFile(String imgOssFile) {
this.imgOssFile = imgOssFile;
}
public LocalDateTime getCreateTime() {
return createTime;
}
public void setCreateTime(LocalDateTime createTime) {
this.createTime = createTime;
}
public LocalDateTime getUpdateTime() {
return updateTime;
}
public void setUpdateTime(LocalDateTime updateTime) {
this.updateTime = updateTime;
}
@Override
public String toString() {
return "Coin{" +
"id=" + id +
", enName=" + enName +
", cnName=" + cnName +
", imgOssFile=" + imgOssFile +
", createTime=" + createTime +
", updateTime=" + updateTime +
"}";
}
}

@ -0,0 +1,57 @@
package cn.sliyun.api.coin.entity;
import javax.validation.constraints.NotBlank;
import java.io.File;
public class CoinAction {
private int id;
@NotBlank(message = "货币名称不能为空")
private String cnName;
@NotBlank(message = "货币简写不能为空")
private String enName;
@NotBlank(message = "货币Icon不能为空")
private String imgOssFile;
private String description;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getEnName() {
return enName;
}
public void setEnName(String enName) {
this.enName = enName;
}
public String getCnName() {
return cnName;
}
public void setCnName(String cnName) {
this.cnName = cnName;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public String getImgOssFile() {
return imgOssFile;
}
public void setImgOssFile(String imgOssFile) {
this.imgOssFile = imgOssFile;
}
}

@ -0,0 +1,171 @@
package cn.sliyun.api.coin.entity;
import cn.sliyun.common.utils.AliyunOSSUtil;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
* <p>
* 算力包
* </p>
*
* @author Enoch
* @since 2021-03-01
*/
@TableName("sly_coin_package")
public class CoinPackage implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键id
*/
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 包名称
*/
@NotBlank(message = "算力包名称不能为空")
private String title;
/**
* 单价
*/
@DecimalMin(value = "1", message = "算力包单价必须大0")
@NotNull(message = "算力包单价必须大0")
private BigDecimal price;
/**
* 算力包 单位数量
*/
@NotNull(message = "算力包单位数量不能为空")
private Integer number;
/**
* 最小时间
*/
private Integer duration;
/**
* 算力包单位ID
*/
@NotNull(message = "算力包名单位ID不能为空")
private Long packageUnitId;
/**
* 算力包单位名称
*/
@NotBlank(message = "算力包单位名称不能为空")
private String packageUnitName;
/**
* 创建时间
*/
private LocalDateTime createTime;
/**
* 更新时间
*/
private LocalDateTime updateTime;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public BigDecimal getPrice() {
return price;
}
public void setPrice(BigDecimal price) {
this.price = price;
}
public Long getPackageUnitId() {
return packageUnitId;
}
public void setPackageUnitId(Long packageUnitId) {
this.packageUnitId = packageUnitId;
}
public String getPackageUnitName() {
return packageUnitName;
}
public void setPackageUnitName(String packageUnitName) {
this.packageUnitName = packageUnitName;
}
public LocalDateTime getCreateTime() {
return createTime;
}
public void setCreateTime(LocalDateTime createTime) {
this.createTime = createTime;
}
public LocalDateTime getUpdateTime() {
return updateTime;
}
public void setUpdateTime(LocalDateTime updateTime) {
this.updateTime = updateTime;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public Integer getNumber() {
return number;
}
public void setNumber(Integer number) {
this.number = number;
}
public Integer getDuration() {
return duration;
}
public void setDuration(Integer duration) {
this.duration = duration;
}
@Override
public String toString() {
return "CoinPackage{" +
"id=" + id +
", title='" + title + '\'' +
", price=" + price +
", number=" + number +
", duration=" + duration +
", packageUnitId=" + packageUnitId +
", packageUnitName='" + packageUnitName + '\'' +
", createTime=" + createTime +
", updateTime=" + updateTime +
'}';
}
}

@ -0,0 +1,103 @@
package cn.sliyun.api.coin.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* <p>
* 算力包单位
* </p>
*
* @author Enoch
* @since 2021-03-01
*/
@TableName("sly_coin_package_unit")
public class CoinPackageUnit implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键id
*/
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 单位名称
*/
private String title;
/**
* 备注
*/
private String remarks;
/**
* 创建时间
*/
private LocalDateTime createTime;
/**
* 更新时间
*/
private LocalDateTime updateTime;
public static long getSerialVersionUID() {
return serialVersionUID;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getRemarks() {
return remarks;
}
public void setRemarks(String remarks) {
this.remarks = remarks;
}
public LocalDateTime getCreateTime() {
return createTime;
}
public void setCreateTime(LocalDateTime createTime) {
this.createTime = createTime;
}
public LocalDateTime getUpdateTime() {
return updateTime;
}
public void setUpdateTime(LocalDateTime updateTime) {
this.updateTime = updateTime;
}
@Override
public String toString() {
return "CoinPackageUnit{" +
"id=" + id +
", title='" + title + '\'' +
", remarks='" + remarks + '\'' +
", createTime=" + createTime +
", updateTime=" + updateTime +
'}';
}
}

@ -0,0 +1,16 @@
package cn.sliyun.api.coin.mapper;
import cn.sliyun.api.coin.entity.Coin;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 货币类型表 Mapper 接口
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
public interface CoinMapper extends BaseMapper<Coin> {
}

@ -0,0 +1,29 @@
package cn.sliyun.api.coin.mapper;
import cn.sliyun.api.coin.entity.CoinPackage;
import cn.sliyun.api.member.entity.MemberCoinAddress;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;
/**
* <p>
* 算力包 Mapper 接口
* </p>
*
* @author Enoch
* @since 2021-03-01
*/
public interface CoinPackageMapper extends BaseMapper<CoinPackage> {
/**
* @return
*/
// @Select("SELECT sly_coin_package.*,sly_coin.`cn_name` AS cnName ,sly_coin.`en_name` AS enName ,sly_coin.`img_oss_file` AS imgOssFile FROM sly_coin_package, sly_coin WHERE sly_coin_package.coin_id=sly_coin.id ")
@Select("SELECT sly_coin_package.* FROM sly_coin_package ")
List<CoinPackage> getList();
}

@ -0,0 +1,16 @@
package cn.sliyun.api.coin.mapper;
import cn.sliyun.api.coin.entity.CoinPackageUnit;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* 算力包单位 Mapper 接口
* </p>
*
* @author Enoch
* @since 2021-03-01
*/
public interface CoinPackageUnitMapper extends BaseMapper<CoinPackageUnit> {
}

@ -0,0 +1,16 @@
package cn.sliyun.api.coin.service;
import cn.sliyun.api.coin.entity.CoinPackage;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 算力包 服务类
* </p>
*
* @author Enoch
* @since 2021-03-01
*/
public interface ICoinPackageService extends IService<CoinPackage> {
}

@ -0,0 +1,16 @@
package cn.sliyun.api.coin.service;
import cn.sliyun.api.coin.entity.CoinPackageUnit;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 算力包单位 服务类
* </p>
*
* @author Enoch
* @since 2021-03-01
*/
public interface ICoinPackageUnitService extends IService<CoinPackageUnit> {
}

@ -0,0 +1,16 @@
package cn.sliyun.api.coin.service;
import cn.sliyun.api.coin.entity.Coin;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* <p>
* 货币类型表 服务类
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
public interface ICoinService extends IService<Coin> {
}

@ -0,0 +1,47 @@
package cn.sliyun.api.coin.service.impl;
import com.alibaba.fastjson.JSON;
import cn.sliyun.api.coin.entity.CoinPackage;
import cn.sliyun.api.coin.mapper.CoinPackageMapper;
import cn.sliyun.api.coin.service.ICoinPackageService;
import cn.sliyun.common.core.Result;
import cn.sliyun.common.core.ResultGenerator;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 算力包 服务实现类
* </p>
*
* @author Enoch
* @since 2021-03-01
*/
@Service
public class CoinPackageServiceImpl extends ServiceImpl<CoinPackageMapper, CoinPackage> implements ICoinPackageService {
public Result create(CoinPackage entity) {
System.out.println("create:"+JSON.toJSONString(entity));
save(entity);
return ResultGenerator.genSuccessResult(entity.getId());
}
public Result edit(CoinPackage entity) {
System.out.println("edit:"+JSON.toJSONString(entity));
updateById(entity);
return ResultGenerator.genSuccessResult(entity);
}
public Result delete(long id) {
removeById(id);
return ResultGenerator.genSuccessResult();
}
public Result getList(int coinId) {
return ResultGenerator.genSuccessResult(list());
}
}

@ -0,0 +1,20 @@
package cn.sliyun.api.coin.service.impl;
import cn.sliyun.api.coin.entity.CoinPackageUnit;
import cn.sliyun.api.coin.mapper.CoinPackageUnitMapper;
import cn.sliyun.api.coin.service.ICoinPackageUnitService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 算力包单位 服务实现类
* </p>
*
* @author Enoch
* @since 2021-03-01
*/
@Service
public class CoinPackageUnitServiceImpl extends ServiceImpl<CoinPackageUnitMapper, CoinPackageUnit> implements ICoinPackageUnitService {
}

@ -0,0 +1,74 @@
package cn.sliyun.api.coin.service.impl;
import cn.sliyun.api.coin.entity.Coin;
import cn.sliyun.api.coin.mapper.CoinMapper;
import cn.sliyun.api.coin.service.ICoinService;
import cn.sliyun.api.coin.entity.CoinAction;
import cn.sliyun.common.core.Result;
import cn.sliyun.common.core.ResultGenerator;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
import java.time.LocalDateTime;
import java.util.HashMap;
import java.util.Map;
/**
* <p>
* 货币类型表 服务实现类
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@Service
public class CoinServiceImpl extends ServiceImpl<CoinMapper, Coin> implements ICoinService {
public Result add(CoinAction coinAction) {
Coin coin = new Coin();
BeanUtils.copyProperties(coinAction, coin);
baseMapper.insert(coin);
return ResultGenerator.genSuccessResult();
}
public Result edit(CoinAction coinAction) {
Coin mCoin = baseMapper.selectOne(new QueryWrapper<Coin>().ge("id", coinAction.getId()));
if (mCoin == null) {
return ResultGenerator.genFailResult("货币类型不存在");
}
BeanUtils.copyProperties(coinAction, mCoin);
baseMapper.update(mCoin, new UpdateWrapper<>());
return ResultGenerator.genSuccessResult();
}
public Result delete(int deleteId) {
baseMapper.deleteById(deleteId);
return ResultGenerator.genSuccessResult("删除成功");
}
public Result getList(Integer pageIndex, Integer size) {
Page<Coin> page = new Page<>(pageIndex, size);
Page<Coin> userMyPage = page(page);
Map map = new HashMap();
map.put("count", userMyPage.getTotal());
map.put("page", userMyPage.getCurrent());
map.put("list", userMyPage.getRecords());
return ResultGenerator.genSuccessResult(map);
}
public Result create(CoinAction action) {
Coin coin = new Coin();
coin.setImgOssFile("" + action.getImgOssFile());
coin.setCnName(action.getCnName());
coin.setEnName(action.getEnName());
coin.setCreateTime(LocalDateTime.now());
coin.setUpdateTime(LocalDateTime.now());
baseMapper.insert(coin);
return ResultGenerator.genSuccessResult();
}
}

@ -0,0 +1,46 @@
package cn.sliyun.api.member.controller;
import cn.sliyun.api.member.service.impl.MemberCoinAddressServiceImpl;
import cn.sliyun.api.wallet.service.impl.AddressServiceImpl;
import cn.sliyun.common.core.Result;
import org.springframework.web.bind.annotation.*;
import org.springframework.stereotype.Controller;
import javax.annotation.Resource;
import java.util.HashMap;
/**
* <p>
* 会员货币地址表 前端控制器
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@RestController
@RequestMapping("/address")
public class MemberCoinAddressController {
@Resource
private MemberCoinAddressServiceImpl service;
@GetMapping("/list")
public Result getList() {
return service.getList();
}
@PostMapping("/delete")
public Result create(@RequestBody HashMap<String, Object> map) {
return service.delete((Integer) map.get("id"));
}
}

@ -0,0 +1,21 @@
package cn.sliyun.api.member.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 会员挖矿记录表 前端控制器
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@RestController
@RequestMapping("/member/member-coin-record")
public class MemberCoinRecordController {
}

@ -0,0 +1,74 @@
package cn.sliyun.api.member.controller;
import cn.sliyun.api.member.service.impl.MemberServiceImpl;
import cn.sliyun.api.user.entity.UpdateUserEntity;
import cn.sliyun.api.user.entity.UserActionBean;
import cn.sliyun.api.user.service.impl.BeamUserServiceImpl;
import cn.sliyun.common.core.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.stereotype.Controller;
import javax.annotation.Resource;
import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import java.util.Map;
/**
* <p>
* 会员表 前端控制器
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@RestController
@RequestMapping("/member")
public class MemberController {
@Resource
MemberServiceImpl beamUserService;
@PostMapping("/register")
public Result register(@RequestBody @Valid UserActionBean register) {
return beamUserService.register(register);
}
@PostMapping("/edit")
public Result edit(@RequestHeader @NotBlank String token, @RequestBody @Valid UpdateUserEntity user) {
return beamUserService.edit(token, user);
}
@PostMapping("/updateStatus")
public Result edit(@RequestBody Map<String,Object> params) {
return beamUserService.updateStatus(params);
}
@PostMapping("/delete")
public Result delete(@RequestBody Map<String,Object> params) {
return beamUserService.onDelete(params);
}
@GetMapping("/info")
public Result getInfo(@RequestHeader @NotBlank String token) {
return beamUserService.getInfo(token);
}
@PostMapping("/updatePassword")
public Result updatePassword(@RequestBody @Valid UserActionBean actionBean) {
return beamUserService.updatePassword(actionBean);
}
@GetMapping("/list")
public Result list(@RequestParam(defaultValue = "1") int pageNo,@RequestParam(defaultValue = "20") int pageSize) {
return beamUserService.getList(pageNo, pageSize);
}
}

@ -0,0 +1,21 @@
package cn.sliyun.api.member.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 会员等级表 前端控制器
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@RestController
@RequestMapping("/member/member-level")
public class MemberLevelController {
}

@ -0,0 +1,21 @@
package cn.sliyun.api.member.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 会员登录记录 前端控制器
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@RestController
@RequestMapping("/member/member-login-log")
public class MemberLoginLogController {
}

@ -0,0 +1,21 @@
package cn.sliyun.api.member.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 会员统计信息 前端控制器
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@RestController
@RequestMapping("/member/member-statistics-info")
public class MemberStatisticsInfoController {
}

@ -0,0 +1,278 @@
package cn.sliyun.api.member.entity;
import cn.sliyun.common.utils.AliyunOSSUtil;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.time.LocalDateTime;
import java.io.Serializable;
/**
* <p>
* 会员表
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@TableName("sly_member")
public class Member implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
private String memberSn;
private Long memberLevelId;
/**
* 用户名
*/
private String username;
/**
* 密码
*/
private String password;
/**
* 昵称
*/
private String nickname;
/**
* 头像
*/
@JsonIgnore
private String avatarOssFile;
/**
* 手机号码
*/
private String phone;
/**
* 帐号启用状态:0->禁用1->启用; 2->删除
*/
private Integer status;
/**
* 性别0->未知1->2->
*/
private Integer gender;
/**
* 生日
*/
private LocalDate birthday;
/**
* 所做城市
*/
private String city;
/**
* 个性签名
*/
private String personalizedSignature;
/**
* 用户来源
*/
private Integer sourceType;
/**
* 0 正常 1 删除
*/
private Integer isDelete;
/**
* 注册时间
*/
private LocalDateTime createTime;
/**
* 更新时间
*/
private LocalDateTime updateTime;
@TableField(exist = false)
private String avatar;
public String getAvatar() {
return AliyunOSSUtil.getInstance().getFileUrl(avatarOssFile);
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public static long getSerialVersionUID() {
return serialVersionUID;
}
public String getMemberSn() {
return memberSn;
}
public void setMemberSn(String memberSn) {
this.memberSn = memberSn;
}
public Long getMemberLevelId() {
return memberLevelId;
}
public void setMemberLevelId(Long memberLevelId) {
this.memberLevelId = memberLevelId;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getNickname() {
return nickname;
}
public void setNickname(String nickname) {
this.nickname = nickname;
}
public String getAvatarOssFile() {
return avatarOssFile;
}
public void setAvatarOssFile(String avatarOssFile) {
this.avatarOssFile = avatarOssFile;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public Integer getStatus() {
return status;
}
public void setStatus(Integer status) {
this.status = status;
}
public Integer getGender() {
return gender;
}
public void setGender(Integer gender) {
this.gender = gender;
}
public LocalDate getBirthday() {
return birthday;
}
public void setBirthday(LocalDate birthday) {
this.birthday = birthday;
}
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public String getPersonalizedSignature() {
return personalizedSignature;
}
public void setPersonalizedSignature(String personalizedSignature) {
this.personalizedSignature = personalizedSignature;
}
public Integer getSourceType() {
return sourceType;
}
public void setSourceType(Integer sourceType) {
this.sourceType = sourceType;
}
public LocalDateTime getCreateTime() {
return createTime;
}
public void setCreateTime(LocalDateTime createTime) {
this.createTime = createTime;
}
public LocalDateTime getUpdateTime() {
return updateTime;
}
public void setUpdateTime(LocalDateTime updateTime) {
this.updateTime = updateTime;
}
public Integer getIsDelete() {
return isDelete;
}
public void setIsDelete(Integer isDelete) {
this.isDelete = isDelete;
}
@Override
public String toString() {
return "Member{" +
"id=" + id +
", memberLevelId=" + memberLevelId +
", username=" + username +
", password=" + password +
", nickname=" + nickname +
", avatarOssFile=" + avatarOssFile +
", phone=" + phone +
", status=" + status +
", gender=" + gender +
", birthday=" + birthday +
", city=" + city +
", personalizedSignature=" + personalizedSignature +
", sourceType=" + sourceType +
", createTime=" + createTime +
", updateTime=" + updateTime +
"}";
}
}

@ -0,0 +1,164 @@
package cn.sliyun.api.member.entity;
import cn.sliyun.common.utils.AliyunOSSUtil;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.time.LocalDateTime;
import java.io.Serializable;
/**
* <p>
* 会员货币地址表
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@TableName("sly_member_coin_address")
public class MemberCoinAddress implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 货币ID
*/
private Integer coinId;
/**
* 用户ID
*/
private Integer memberId;
/**
* 钱包地址
*/
private String address;
/**
* coin 描述
*/
private String description;
/**
* 创建时间
*/
private LocalDateTime createTime;
/**
* 更新时间
*/
private LocalDateTime updateTime;
/**
* 英文名称
*/
@TableField(exist = false)
private String enName;
/**
* 中文名称
*/
@TableField(exist = false)
private String cnName;
/**
* img name
*/
@JsonIgnore
private String imgOssFile;
@TableField(exist = false)
public String icon ;
public String getEnName() {
return enName;
}
public void setEnName(String enName) {
this.enName = enName;
}
public String getCnName() {
return cnName;
}
public void setCnName(String cnName) {
this.cnName = cnName;
}
public String getIcon() {
return AliyunOSSUtil.getInstance().getFileUrl(imgOssFile);
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Integer getCoinId() {
return coinId;
}
public void setCoinId(Integer coinId) {
this.coinId = coinId;
}
public Integer getMemberId() {
return memberId;
}
public void setMemberId(Integer memberId) {
this.memberId = memberId;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public LocalDateTime getCreateTime() {
return createTime;
}
public void setCreateTime(LocalDateTime createTime) {
this.createTime = createTime;
}
public LocalDateTime getUpdateTime() {
return updateTime;
}
public void setUpdateTime(LocalDateTime updateTime) {
this.updateTime = updateTime;
}
@Override
public String toString() {
return "MemberCoinAddress{" +
"id=" + id +
", coinId=" + coinId +
", memberId=" + memberId +
", address=" + address +
", description=" + description +
", createTime=" + createTime +
", updateTime=" + updateTime +
"}";
}
}

@ -0,0 +1,157 @@
package cn.sliyun.api.member.entity;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
/**
* <p>
* 会员挖矿记录表
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@TableName("sly_member_coin_record")
public class MemberCoinRecord implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 货币ID
*/
private Integer coinId;
/**
* 用户ID
*/
private Long memberId;
/**
* 钱包地址
*/
private String address;
/**
* 收益
*/
private BigDecimal profit;
/**
* 记录编号
*/
private String recordSn;
/**
* 订单编号
*/
private String orderSn;
/**
* 备注
*/
private String remarks;
/**
* 创建时间
*/
private LocalDateTime createTime;
/**
* 更新时间
*/
private LocalDateTime updateTime;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Integer getCoinId() {
return coinId;
}
public void setCoinId(Integer coinId) {
this.coinId = coinId;
}
public Long getMemberId() {
return memberId;
}
public void setMemberId(Long memberId) {
this.memberId = memberId;
}
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public BigDecimal getProfit() {
return profit;
}
public void setProfit(BigDecimal profit) {
this.profit = profit;
}
public String getRecordSn() {
return recordSn;
}
public void setRecordSn(String recordSn) {
this.recordSn = recordSn;
}
public String getOrderSn() {
return orderSn;
}
public void setOrderSn(String orderSn) {
this.orderSn = orderSn;
}
public String getRemarks() {
return remarks;
}
public void setRemarks(String remarks) {
this.remarks = remarks;
}
public LocalDateTime getCreateTime() {
return createTime;
}
public void setCreateTime(LocalDateTime createTime) {
this.createTime = createTime;
}
public LocalDateTime getUpdateTime() {
return updateTime;
}
public void setUpdateTime(LocalDateTime updateTime) {
this.updateTime = updateTime;
}
@Override
public String toString() {
return "MemberCoinRecord{" +
"id=" + id +
", coinId=" + coinId +
", memberId=" + memberId +
", address=" + address +
", profit=" + profit +
", recordSn=" + recordSn +
", orderSn=" + orderSn +
", remarks=" + remarks +
", createTime=" + createTime +
", updateTime=" + updateTime +
"}";
}
}

@ -0,0 +1,160 @@
package cn.sliyun.api.member.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
/**
* <p>
* 会员等级表
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@TableName("sly_member_level")
public class MemberLevel implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
private String name;
private Integer growthPoint;
/**
* 是否为默认等级0->不是1->
*/
private Integer defaultStatus;
/**
* 是否有签到特权
*/
private Integer priviledgeSignIn;
/**
* 是否有专享活动特权
*/
private Integer priviledgePromotion;
/**
* 是否有会员价格特权
*/
private Integer priviledgeMemberPrice;
/**
* 是否有生日特权
*/
private Integer priviledgeBirthday;
private String note;
/**
* 创建时间
*/
private LocalDateTime createTime;
/**
* 更新时间
*/
private LocalDateTime updateTime;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Integer getGrowthPoint() {
return growthPoint;
}
public void setGrowthPoint(Integer growthPoint) {
this.growthPoint = growthPoint;
}
public Integer getDefaultStatus() {
return defaultStatus;
}
public void setDefaultStatus(Integer defaultStatus) {
this.defaultStatus = defaultStatus;
}
public Integer getPriviledgeSignIn() {
return priviledgeSignIn;
}
public void setPriviledgeSignIn(Integer priviledgeSignIn) {
this.priviledgeSignIn = priviledgeSignIn;
}
public Integer getPriviledgePromotion() {
return priviledgePromotion;
}
public void setPriviledgePromotion(Integer priviledgePromotion) {
this.priviledgePromotion = priviledgePromotion;
}
public Integer getPriviledgeMemberPrice() {
return priviledgeMemberPrice;
}
public void setPriviledgeMemberPrice(Integer priviledgeMemberPrice) {
this.priviledgeMemberPrice = priviledgeMemberPrice;
}
public Integer getPriviledgeBirthday() {
return priviledgeBirthday;
}
public void setPriviledgeBirthday(Integer priviledgeBirthday) {
this.priviledgeBirthday = priviledgeBirthday;
}
public String getNote() {
return note;
}
public void setNote(String note) {
this.note = note;
}
public LocalDateTime getCreateTime() {
return createTime;
}
public void setCreateTime(LocalDateTime createTime) {
this.createTime = createTime;
}
public LocalDateTime getUpdateTime() {
return updateTime;
}
public void setUpdateTime(LocalDateTime updateTime) {
this.updateTime = updateTime;
}
@Override
public String toString() {
return "MemberLevel{" +
"id=" + id +
", name=" + name +
", growthPoint=" + growthPoint +
", defaultStatus=" + defaultStatus +
", priviledgeSignIn=" + priviledgeSignIn +
", priviledgePromotion=" + priviledgePromotion +
", priviledgeMemberPrice=" + priviledgeMemberPrice +
", priviledgeBirthday=" + priviledgeBirthday +
", note=" + note +
", createTime=" + createTime +
", updateTime=" + updateTime +
"}";
}
}

@ -0,0 +1,118 @@
package cn.sliyun.api.member.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
/**
* <p>
* 会员登录记录
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@TableName("sly_member_login_log")
public class MemberLoginLog implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
private Long memberId;
private String ip;
private String city;
/**
* 登录类型0->PC1->android;2->ios;3->小程序
*/
private Integer loginType;
private String province;
/**
* 创建时间
*/
private LocalDateTime createTime;
/**
* 更新时间
*/
private LocalDateTime updateTime;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getMemberId() {
return memberId;
}
public void setMemberId(Long memberId) {
this.memberId = memberId;
}
public String getIp() {
return ip;
}
public void setIp(String ip) {
this.ip = ip;
}
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public Integer getLoginType() {
return loginType;
}
public void setLoginType(Integer loginType) {
this.loginType = loginType;
}
public String getProvince() {
return province;
}
public void setProvince(String province) {
this.province = province;
}
public LocalDateTime getCreateTime() {
return createTime;
}
public void setCreateTime(LocalDateTime createTime) {
this.createTime = createTime;
}
public LocalDateTime getUpdateTime() {
return updateTime;
}
public void setUpdateTime(LocalDateTime updateTime) {
this.updateTime = updateTime;
}
@Override
public String toString() {
return "MemberLoginLog{" +
"id=" + id +
", memberId=" + memberId +
", ip=" + ip +
", city=" + city +
", loginType=" + loginType +
", province=" + province +
", createTime=" + createTime +
", updateTime=" + updateTime +
"}";
}
}

@ -0,0 +1,141 @@
package cn.sliyun.api.member.entity;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
/**
* <p>
* 会员统计信息
* </p>
*
* @author Enoch
* @since 2021-02-24
*/
@TableName("sly_member_statistics_info")
public class MemberStatisticsInfo implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
private Long memberId;
/**
* 累计消费金额
*/
private BigDecimal consumeAmount;
/**
* 订单数量
*/
private Integer orderCount;
/**
* 登录次数
*/
private Integer loginCount;
/**
* 钱包地址数量
*/
private Integer coinAddressCount;
/**
* 最后一次下订单时间
*/
private LocalDateTime recentOrderTime;
/**
* 创建时间
*/
private LocalDateTime createTime;
/**
* 更新时间
*/
private LocalDateTime updateTime;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getMemberId() {
return memberId;
}
public void setMemberId(Long memberId) {
this.memberId = memberId;
}
public BigDecimal getConsumeAmount() {
return consumeAmount;
}
public void setConsumeAmount(BigDecimal consumeAmount) {
this.consumeAmount = consumeAmount;
}
public Integer getOrderCount() {
return orderCount;
}
public void setOrderCount(Integer orderCount) {
this.orderCount = orderCount;
}
public Integer getLoginCount() {
return loginCount;
}
public void setLoginCount(Integer loginCount) {
this.loginCount = loginCount;
}
public Integer getCoinAddressCount() {
return coinAddressCount;
}
public void setCoinAddressCount(Integer coinAddressCount) {
this.coinAddressCount = coinAddressCount;
}
public LocalDateTime getRecentOrderTime() {
return recentOrderTime;
}
public void setRecentOrderTime(LocalDateTime recentOrderTime) {
this.recentOrderTime = recentOrderTime;
}
public LocalDateTime getCreateTime() {
return createTime;
}
public void setCreateTime(LocalDateTime createTime) {
this.createTime = createTime;
}
public LocalDateTime getUpdateTime() {
return updateTime;
}
public void setUpdateTime(LocalDateTime updateTime) {
this.updateTime = updateTime;
}
@Override
public String toString() {
return "MemberStatisticsInfo{" +
"id=" + id +
", memberId=" + memberId +
", consumeAmount=" + consumeAmount +
", orderCount=" + orderCount +
", loginCount=" + loginCount +
", coinAddressCount=" + coinAddressCount +
", recentOrderTime=" + recentOrderTime +
", createTime=" + createTime +
", updateTime=" + updateTime +
"}";
}
}

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save