Initial commit
This commit is contained in:
22
ruoyi-ui/.editorconfig
Normal file
22
ruoyi-ui/.editorconfig
Normal file
@@ -0,0 +1,22 @@
|
||||
# 告诉EditorConfig插件,这是根文件,不用继续往上查找
|
||||
root = true
|
||||
|
||||
# 匹配全部文件
|
||||
[*]
|
||||
# 设置字符集
|
||||
charset = utf-8
|
||||
# 缩进风格,可选space、tab
|
||||
indent_style = space
|
||||
# 缩进的空格数
|
||||
indent_size = 2
|
||||
# 结尾换行符,可选lf、cr、crlf
|
||||
end_of_line = lf
|
||||
# 在文件结尾插入新行
|
||||
insert_final_newline = true
|
||||
# 删除一行中的前后空格
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
# 匹配md结尾的文件
|
||||
[*.md]
|
||||
insert_final_newline = false
|
||||
trim_trailing_whitespace = false
|
||||
16
ruoyi-ui/.env.development
Normal file
16
ruoyi-ui/.env.development
Normal file
@@ -0,0 +1,16 @@
|
||||
# 页面标题
|
||||
VUE_APP_TITLE = 后台管理系统
|
||||
|
||||
# 开发环境配置
|
||||
ENV = 'development'
|
||||
|
||||
# skins管理系统/开发环境
|
||||
VUE_APP_BASE_API = 'http://localhost:8081'
|
||||
# VUE_APP_BASE_API = 'http://101.37.69.189:8080'
|
||||
# VUE_APP_BASE_API = 'http://159.138.29.147:8080'
|
||||
# VUE_APP_BASE_API = 'http://124.71.163.124:8080'
|
||||
# VUE_APP_BASE_API = 'http://api.antcsgo.com/prod-api'
|
||||
# VUE_APP_BASE_API = 'http://188.166.250.170:8080'
|
||||
|
||||
# 路由懒加载
|
||||
VUE_CLI_BABEL_TRANSPILE_MODULES = true
|
||||
9
ruoyi-ui/.env.production
Normal file
9
ruoyi-ui/.env.production
Normal file
@@ -0,0 +1,9 @@
|
||||
# 页面标题
|
||||
VUE_APP_TITLE = WildCS2
|
||||
|
||||
# 生产环境配置
|
||||
ENV = 'production'
|
||||
|
||||
# skins管理系统/生产环境
|
||||
# VUE_APP_BASE_API = 'http://8.160.181.6:8081'
|
||||
VUE_APP_BASE_API = 'https://hou.wildcs2.com'
|
||||
10
ruoyi-ui/.env.staging
Normal file
10
ruoyi-ui/.env.staging
Normal file
@@ -0,0 +1,10 @@
|
||||
# 页面标题
|
||||
VUE_APP_TITLE = 后台管理系统
|
||||
|
||||
NODE_ENV = production
|
||||
|
||||
# 测试环境配置
|
||||
ENV = 'staging'
|
||||
|
||||
# skins管理系统/测试环境
|
||||
VUE_APP_BASE_API = '/stage-api'
|
||||
10
ruoyi-ui/.eslintignore
Normal file
10
ruoyi-ui/.eslintignore
Normal file
@@ -0,0 +1,10 @@
|
||||
# 忽略build目录下类型为js的文件的语法检查
|
||||
build/*.js
|
||||
# 忽略src/assets目录下文件的语法检查
|
||||
src/assets
|
||||
# 忽略public目录下文件的语法检查
|
||||
public
|
||||
# 忽略当前目录下为js的文件的语法检查
|
||||
*.js
|
||||
# 忽略当前目录下为vue的文件的语法检查
|
||||
*.vue
|
||||
199
ruoyi-ui/.eslintrc.js
Normal file
199
ruoyi-ui/.eslintrc.js
Normal file
@@ -0,0 +1,199 @@
|
||||
// ESlint 检查配置
|
||||
module.exports = {
|
||||
root: true,
|
||||
parserOptions: {
|
||||
parser: 'babel-eslint',
|
||||
sourceType: 'module'
|
||||
},
|
||||
env: {
|
||||
browser: true,
|
||||
node: true,
|
||||
es6: true,
|
||||
},
|
||||
extends: ['plugin:vue/recommended', 'eslint:recommended'],
|
||||
|
||||
// add your custom rules here
|
||||
//it is base on https://github.com/vuejs/eslint-config-vue
|
||||
rules: {
|
||||
"vue/max-attributes-per-line": [2, {
|
||||
"singleline": 10,
|
||||
"multiline": {
|
||||
"max": 1,
|
||||
"allowFirstLine": false
|
||||
}
|
||||
}],
|
||||
"vue/singleline-html-element-content-newline": "off",
|
||||
"vue/multiline-html-element-content-newline":"off",
|
||||
"vue/name-property-casing": ["error", "PascalCase"],
|
||||
"vue/no-v-html": "off",
|
||||
'accessor-pairs': 2,
|
||||
'arrow-spacing': [2, {
|
||||
'before': true,
|
||||
'after': true
|
||||
}],
|
||||
'block-spacing': [2, 'always'],
|
||||
'brace-style': [2, '1tbs', {
|
||||
'allowSingleLine': true
|
||||
}],
|
||||
'camelcase': [0, {
|
||||
'properties': 'always'
|
||||
}],
|
||||
'comma-dangle': [2, 'never'],
|
||||
'comma-spacing': [2, {
|
||||
'before': false,
|
||||
'after': true
|
||||
}],
|
||||
'comma-style': [2, 'last'],
|
||||
'constructor-super': 2,
|
||||
'curly': [2, 'multi-line'],
|
||||
'dot-location': [2, 'property'],
|
||||
'eol-last': 2,
|
||||
'eqeqeq': ["error", "always", {"null": "ignore"}],
|
||||
'generator-star-spacing': [2, {
|
||||
'before': true,
|
||||
'after': true
|
||||
}],
|
||||
'handle-callback-err': [2, '^(err|error)$'],
|
||||
'indent': [2, 2, {
|
||||
'SwitchCase': 1
|
||||
}],
|
||||
'jsx-quotes': [2, 'prefer-single'],
|
||||
'key-spacing': [2, {
|
||||
'beforeColon': false,
|
||||
'afterColon': true
|
||||
}],
|
||||
'keyword-spacing': [2, {
|
||||
'before': true,
|
||||
'after': true
|
||||
}],
|
||||
'new-cap': [2, {
|
||||
'newIsCap': true,
|
||||
'capIsNew': false
|
||||
}],
|
||||
'new-parens': 2,
|
||||
'no-array-constructor': 2,
|
||||
'no-caller': 2,
|
||||
'no-console': 'off',
|
||||
'no-class-assign': 2,
|
||||
'no-cond-assign': 2,
|
||||
'no-const-assign': 2,
|
||||
'no-control-regex': 0,
|
||||
'no-delete-var': 2,
|
||||
'no-dupe-args': 2,
|
||||
'no-dupe-class-members': 2,
|
||||
'no-dupe-keys': 2,
|
||||
'no-duplicate-case': 2,
|
||||
'no-empty-character-class': 2,
|
||||
'no-empty-pattern': 2,
|
||||
'no-eval': 2,
|
||||
'no-ex-assign': 2,
|
||||
'no-extend-native': 2,
|
||||
'no-extra-bind': 2,
|
||||
'no-extra-boolean-cast': 2,
|
||||
'no-extra-parens': [2, 'functions'],
|
||||
'no-fallthrough': 2,
|
||||
'no-floating-decimal': 2,
|
||||
'no-func-assign': 2,
|
||||
'no-implied-eval': 2,
|
||||
'no-inner-declarations': [2, 'functions'],
|
||||
'no-invalid-regexp': 2,
|
||||
'no-irregular-whitespace': 2,
|
||||
'no-iterator': 2,
|
||||
'no-label-var': 2,
|
||||
'no-labels': [2, {
|
||||
'allowLoop': false,
|
||||
'allowSwitch': false
|
||||
}],
|
||||
'no-lone-blocks': 2,
|
||||
'no-mixed-spaces-and-tabs': 2,
|
||||
'no-multi-spaces': 2,
|
||||
'no-multi-str': 2,
|
||||
'no-multiple-empty-lines': [2, {
|
||||
'max': 1
|
||||
}],
|
||||
'no-native-reassign': 2,
|
||||
'no-negated-in-lhs': 2,
|
||||
'no-new-object': 2,
|
||||
'no-new-require': 2,
|
||||
'no-new-symbol': 2,
|
||||
'no-new-wrappers': 2,
|
||||
'no-obj-calls': 2,
|
||||
'no-octal': 2,
|
||||
'no-octal-escape': 2,
|
||||
'no-path-concat': 2,
|
||||
'no-proto': 2,
|
||||
'no-redeclare': 2,
|
||||
'no-regex-spaces': 2,
|
||||
'no-return-assign': [2, 'except-parens'],
|
||||
'no-self-assign': 2,
|
||||
'no-self-compare': 2,
|
||||
'no-sequences': 2,
|
||||
'no-shadow-restricted-names': 2,
|
||||
'no-spaced-func': 2,
|
||||
'no-sparse-arrays': 2,
|
||||
'no-this-before-super': 2,
|
||||
'no-throw-literal': 2,
|
||||
'no-trailing-spaces': 2,
|
||||
'no-undef': 2,
|
||||
'no-undef-init': 2,
|
||||
'no-unexpected-multiline': 2,
|
||||
'no-unmodified-loop-condition': 2,
|
||||
'no-unneeded-ternary': [2, {
|
||||
'defaultAssignment': false
|
||||
}],
|
||||
'no-unreachable': 2,
|
||||
'no-unsafe-finally': 2,
|
||||
'no-unused-vars': [2, {
|
||||
'vars': 'all',
|
||||
'args': 'none'
|
||||
}],
|
||||
'no-useless-call': 2,
|
||||
'no-useless-computed-key': 2,
|
||||
'no-useless-constructor': 2,
|
||||
'no-useless-escape': 0,
|
||||
'no-whitespace-before-property': 2,
|
||||
'no-with': 2,
|
||||
'one-var': [2, {
|
||||
'initialized': 'never'
|
||||
}],
|
||||
'operator-linebreak': [2, 'after', {
|
||||
'overrides': {
|
||||
'?': 'before',
|
||||
':': 'before'
|
||||
}
|
||||
}],
|
||||
'padded-blocks': [2, 'never'],
|
||||
'quotes': [2, 'single', {
|
||||
'avoidEscape': true,
|
||||
'allowTemplateLiterals': true
|
||||
}],
|
||||
'semi': [2, 'never'],
|
||||
'semi-spacing': [2, {
|
||||
'before': false,
|
||||
'after': true
|
||||
}],
|
||||
'space-before-blocks': [2, 'always'],
|
||||
'space-before-function-paren': [2, 'never'],
|
||||
'space-in-parens': [2, 'never'],
|
||||
'space-infix-ops': 2,
|
||||
'space-unary-ops': [2, {
|
||||
'words': true,
|
||||
'nonwords': false
|
||||
}],
|
||||
'spaced-comment': [2, 'always', {
|
||||
'markers': ['global', 'globals', 'eslint', 'eslint-disable', '*package', '!', ',']
|
||||
}],
|
||||
'template-curly-spacing': [2, 'never'],
|
||||
'use-isnan': 2,
|
||||
'valid-typeof': 2,
|
||||
'wrap-iife': [2, 'any'],
|
||||
'yield-star-spacing': [2, 'both'],
|
||||
'yoda': [2, 'never'],
|
||||
'prefer-const': 2,
|
||||
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
|
||||
'object-curly-spacing': [2, 'always', {
|
||||
objectsInObjects: false
|
||||
}],
|
||||
'array-bracket-spacing': [2, 'never']
|
||||
}
|
||||
}
|
||||
23
ruoyi-ui/.gitignore
vendored
Normal file
23
ruoyi-ui/.gitignore
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
.DS_Store
|
||||
node_modules/
|
||||
dist/
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
**/*.log
|
||||
|
||||
tests/**/coverage/
|
||||
tests/e2e/reports
|
||||
selenium-debug.log
|
||||
|
||||
# Editor directories and files
|
||||
.idea
|
||||
.vscode
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.local
|
||||
|
||||
package-lock.json
|
||||
yarn.lock
|
||||
3
ruoyi-ui/README.md
Normal file
3
ruoyi-ui/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
node v22.22.0
|
||||
|
||||
npm 10.9.4
|
||||
13
ruoyi-ui/babel.config.js
Normal file
13
ruoyi-ui/babel.config.js
Normal file
@@ -0,0 +1,13 @@
|
||||
module.exports = {
|
||||
presets: [
|
||||
// https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app
|
||||
'@vue/cli-plugin-babel/preset'
|
||||
],
|
||||
'env': {
|
||||
'development': {
|
||||
// babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().
|
||||
// This plugin can significantly increase the speed of hot updates, when you have a large number of pages.
|
||||
'plugins': ['dynamic-import-node']
|
||||
}
|
||||
}
|
||||
}
|
||||
12
ruoyi-ui/bin/build.bat
Normal file
12
ruoyi-ui/bin/build.bat
Normal file
@@ -0,0 +1,12 @@
|
||||
@echo off
|
||||
echo.
|
||||
echo [<5B><>Ϣ] <20><><EFBFBD><EFBFBD>Web<65><62><EFBFBD>̣<EFBFBD><CCA3><EFBFBD><EFBFBD><EFBFBD>dist<73>ļ<EFBFBD><C4BC><EFBFBD>
|
||||
echo.
|
||||
|
||||
%~d0
|
||||
cd %~dp0
|
||||
|
||||
cd ..
|
||||
npm run build:prod
|
||||
|
||||
pause
|
||||
12
ruoyi-ui/bin/package.bat
Normal file
12
ruoyi-ui/bin/package.bat
Normal file
@@ -0,0 +1,12 @@
|
||||
@echo off
|
||||
echo.
|
||||
echo [<5B><>Ϣ] <20><>װWeb<65><62><EFBFBD>̣<EFBFBD><CCA3><EFBFBD><EFBFBD><EFBFBD>node_modules<65>ļ<EFBFBD><C4BC><EFBFBD>
|
||||
echo.
|
||||
|
||||
%~d0
|
||||
cd %~dp0
|
||||
|
||||
cd ..
|
||||
npm install --registry=https://registry.npmmirror.com
|
||||
|
||||
pause
|
||||
12
ruoyi-ui/bin/run-web.bat
Normal file
12
ruoyi-ui/bin/run-web.bat
Normal file
@@ -0,0 +1,12 @@
|
||||
@echo off
|
||||
echo.
|
||||
echo [<5B><>Ϣ] ʹ<><CAB9> Vue CLI <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Web <20><><EFBFBD>̡<EFBFBD>
|
||||
echo.
|
||||
|
||||
%~d0
|
||||
cd %~dp0
|
||||
|
||||
cd ..
|
||||
npm run dev
|
||||
|
||||
pause
|
||||
35
ruoyi-ui/build/index.js
Normal file
35
ruoyi-ui/build/index.js
Normal file
@@ -0,0 +1,35 @@
|
||||
const { run } = require('runjs')
|
||||
const chalk = require('chalk')
|
||||
const config = require('../vue.config.js')
|
||||
const rawArgv = process.argv.slice(2)
|
||||
const args = rawArgv.join(' ')
|
||||
|
||||
if (process.env.npm_config_preview || rawArgv.includes('--preview')) {
|
||||
const report = rawArgv.includes('--report')
|
||||
|
||||
run(`vue-cli-service build ${args}`)
|
||||
|
||||
const port = 9526
|
||||
const publicPath = config.publicPath
|
||||
|
||||
var connect = require('connect')
|
||||
var serveStatic = require('serve-static')
|
||||
const app = connect()
|
||||
|
||||
app.use(
|
||||
publicPath,
|
||||
serveStatic('./dist', {
|
||||
index: ['index.html', '/']
|
||||
})
|
||||
)
|
||||
|
||||
app.listen(port, function () {
|
||||
console.log(chalk.green(`> Preview at http://localhost:${port}${publicPath}`))
|
||||
if (report) {
|
||||
console.log(chalk.green(`> Report at http://localhost:${port}${publicPath}report.html`))
|
||||
}
|
||||
|
||||
})
|
||||
} else {
|
||||
run(`vue-cli-service build ${args}`)
|
||||
}
|
||||
51
ruoyi-ui/main.py
Normal file
51
ruoyi-ui/main.py
Normal file
@@ -0,0 +1,51 @@
|
||||
tables = [
|
||||
"game_sugar_record",
|
||||
"game_sugar_user",
|
||||
"game_wheel_round_bet",
|
||||
"game_wheel_user",
|
||||
"tt_announcement_read",
|
||||
"tt_attendance_record",
|
||||
"tt_bonus_receive_record",
|
||||
"tt_box_records",
|
||||
"tt_commission_record",
|
||||
"tt_delivery_record",
|
||||
"tt_exponent_user",
|
||||
"tt_exponent_user_box",
|
||||
"tt_fight",
|
||||
"tt_fight_user",
|
||||
"tt_notice",
|
||||
"tt_order",
|
||||
"tt_promotion_record",
|
||||
"tt_recharge_record",
|
||||
"tt_red_packet",
|
||||
"tt_red_packet_record",
|
||||
"tt_roll",
|
||||
"tt_roll_user",
|
||||
"tt_task_center_user",
|
||||
"tt_time_roll_user",
|
||||
"tt_upgrade_record",
|
||||
"tt_user_blend_ercash",
|
||||
"tt_welfare_record",
|
||||
"tt_recharge_record",
|
||||
"game_sugar_win",
|
||||
"game_wheel_round",
|
||||
"tt_recharge_card",
|
||||
]
|
||||
|
||||
|
||||
def clear_data():
|
||||
for table in tables:
|
||||
print(
|
||||
f"""CREATE TABLE {table}_new LIKE {table};
|
||||
RENAME TABLE {table} TO {table}_old, {table}_new TO {table};"""
|
||||
)
|
||||
|
||||
|
||||
def clear():
|
||||
for table in tables:
|
||||
print(f"DROP TABLE IF EXISTS {table}_old;")
|
||||
print(f"DROP TABLE IF EXISTS {table}_new;")
|
||||
|
||||
|
||||
# clear()
|
||||
clear_data()
|
||||
91
ruoyi-ui/package.json
Normal file
91
ruoyi-ui/package.json
Normal file
@@ -0,0 +1,91 @@
|
||||
{
|
||||
"name": "ruoyi",
|
||||
"version": "3.8.6",
|
||||
"description": "管理系统",
|
||||
"author": "linh",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"dev": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",
|
||||
"build:prod": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
|
||||
"build:stage": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build --mode staging",
|
||||
"build:test": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build --mode test",
|
||||
"preview": "set NODE_OPTIONS=--openssl-legacy-provider && node build/index.js --preview",
|
||||
"lint": "eslint --ext .js,.vue src"
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "lint-staged"
|
||||
}
|
||||
},
|
||||
"lint-staged": {
|
||||
"src/**/*.{js,vue}": [
|
||||
"eslint --fix",
|
||||
"git add"
|
||||
]
|
||||
},
|
||||
"keywords": [
|
||||
"vue",
|
||||
"admin",
|
||||
"dashboard",
|
||||
"element-ui",
|
||||
"boilerplate",
|
||||
"admin-template",
|
||||
"management-system"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://gitee.com/y_project/RuoYi-Vue.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"@riophae/vue-treeselect": "0.4.0",
|
||||
"axios": "0.24.0",
|
||||
"clipboard": "2.0.8",
|
||||
"core-js": "3.25.3",
|
||||
"echarts": "5.4.0",
|
||||
"element-ui": "2.15.13",
|
||||
"file-saver": "2.0.5",
|
||||
"fuse.js": "6.4.3",
|
||||
"highlight.js": "9.18.5",
|
||||
"js-beautify": "1.13.0",
|
||||
"js-cookie": "3.0.1",
|
||||
"jsencrypt": "3.0.0-rc.1",
|
||||
"nprogress": "0.2.0",
|
||||
"quill": "1.3.7",
|
||||
"screenfull": "5.0.2",
|
||||
"sortablejs": "1.10.2",
|
||||
"vue": "2.6.12",
|
||||
"vue-count-to": "1.0.13",
|
||||
"vue-cropper": "0.5.5",
|
||||
"vue-meta": "2.4.0",
|
||||
"vue-router": "3.4.9",
|
||||
"vuedraggable": "2.24.3",
|
||||
"vuex": "3.6.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/cli-plugin-babel": "4.4.6",
|
||||
"@vue/cli-plugin-eslint": "4.4.6",
|
||||
"@vue/cli-service": "4.4.6",
|
||||
"babel-eslint": "10.1.0",
|
||||
"babel-plugin-dynamic-import-node": "2.3.3",
|
||||
"chalk": "4.1.0",
|
||||
"compression-webpack-plugin": "5.0.2",
|
||||
"connect": "3.6.6",
|
||||
"eslint": "7.15.0",
|
||||
"eslint-plugin-vue": "7.2.0",
|
||||
"lint-staged": "10.5.3",
|
||||
"runjs": "4.4.2",
|
||||
"sass": "1.32.13",
|
||||
"sass-loader": "10.1.1",
|
||||
"script-ext-html-webpack-plugin": "2.1.5",
|
||||
"svg-sprite-loader": "5.1.1",
|
||||
"vue-template-compiler": "2.6.12"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8.9",
|
||||
"npm": ">= 3.0.0"
|
||||
},
|
||||
"browserslist": [
|
||||
"> 1%",
|
||||
"last 2 versions"
|
||||
]
|
||||
}
|
||||
BIN
ruoyi-ui/public/favicon.ico
Normal file
BIN
ruoyi-ui/public/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 5.5 KiB |
46
ruoyi-ui/public/html/ie.html
Normal file
46
ruoyi-ui/public/html/ie.html
Normal file
File diff suppressed because one or more lines are too long
208
ruoyi-ui/public/index.html
Normal file
208
ruoyi-ui/public/index.html
Normal file
@@ -0,0 +1,208 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
||||
<title><%= webpackConfig.name %></title>
|
||||
<!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]-->
|
||||
<style>
|
||||
html,
|
||||
body,
|
||||
#app {
|
||||
height: 100%;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
}
|
||||
.chromeframe {
|
||||
margin: 0.2em 0;
|
||||
background: #ccc;
|
||||
color: #000;
|
||||
padding: 0.2em 0;
|
||||
}
|
||||
|
||||
#loader-wrapper {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 999999;
|
||||
}
|
||||
|
||||
#loader {
|
||||
display: block;
|
||||
position: relative;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
margin: -75px 0 0 -75px;
|
||||
border-radius: 50%;
|
||||
border: 3px solid transparent;
|
||||
border-top-color: #FFF;
|
||||
-webkit-animation: spin 2s linear infinite;
|
||||
-ms-animation: spin 2s linear infinite;
|
||||
-moz-animation: spin 2s linear infinite;
|
||||
-o-animation: spin 2s linear infinite;
|
||||
animation: spin 2s linear infinite;
|
||||
z-index: 1001;
|
||||
}
|
||||
|
||||
#loader:before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
left: 5px;
|
||||
right: 5px;
|
||||
bottom: 5px;
|
||||
border-radius: 50%;
|
||||
border: 3px solid transparent;
|
||||
border-top-color: #FFF;
|
||||
-webkit-animation: spin 3s linear infinite;
|
||||
-moz-animation: spin 3s linear infinite;
|
||||
-o-animation: spin 3s linear infinite;
|
||||
-ms-animation: spin 3s linear infinite;
|
||||
animation: spin 3s linear infinite;
|
||||
}
|
||||
|
||||
#loader:after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 15px;
|
||||
left: 15px;
|
||||
right: 15px;
|
||||
bottom: 15px;
|
||||
border-radius: 50%;
|
||||
border: 3px solid transparent;
|
||||
border-top-color: #FFF;
|
||||
-moz-animation: spin 1.5s linear infinite;
|
||||
-o-animation: spin 1.5s linear infinite;
|
||||
-ms-animation: spin 1.5s linear infinite;
|
||||
-webkit-animation: spin 1.5s linear infinite;
|
||||
animation: spin 1.5s linear infinite;
|
||||
}
|
||||
|
||||
|
||||
@-webkit-keyframes spin {
|
||||
0% {
|
||||
-webkit-transform: rotate(0deg);
|
||||
-ms-transform: rotate(0deg);
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: rotate(360deg);
|
||||
-ms-transform: rotate(360deg);
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
0% {
|
||||
-webkit-transform: rotate(0deg);
|
||||
-ms-transform: rotate(0deg);
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
100% {
|
||||
-webkit-transform: rotate(360deg);
|
||||
-ms-transform: rotate(360deg);
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#loader-wrapper .loader-section {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
width: 51%;
|
||||
height: 100%;
|
||||
background: #7171C6;
|
||||
z-index: 1000;
|
||||
-webkit-transform: translateX(0);
|
||||
-ms-transform: translateX(0);
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
#loader-wrapper .loader-section.section-left {
|
||||
left: 0;
|
||||
}
|
||||
|
||||
#loader-wrapper .loader-section.section-right {
|
||||
right: 0;
|
||||
}
|
||||
|
||||
|
||||
.loaded #loader-wrapper .loader-section.section-left {
|
||||
-webkit-transform: translateX(-100%);
|
||||
-ms-transform: translateX(-100%);
|
||||
transform: translateX(-100%);
|
||||
-webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
|
||||
transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
|
||||
}
|
||||
|
||||
.loaded #loader-wrapper .loader-section.section-right {
|
||||
-webkit-transform: translateX(100%);
|
||||
-ms-transform: translateX(100%);
|
||||
transform: translateX(100%);
|
||||
-webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
|
||||
transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
|
||||
}
|
||||
|
||||
.loaded #loader {
|
||||
opacity: 0;
|
||||
-webkit-transition: all 0.3s ease-out;
|
||||
transition: all 0.3s ease-out;
|
||||
}
|
||||
|
||||
.loaded #loader-wrapper {
|
||||
visibility: hidden;
|
||||
-webkit-transform: translateY(-100%);
|
||||
-ms-transform: translateY(-100%);
|
||||
transform: translateY(-100%);
|
||||
-webkit-transition: all 0.3s 1s ease-out;
|
||||
transition: all 0.3s 1s ease-out;
|
||||
}
|
||||
|
||||
.no-js #loader-wrapper {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.no-js h1 {
|
||||
color: #222222;
|
||||
}
|
||||
|
||||
#loader-wrapper .load_title {
|
||||
font-family: 'Open Sans';
|
||||
color: #FFF;
|
||||
font-size: 19px;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
z-index: 9999999999999;
|
||||
position: absolute;
|
||||
top: 60%;
|
||||
opacity: 1;
|
||||
line-height: 30px;
|
||||
}
|
||||
|
||||
#loader-wrapper .load_title span {
|
||||
font-weight: normal;
|
||||
font-style: italic;
|
||||
font-size: 13px;
|
||||
color: #FFF;
|
||||
opacity: 0.5;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
<div id="loader-wrapper">
|
||||
<div id="loader"></div>
|
||||
<div class="loader-section section-left"></div>
|
||||
<div class="loader-section section-right"></div>
|
||||
<div class="load_title">正在加载系统资源,请耐心等待</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
2
ruoyi-ui/public/robots.txt
Normal file
2
ruoyi-ui/public/robots.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
User-agent: *
|
||||
Disallow: /
|
||||
19
ruoyi-ui/recover.py
Normal file
19
ruoyi-ui/recover.py
Normal file
@@ -0,0 +1,19 @@
|
||||
tables = [
|
||||
"tt_box",
|
||||
"tt_box_open_chance",
|
||||
"tt_box_ornaments",
|
||||
"tt_box_records",
|
||||
"tt_ornament",
|
||||
"tt_upgrade_fail_ornaments",
|
||||
"tt_upgrade_ornaments",
|
||||
"tt_upgrade_record",
|
||||
"tt_roll",
|
||||
"tt_roll_jackpot",
|
||||
"tt_roll_jackpot_ornaments",
|
||||
"tt_roll_user_prize"
|
||||
]
|
||||
|
||||
for table in tables:
|
||||
print(f"""RENAME TABLE {table} TO {table}_new, {table}_old TO {table};""")
|
||||
|
||||
|
||||
0
ruoyi-ui/restapi/admin_index.http
Normal file
0
ruoyi-ui/restapi/admin_index.http
Normal file
89
ruoyi-ui/restapi/admin_request.http
Normal file
89
ruoyi-ui/restapi/admin_request.http
Normal file
@@ -0,0 +1,89 @@
|
||||
POST http://localhost:8081/login HTTP/1.1
|
||||
Accept: */*
|
||||
Accept-Encoding: gzip, deflate
|
||||
Accept-Language: zh-CN,zh;q=0.9
|
||||
Cache-Control: no-cache
|
||||
Connection: keep-alive
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
Host: 154.12.94.98:8081
|
||||
Origin: http://154.12.94.98:10002
|
||||
Pragma: no-cache
|
||||
Referer: http://154.12.94.98:10002/
|
||||
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 18_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Mobile/15E148 Safari/604.1
|
||||
|
||||
{"username":"admin","password":"123456"}
|
||||
|
||||
|
||||
### 生成账号
|
||||
GET http://localhost:8081/admin/user/generateAccountByPhoneNum?phoneNum=13214201158&password=123456789 HTTP/1.1
|
||||
Accept: */*
|
||||
Accept-Language: zh-CN,zh;q=0.9
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjliMTY3MDdmLTAzZmYtNGQ4Zi05MjkzLTlkZWM0ZjgwNTVmYSJ9.CXeQ-IJKY3GK7aL2gQBOSr2NfUuLSUPsqV0mW7F-eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImJjYzhiYjc3LWU4OGQtNDM0Ny1iODAyLTNjMWUwNmQ0NDBmZSJ9.5TDTp1_hED9A6Gg177FZ-CY655LeyTzPjAjOYo5cqg79odNmH5GAs0JNkaF8iT7o8BnDgS4vpt8Ikchp8YfZGA
|
||||
Cache-Control: no-cache
|
||||
Connection: keep-alive
|
||||
Origin: http://154.12.94.98:10002
|
||||
Pragma: no-cache'
|
||||
Referer: http://154.12.94.98:10002/
|
||||
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 18_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Mobile/15E148 Safari/604.1
|
||||
|
||||
|
||||
###
|
||||
|
||||
GET http://localhost:8081/admin/sugar/user/list?pageNum=1&pageSize=10&userId=2 HTTP/1.1
|
||||
Accept: */*
|
||||
Accept-Language: zh-CN,zh;q=0.9
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjliMTY3MDdmLTAzZmYtNGQ4Zi05MjkzLTlkZWM0ZjgwNTVmYSJ9.CXeQ-IJKY3GK7aL2gQBOSr2NfUuLSUPsqV0mW7F-042BGqOPWBCwKFGukNCQIjqYB6aDcYtIhO0e8pzUZJp9bA
|
||||
Cache-Control: no-cache
|
||||
Connection: keep-alive
|
||||
Origin: http://154.12.94.98:10002
|
||||
Pragma: no-cache'
|
||||
Referer: http://154.12.94.98:10002/
|
||||
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 18_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Mobile/15E148 Safari/604.1
|
||||
|
||||
###
|
||||
|
||||
GET http://localhost:8081/admin/sugar/gameconfig HTTP/1.1
|
||||
Accept: */*
|
||||
Accept-Language: zh-CN,zh;q=0.9
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjliMTY3MDdmLTAzZmYtNGQ4Zi05MjkzLTlkZWM0ZjgwNTVmYSJ9.CXeQ-IJKY3GK7aL2gQBOSr2NfUuLSUPsqV0mW7F-042BGqOPWBCwKFGukNCQIjqYB6aDcYtIhO0e8pzUZJp9bA
|
||||
Cache-Control: no-cache
|
||||
Connection: keep-alive
|
||||
Origin: http://154.12.94.98:10002
|
||||
Pragma: no-cache'
|
||||
Referer: http://154.12.94.98:10002/
|
||||
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 18_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Mobile/15E148 Safari/604.1
|
||||
|
||||
###
|
||||
POST http://localhost:8081/admin/sugar/gameconfig HTTP/1.1
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
Accept: */*
|
||||
Accept-Language: zh-CN,zh;q=0.9
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjliMTY3MDdmLTAzZmYtNGQ4Zi05MjkzLTlkZWM0ZjgwNTVmYSJ9.CXeQ-IJKY3GK7aL2gQBOSr2NfUuLSUPsqV0mW7F-042BGqOPWBCwKFGukNCQIjqYB6aDcYtIhO0e8pzUZJp9bA
|
||||
Cache-Control: no-cache
|
||||
Connection: keep-alive
|
||||
Origin: http://154.12.94.98:10002
|
||||
Pragma: no-cache'
|
||||
Referer: http://154.12.94.98:10002/
|
||||
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 18_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Mobile/15E148 Safari/604.1
|
||||
|
||||
{
|
||||
"defaultAwardPool": 10000.0,
|
||||
"jpPercent": [
|
||||
5,
|
||||
100
|
||||
],
|
||||
"rtp": 0.80,
|
||||
"minProfit": 0.3
|
||||
}
|
||||
|
||||
###
|
||||
GET http://localhost:8081/admin/sugar/dailywin/list?endDate=2026-03-30T00:00:00 HTTP/1.1
|
||||
Accept: */*
|
||||
Accept-Language: zh-CN,zh;q=0.9
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjliMTY3MDdmLTAzZmYtNGQ4Zi05MjkzLTlkZWM0ZjgwNTVmYSJ9.CXeQ-IJKY3GK7aL2gQBOSr2NfUuLSUPsqV0mW7F-eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImJjYzhiYjc3LWU4OGQtNDM0Ny1iODAyLTNjMWUwNmQ0NDBmZSJ9.5TDTp1_hED9A6Gg177FZ-CY655LeyTzPjAjOYo5cqg79odNmH5GAs0JNkaF8iT7o8BnDgS4vpt8Ikchp8YfZGA
|
||||
Cache-Control: no-cache
|
||||
Connection: keep-alive
|
||||
Origin: http://154.12.94.98:10002
|
||||
Pragma: no-cache'
|
||||
Referer: http://154.12.94.98:10002/
|
||||
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 18_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Mobile/15E148 Safari/604.1
|
||||
36
ruoyi-ui/restapi/admin_sugar_api.http
Normal file
36
ruoyi-ui/restapi/admin_sugar_api.http
Normal file
@@ -0,0 +1,36 @@
|
||||
POST http://localhost:8081/login HTTP/1.1
|
||||
Accept: */*
|
||||
Accept-Encoding: gzip, deflate
|
||||
Accept-Language: zh-CN,zh;q=0.9
|
||||
Cache-Control: no-cache
|
||||
Connection: keep-alive
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
Host: 154.12.94.98:8081
|
||||
Origin: http://154.12.94.98:10002
|
||||
Pragma: no-cache
|
||||
Referer: http://154.12.94.98:10002/
|
||||
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 18_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Mobile/15E148 Safari/604.1
|
||||
|
||||
{"username":"admin","password":"123456"}
|
||||
|
||||
|
||||
### 获取临时结果列表
|
||||
GET http://localhost:8081/admin/sugar/mockresult/list?uid=11 HTTP/1.1
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjliMTY3MDdmLTAzZmYtNGQ4Zi05MjkzLTlkZWM0ZjgwNTVmYSJ9.CXeQ-IJKY3GK7aL2gQBOSr2NfUuLSUPsqV0mW7F-eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImJjYzhiYjc3LWU4OGQtNDM0Ny1iODAyLTNjMWUwNmQ0NDBmZSJ9.5TDTp1_hED9A6Gg177FZ-CY655LeyTzPjAjOYo5cqg79odNmH5GAs0JNkaF8iT7o8BnDgS4vpt8Ikchp8YfZGA
|
||||
|
||||
### 生成临时结果列表
|
||||
POST http://localhost:8081/admin/sugar/mockresult/list HTTP/1.1
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjliMTY3MDdmLTAzZmYtNGQ4Zi05MjkzLTlkZWM0ZjgwNTVmYSJ9.CXeQ-IJKY3GK7aL2gQBOSr2NfUuLSUPsqV0mW7F-eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImJjYzhiYjc3LWU4OGQtNDM0Ny1iODAyLTNjMWUwNmQ0NDBmZSJ9.5TDTp1_hED9A6Gg177FZ-CY655LeyTzPjAjOYo5cqg79odNmH5GAs0JNkaF8iT7o8BnDgS4vpt8Ikchp8YfZGA
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
|
||||
{
|
||||
"uid": 11,
|
||||
"normalScores": [100,90,80],
|
||||
"freeScores": [100,90],
|
||||
"superScores": [100,90,800]
|
||||
}
|
||||
|
||||
### 获取玩家记录
|
||||
|
||||
GET http://localhost:8081/admin/sugar/user/record/list?uid=2&startTime=2026-04-02%2009:40:00 HTTP/1.1
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjliMTY3MDdmLTAzZmYtNGQ4Zi05MjkzLTlkZWM0ZjgwNTVmYSJ9.CXeQ-IJKY3GK7aL2gQBOSr2NfUuLSUPsqV0mW7F-eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImJjYzhiYjc3LWU4OGQtNDM0Ny1iODAyLTNjMWUwNmQ0NDBmZSJ9.5TDTp1_hED9A6Gg177FZ-CY655LeyTzPjAjOYo5cqg79odNmH5GAs0JNkaF8iT7o8BnDgS4vpt8Ikchp8YfZGA
|
||||
26
ruoyi-ui/restapi/admin_wheel_api.http
Normal file
26
ruoyi-ui/restapi/admin_wheel_api.http
Normal file
@@ -0,0 +1,26 @@
|
||||
POST http://localhost:8081/login HTTP/1.1
|
||||
Accept: */*
|
||||
Accept-Encoding: gzip, deflate
|
||||
Accept-Language: zh-CN,zh;q=0.9
|
||||
Cache-Control: no-cache
|
||||
Connection: keep-alive
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
Host: 154.12.94.98:8081
|
||||
Origin: http://154.12.94.98:10002
|
||||
Pragma: no-cache
|
||||
Referer: http://154.12.94.98:10002/
|
||||
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 18_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.5 Mobile/15E148 Safari/604.1
|
||||
|
||||
{"username":"admin","password":"123456"}
|
||||
|
||||
|
||||
###
|
||||
GET http://localhost:8081/admin/wheel/gameconfig HTTP/1.1
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjliMTY3MDdmLTAzZmYtNGQ4Zi05MjkzLTlkZWM0ZjgwNTVmYSJ9.CXeQ-IJKY3GK7aL2gQBOSr2NfUuLSUPsqV0mW7F-eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImJjYzhiYjc3LWU4OGQtNDM0Ny1iODAyLTNjMWUwNmQ0NDBmZSJ9.5TDTp1_hED9A6Gg177FZ-CY655LeyTzPjAjOYo5cqg79odNmH5GAs0JNkaF8iT7o8BnDgS4vpt8Ikchp8YfZGA
|
||||
|
||||
###
|
||||
POST http://localhost:8081/admin/wheel/gameconfig HTTP/1.1
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjliMTY3MDdmLTAzZmYtNGQ4Zi05MjkzLTlkZWM0ZjgwNTVmYSJ9.CXeQ-IJKY3GK7aL2gQBOSr2NfUuLSUPsqV0mW7F-eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImJjYzhiYjc3LWU4OGQtNDM0Ny1iODAyLTNjMWUwNmQ0NDBmZSJ9.5TDTp1_hED9A6Gg177FZ-CY655LeyTzPjAjOYo5cqg79odNmH5GAs0JNkaF8iT7o8BnDgS4vpt8Ikchp8YfZGA
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
|
||||
{}
|
||||
10
ruoyi-ui/restapi/cs340item.http
Normal file
10
ruoyi-ui/restapi/cs340item.http
Normal file
@@ -0,0 +1,10 @@
|
||||
### 获取账户余额
|
||||
GET http://95.40.65.4:8081/admin/cs340item/checkMerchantBalance HTTP/1.1
|
||||
|
||||
### 查询库存
|
||||
POST http://95.40.65.4:8081/admin/cs340item/queryOnSaleInfo HTTP/1.1
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
|
||||
{
|
||||
"marketHashName": "10 Year Birthday Sticker Capsule"
|
||||
}
|
||||
39
ruoyi-ui/restapi/fight.http
Normal file
39
ruoyi-ui/restapi/fight.http
Normal file
@@ -0,0 +1,39 @@
|
||||
POST http://95.40.65.4:8081/api/login HTTP/1.1
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
|
||||
|
||||
{"username":"17688554522","password":"123456"}
|
||||
|
||||
### 获取个人战绩列表。除了page,size外,其他参数都是用来查询想要的战绩数据的,参数不传或者传null都表示不过滤这个条件
|
||||
|
||||
POST http://95.40.65.4:8081/api/fight/fightOnMyOwn HTTP/1.1
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImM5ZmQ5MTE5LTk5YzgtNDlhMy04YjU4LWYzYzVlOWI3MTUyNSJ9.VQHwPNaDliBaDvlVeC3SxB_AxJ7Io4kWssqXzh3saW10kteT9sEaXNtVn4CN7xIA-N49geqTzPO4zCEJNRg9oQ
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
|
||||
{
|
||||
"fightId": 1,
|
||||
"model": 0,
|
||||
"statusList": [2],
|
||||
"page": 1,
|
||||
"size": 10
|
||||
}
|
||||
|
||||
|
||||
### 获取全服战绩列表。除了page,size外,其他参数都是用来查询想要的战绩数据的,参数不传或者传null都表示不过滤这个条件
|
||||
|
||||
POST http://95.40.65.4:8081/api/fight/fightOnAll HTTP/1.1
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImM5ZmQ5MTE5LTk5YzgtNDlhMy04YjU4LWYzYzVlOWI3MTUyNSJ9.VQHwPNaDliBaDvlVeC3SxB_AxJ7Io4kWssqXzh3saW10kteT9sEaXNtVn4CN7xIA-N49geqTzPO4zCEJNRg9oQ
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
|
||||
{
|
||||
|
||||
"model": 0,
|
||||
"statusList": [2],
|
||||
"page": 1,
|
||||
"size": 10
|
||||
}
|
||||
|
||||
### 十佳排行榜
|
||||
|
||||
GET http://95.40.65.4:8081/api/fight/tenTopFight?maxType=1 HTTP/1.1
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjMxZTBmNTc5LWViNDQtNDU1Yy04Y2ZiLTM1ZWM3MGU0NTU0OSJ9.CcD5eXGaMB2DjtJkdZS9UuNQEAvz2WB1jf0VpSjZ7-PTNUZLvznuAJXqVZnNTqlGg3aDN6QP_Pl3WZAMD2MVBA
|
||||
68
ruoyi-ui/restapi/roll.http
Normal file
68
ruoyi-ui/restapi/roll.http
Normal file
@@ -0,0 +1,68 @@
|
||||
POST https://wildcs2.com/api/login HTTP/1.1
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
|
||||
|
||||
{"username":"19156010758","password":"123456"}
|
||||
|
||||
### 获取房间列表
|
||||
|
||||
GET http://localhost:8081/api/roll/getRollList?rollType=0&rollStatus=0&pageNum=1&pageSize=10&rollName=&userId=11 HTTP/1.1
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImM5ZmQ5MTE5LTk5YzgtNDlhMy04YjU4LWYzYzVlOWI3MTUyNSJ9.VQHwPNaDliBaDvlVeC3SxB_AxJ7Io4kWssqXzh3saW10kteT9sEaXNtVn4CN7xIA-N49geqTzPO4zCEJNRg9oQ
|
||||
|
||||
|
||||
|
||||
### 获取房间详情
|
||||
|
||||
GET http://localhost:8081/api/roll/getRollDetails/1 HTTP/1.1
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImM5ZmQ5MTE5LTk5YzgtNDlhMy04YjU4LWYzYzVlOWI3MTUyNSJ9.VQHwPNaDliBaDvlVeC3SxB_AxJ7Io4kWssqXzh3saW10kteT9sEaXNtVn4CN7xIA-N49geqTzPO4zCEJNRg9oQ
|
||||
|
||||
|
||||
### 获取房间玩家列表
|
||||
|
||||
POST http://localhost:8081/api/roll/getRollPlayers HTTP/1.1
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImM5ZmQ5MTE5LTk5YzgtNDlhMy04YjU4LWYzYzVlOWI3MTUyNSJ9.VQHwPNaDliBaDvlVeC3SxB_AxJ7Io4kWssqXzh3saW10kteT9sEaXNtVn4CN7xIA-N49geqTzPO4zCEJNRg9oQ
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
|
||||
{
|
||||
"rollId": 1,
|
||||
"page": 1,
|
||||
"size": 10
|
||||
}
|
||||
|
||||
### 加入房间
|
||||
POST http://localhost:8081/api/roll/joinRoll HTTP/1.1
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImM5ZmQ5MTE5LTk5YzgtNDlhMy04YjU4LWYzYzVlOWI3MTUyNSJ9.VQHwPNaDliBaDvlVeC3SxB_AxJ7Io4kWssqXzh3saW10kteT9sEaXNtVn4CN7xIA-N49geqTzPO4zCEJNRg9oQ
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
|
||||
{
|
||||
"rollId": 1,
|
||||
"rollPassword": "123456"
|
||||
}
|
||||
|
||||
### 获取ROLL房奖池详情 暂时用不到,房间详情接口有
|
||||
POST http://localhost:8081/api/roll/getRollPrizePool HTTP/1.1
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImM5ZmQ5MTE5LTk5YzgtNDlhMy04YjU4LWYzYzVlOWI3MTUyNSJ9.VQHwPNaDliBaDvlVeC3SxB_AxJ7Io4kWssqXzh3saW10kteT9sEaXNtVn4CN7xIA-N49geqTzPO4zCEJNRg9oQ
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
|
||||
{
|
||||
"rollId": 1,
|
||||
"page": 1,
|
||||
"size": 10
|
||||
}
|
||||
|
||||
|
||||
#### 获取ROLL房开奖数据
|
||||
POST http://localhost:8081/api/roll/getRollOpenPrize HTTP/1.1
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImM5ZmQ5MTE5LTk5YzgtNDlhMy04YjU4LWYzYzVlOWI3MTUyNSJ9.VQHwPNaDliBaDvlVeC3SxB_AxJ7Io4kWssqXzh3saW10kteT9sEaXNtVn4CN7xIA-N49geqTzPO4zCEJNRg9oQ
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
|
||||
{
|
||||
"rollId": 1,
|
||||
"page": 1,
|
||||
"size": 10
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
34
ruoyi-ui/restapi/sugar_api.http
Normal file
34
ruoyi-ui/restapi/sugar_api.http
Normal file
@@ -0,0 +1,34 @@
|
||||
POST http://localhost:8081/api/login HTTP/1.1
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
|
||||
|
||||
{"username":"17774038557","password":"123456"}
|
||||
|
||||
###
|
||||
|
||||
GET http://localhost:8081/api/sugar/dospin?bet=10 HTTP/1.1
|
||||
Accept: */*
|
||||
Accept-Language: zh-CN,zh;q=0.9
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImI0Mjk5ZmRjLTY4YmMtNDVhZi04ZDY1LWU3YjM1NDNhYTM5NCJ9.zsx5cfrqC_BICELsK0Kn0TsQQDYPENLQEDHPIAw76u8OpfsxUU9_T-vMWQI7UEU5NvFD7WoDuFu8AH0aFZRTVQ
|
||||
|
||||
###
|
||||
|
||||
GET http://localhost:8081/api/sugar/buy_free_spins?kind=standard&bet=100 HTTP/1.1
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImI0Mjk5ZmRjLTY4YmMtNDVhZi04ZDY1LWU3YjM1NDNhYTM5NCJ9.zsx5cfrqC_BICELsK0Kn0TsQQDYPENLQEDHPIAw76u8OpfsxUU9_T-vMWQI7UEU5NvFD7WoDuFu8AH0aFZRTVQ
|
||||
|
||||
|
||||
###
|
||||
|
||||
GET http://localhost:8081/api/sugar/has_free_spin HTTP/1.1
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImI0Mjk5ZmRjLTY4YmMtNDVhZi04ZDY1LWU3YjM1NDNhYTM5NCJ9.zsx5cfrqC_BICELsK0Kn0TsQQDYPENLQEDHPIAw76u8OpfsxUU9_T-vMWQI7UEU5NvFD7WoDuFu8AH0aFZRTVQ
|
||||
|
||||
### 个人记录
|
||||
GET http://localhost:8081/api/sugar/records?pageNum=1&pageSize=20&kind=
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImI0Mjk5ZmRjLTY4YmMtNDVhZi04ZDY1LWU3YjM1NDNhYTM5NCJ9.zsx5cfrqC_BICELsK0Kn0TsQQDYPENLQEDHPIAw76u8OpfsxUU9_T-vMWQI7UEU5NvFD7WoDuFu8AH0aFZRTVQ
|
||||
|
||||
### 全局记录
|
||||
GET http://localhost:8081/api/sugar/rank_records?pageNum=1&pageSize=20&kind=normal&rankType=win
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImI0Mjk5ZmRjLTY4YmMtNDVhZi04ZDY1LWU3YjM1NDNhYTM5NCJ9.zsx5cfrqC_BICELsK0Kn0TsQQDYPENLQEDHPIAw76u8OpfsxUU9_T-vMWQI7UEU5NvFD7WoDuFu8AH0aFZRTVQ
|
||||
|
||||
|
||||
|
||||
32
ruoyi-ui/restapi/user.http
Normal file
32
ruoyi-ui/restapi/user.http
Normal file
@@ -0,0 +1,32 @@
|
||||
POST http://localhost:8081/api/login HTTP/1.1
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
|
||||
|
||||
{"username":"17688554522","password":"123456"}
|
||||
|
||||
|
||||
### 更新提货链接
|
||||
|
||||
POST http://localhost:8081/api/user/updateDeliveryAddress HTTP/1.1
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImMxOTQ2YzIyLTUzZGMtNDdkMS1hMGUzLTg5ZWY2NjgxYzY2YyJ9.06j6rdNdZ23Ws52Kf_7Uo5FWRKNxGCrJf-xPDi5PCi7N6YTAiD1O3hgBtQ1pTWYE_f5dupbjzs4s0-FN0RWPaw
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
|
||||
{
|
||||
"transactionLink": "123"
|
||||
}
|
||||
|
||||
### 认证系统
|
||||
|
||||
POST http://localhost:8081/api/user/realNameAuthentication HTTP/1.1
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImQ5YTk0MzU0LWEyYzEtNDI5ZC04MTg1LTNiMDRmMzllMzAxMSJ9.uaFFxKiXNfM-bNeWAdSUNv85yfiNK8vAi8xeraTDULjxjUXCKimr7X_AprrKiFCaIt1FMsGbN_0AaOY9KBjajQ
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
|
||||
{
|
||||
"realName": "123",
|
||||
"idNum": "411425199502074510"
|
||||
}
|
||||
|
||||
### 获取个人账户信息
|
||||
GET http://localhost:8081/api/getAccountAmount HTTP/1.1
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjZmMGU5ZTdjLTc4OTktNDAxNS1hYTJkLTU3N2ViOTY3MDQxOSJ9.a8w6jH-psbmJsxWr9S_lLX05C8Yz3K8D8Ajtkm7tItt8uWErE4kJMFSxs9QZpE4UgeXkwRo8lXlc8dSdxYuXPw
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
26
ruoyi-ui/restapi/wheel_api.http
Normal file
26
ruoyi-ui/restapi/wheel_api.http
Normal file
@@ -0,0 +1,26 @@
|
||||
POST http://localhost:8081/api/login HTTP/1.1
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
|
||||
|
||||
{"username":"19156010758","password":"123456"}
|
||||
|
||||
###
|
||||
|
||||
GET http://localhost:8081/api/wheel/game_config HTTP/1.1
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjRjNDY5MGJhLTdkYTgtNGYyYi1iZGQwLWYyMDE3MTcwMTM5ZSJ9.7CvtJhZDbdgfMx5emTEWg-lwBIRKkPDOQITEtyQz5vqzG5p8X6lwJCdALJz69bFIog-DpvlnsFL9Yn7xo28DWA
|
||||
|
||||
### 获取最后一轮转盘信息
|
||||
GET http://localhost:8081/api/wheel/last_round_info HTTP/1.1
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjRjNDY5MGJhLTdkYTgtNGYyYi1iZGQwLWYyMDE3MTcwMTM5ZSJ9.7CvtJhZDbdgfMx5emTEWg-lwBIRKkPDOQITEtyQz5vqzG5p8X6lwJCdALJz69bFIog-DpvlnsFL9Yn7xo28DWA
|
||||
|
||||
### 下注
|
||||
GET http://localhost:8081/api/wheel/dobet?bet=5&symbol=A HTTP/1.1
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjRjNDY5MGJhLTdkYTgtNGYyYi1iZGQwLWYyMDE3MTcwMTM5ZSJ9.7CvtJhZDbdgfMx5emTEWg-lwBIRKkPDOQITEtyQz5vqzG5p8X6lwJCdALJz69bFIog-DpvlnsFL9Yn7xo28DWA
|
||||
|
||||
### 个人游戏历史记录
|
||||
GET http://localhost:8081/api/wheel/history_bet_info?pageNum=1&pageSize=10 HTTP/1.1
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjRjNDY5MGJhLTdkYTgtNGYyYi1iZGQwLWYyMDE3MTcwMTM5ZSJ9.7CvtJhZDbdgfMx5emTEWg-lwBIRKkPDOQITEtyQz5vqzG5p8X6lwJCdALJz69bFIog-DpvlnsFL9Yn7xo28DWA
|
||||
|
||||
### 游戏历史记录
|
||||
GET http://localhost:8081/api/wheel/round_history_bet_info?pageNum=10&pageSize=10 HTTP/1.1
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjRjNDY5MGJhLTdkYTgtNGYyYi1iZGQwLWYyMDE3MTcwMTM5ZSJ9.7CvtJhZDbdgfMx5emTEWg-lwBIRKkPDOQITEtyQz5vqzG5p8X6lwJCdALJz69bFIog-DpvlnsFL9Yn7xo28DWA
|
||||
36
ruoyi-ui/restapi/个人记录.http
Normal file
36
ruoyi-ui/restapi/个人记录.http
Normal file
@@ -0,0 +1,36 @@
|
||||
POST http://localhost:8081/api/login HTTP/1.1
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
|
||||
|
||||
{"username":"19156010758","password":"123456"}
|
||||
|
||||
### 个人记录 充值、消费、红包记录
|
||||
|
||||
POST http://localhost:8081/api/userAmountRecords/personalRecord
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImQ2NTBkOWVlLTljNmYtNDIxNy04NTQzLTcwMWQ1M2NjZjc5ZiJ9.5PN9bmzzAliJrbeSbPXQsZ4jr1HpX-crusfUswU0YqIv4kwCxgoG-m4S5lZbL6nOTIYBPfB0V-1aP3Zpcs_X_A
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
|
||||
{
|
||||
"page": 1,
|
||||
"pageSize": 2,
|
||||
"type": 3,
|
||||
"source": 2
|
||||
}
|
||||
|
||||
### 个人记录 提货记录
|
||||
|
||||
POST http://localhost:8081/api/userAmountRecords/deliveryRecords
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImQ2NTBkOWVlLTljNmYtNDIxNy04NTQzLTcwMWQ1M2NjZjc5ZiJ9.5PN9bmzzAliJrbeSbPXQsZ4jr1HpX-crusfUswU0YqIv4kwCxgoG-m4S5lZbL6nOTIYBPfB0V-1aP3Zpcs_X_A
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
|
||||
{
|
||||
"page": 1,
|
||||
"size": 2,
|
||||
"statusList": [1]
|
||||
}
|
||||
|
||||
### 个人记录 转增记录
|
||||
|
||||
GET http://localhost:8081/api/userPackSack/transfer/records?pageNum=1&pageSize=2&kind=src
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImZhZTJkZTY3LTQ0OTMtNGUwZS04NzQ1LTBlNTdjNmFjZGY5ZiJ9.l9DAJTA7UkOhRXKbIMIDQBDefeiMWvoYPRXtJCSaamnuczaBULKF-mtDuYd2FXW3OEE4YHmnpmj0ZPZ10Oq2Zw
|
||||
|
||||
12
ruoyi-ui/restapi/商城.http
Normal file
12
ruoyi-ui/restapi/商城.http
Normal file
@@ -0,0 +1,12 @@
|
||||
POST http://localhost:8081/api/login HTTP/1.1
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
|
||||
|
||||
{"username":"19156010758","password":"123456"}
|
||||
|
||||
### 商城商品列表
|
||||
|
||||
GET http://localhost:8081/api/shopping/list?pageNum=2&pageSize=2 HTTP/1.1
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImFmMDM4M2RhLTdiZGYtNDBlYi1iNDhkLTFiMjVlMmIxOGYwZCJ9.Y76_V_Zr7B26yyr6DHiH64Mt-JkgmZFFoaXIo0-cWwdUsArSatLK_P4sGG4gJWS9N1nbaw4IfmGn4Hd-4aKbqQ
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
|
||||
1
ruoyi-ui/restapi/定时任务.http
Normal file
1
ruoyi-ui/restapi/定时任务.http
Normal file
@@ -0,0 +1 @@
|
||||
GET http://localhost:8081/api/ttTask/test?kind=zhubo HTTP/1.1
|
||||
14
ruoyi-ui/restapi/排行榜.http
Normal file
14
ruoyi-ui/restapi/排行榜.http
Normal file
@@ -0,0 +1,14 @@
|
||||
POST http://localhost:8081/api/login HTTP/1.1
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
|
||||
{"username":"19156010758","password":"123456"}
|
||||
|
||||
### 获取综合流水排行榜
|
||||
POST http://localhost:8081/api/userAmountRecords/blendErcashRank HTTP/1.1
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
|
||||
|
||||
{"page":1,"size":10,"type":1}
|
||||
|
||||
### 获取综合流水排行榜奖励
|
||||
GET http://localhost:8081/api/userAmountRecords/rechargeRankingRewardsIntroduction HTTP/1.1
|
||||
45
ruoyi-ui/restapi/提货.http
Normal file
45
ruoyi-ui/restapi/提货.http
Normal file
@@ -0,0 +1,45 @@
|
||||
POST http://localhost:8081/api/login HTTP/1.1
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
|
||||
|
||||
{"username":"19156010758","password":"123456"}
|
||||
|
||||
|
||||
### 背包
|
||||
POST http://localhost:8081/api/userPackSack/getPackSack? HTTP/1.1
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImZhZTJkZTY3LTQ0OTMtNGUwZS04NzQ1LTBlNTdjNmFjZGY5ZiJ9.l9DAJTA7UkOhRXKbIMIDQBDefeiMWvoYPRXtJCSaamnuczaBULKF-mtDuYd2FXW3OEE4YHmnpmj0ZPZ10Oq2Zw
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
|
||||
{
|
||||
"page":1,
|
||||
"size":10
|
||||
}
|
||||
|
||||
### 转增
|
||||
|
||||
POST http://localhost:8081/api/userPackSack/transfer HTTP/1.1
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImZhZTJkZTY3LTQ0OTMtNGUwZS04NzQ1LTBlNTdjNmFjZGY5ZiJ9.l9DAJTA7UkOhRXKbIMIDQBDefeiMWvoYPRXtJCSaamnuczaBULKF-mtDuYd2FXW3OEE4YHmnpmj0ZPZ10Oq2Zw
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
|
||||
{"targetUid":1,"packSackIds":[2160]}
|
||||
|
||||
### 提货
|
||||
POST http://localhost:8081/api/userPackSack/delivery HTTP/1.1
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImZhZTJkZTY3LTQ0OTMtNGUwZS04NzQ1LTBlNTdjNmFjZGY5ZiJ9.l9DAJTA7UkOhRXKbIMIDQBDefeiMWvoYPRXtJCSaamnuczaBULKF-mtDuYd2FXW3OEE4YHmnpmj0ZPZ10Oq2Zw
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
|
||||
{"packSackIds":[2159], "isAll": false}
|
||||
|
||||
|
||||
### 购买
|
||||
|
||||
POST http://localhost:8081/api/shopping/exchange?ornamentsId=1878515908 HTTP/1.1
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImZhZTJkZTY3LTQ0OTMtNGUwZS04NzQ1LTBlNTdjNmFjZGY5ZiJ9.l9DAJTA7UkOhRXKbIMIDQBDefeiMWvoYPRXtJCSaamnuczaBULKF-mtDuYd2FXW3OEE4YHmnpmj0ZPZ10Oq2Zw
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
|
||||
### 查询库存
|
||||
POST http://localhost:8081/admin/cs340item/queryOnSaleInfo HTTP/1.1
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImZhZTJkZTY3LTQ0OTMtNGUwZS04NzQ1LTBlNTdjNmFjZGY5ZiJ9.l9DAJTA7UkOhRXKbIMIDQBDefeiMWvoYPRXtJCSaamnuczaBULKF-mtDuYd2FXW3OEE4YHmnpmj0ZPZ10Oq2Zw
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
|
||||
{"marketHashName":"P90 | Desert Warfare (Well-Worn)"}
|
||||
41
ruoyi-ui/restapi/支付.http
Normal file
41
ruoyi-ui/restapi/支付.http
Normal file
@@ -0,0 +1,41 @@
|
||||
POST http://154.12.94.98:8081/api/login HTTP/1.1
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
|
||||
|
||||
{"username":"17688554522","password":"123456"}
|
||||
|
||||
### 卡密支付
|
||||
|
||||
POST http://localhost:8081/api/recharge/cardPay?password=ABB3CBC8E36A49AB8DFC26D64D1E2F92 HTTP/1.1
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImFjNGJlZWI3LWFkZDMtNDY3Yy05YTRhLTRkZmFiMWU0N2RiMyJ9.Wjt2kcwyFkzTF-qOzh5Yi_GEhIpX6F1CnilhcZj0WUhv7Q-RAJLgq2px16Bo8dg8HJiQrj0c7l2x0P5kY5w-mw
|
||||
|
||||
|
||||
### 在线支付
|
||||
|
||||
POST http://154.12.94.98:8081/api/hipay/pay HTTP/1.1
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjI3MmU4M2JhLTgxMzYtNDc3Yi05MDIyLTYyMDc0MTQxNDI1MiJ9.GfB7Bgt5zmK4wvJPN7Qv8Csuk5_RhI4qewS-YpCAHD0vyvXI50VtixsHW3IIC3e0ekn44nLw4_THt28opVyGBw
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
|
||||
{
|
||||
"goodsId": 6,
|
||||
"goodsNum": 1
|
||||
}
|
||||
|
||||
### 回调
|
||||
POST http://localhost:8081/api/hipay/notify HTTP/1.1
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjI3MmU4M2JhLTgxMzYtNDc3Yi05MDIyLTYyMDc0MTQxNDI1MiJ9.GfB7Bgt5zmK4wvJPN7Qv8Csuk5_RhI4qewS-YpCAHD0vyvXI50VtixsHW3IIC3e0ekn44nLw4_THt28opVyGBw
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
|
||||
{"code":"1","data":"{\"amount\":100.00,\"createtime\":1774019940000,\"id\":\"89878e6d7ada40e18bb76da3276fc9e5\",\"note\":\"充值100.00\",\"notifyurl\":\"http://154.12.94.98:8081/api/hipay/notify\",\"orderid\":\"2035013237443006464\",\"ordertype\":1,\"recvcharge\":12.000000,\"recvid\":\"e42835c685f0712b19f27d693ee11f42\",\"recvnickname\":\"星耀科技\",\"resign\":\"edced5cb250a97f5775cdd4f72814129\",\"returnurl\":\"\",\"sign\":\"c0ca2c25fbcb2a8cdfaf72fda7cb4b98\",\"state\":5,\"transtime\":1774020221000}","msg":"success"}
|
||||
|
||||
### 制作红包
|
||||
POST http://localhost:8081/admin/redPacket HTTP/1.1
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjI3MmU4M2JhLTgxMzYtNDc3Yi05MDIyLTYyMDc0MTQxNDI1MiJ9.GfB7Bgt5zmK4wvJPN7Qv8Csuk5_RhI4qewS-YpCAHD0vyvXI50VtixsHW3IIC3e0ekn44nLw4_THt28opVyGBw
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
|
||||
{"num":2,"userId":1,"createNum":1,"title":"红包","openingTime":"2026-03-24 20:54:05","amount":"[1,1]"}
|
||||
|
||||
### 红包兑换
|
||||
|
||||
GET http://154.12.94.98:8081/api/bonus/receiveRedPacket/219D1DDB124440EB875FDCCF03310D2F HTTP/1.1
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjEzNTFhNGUzLTk5ZDItNGQzMy1iOGFkLTA3ODhjNDhmNDcwNiJ9.THdSGhpP8F1VOBldWdI3kqhro1wSUvRKYEHUw5bcK4wJJFynUkJSjoT9Acnzb4EuJ-Su2pcvp9Jc4BoUX-6deQ
|
||||
9
ruoyi-ui/restapi/消息.http
Normal file
9
ruoyi-ui/restapi/消息.http
Normal file
@@ -0,0 +1,9 @@
|
||||
POST http://localhost:8081/api/login HTTP/1.1
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
|
||||
|
||||
{"username":"19156010758","password":"123456"}
|
||||
|
||||
### 获取消息列表
|
||||
GET http://localhost:8081/api/message/getMessageList HTTP/1.1
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6Ijg2YzcxOGQ4LTc0MzItNDAyNS04MmVhLWQxYjgyNTg4OTk2MyJ9.6nybsO4P4cUxQP_r_CUpYJKJfFtvx9qTpRF4RkjpZ_JgCKvajoYP4NibJgU9mfOHl32cuYV0yOemkFSEs_Ilgg
|
||||
10
ruoyi-ui/restapi/福利.http
Normal file
10
ruoyi-ui/restapi/福利.http
Normal file
@@ -0,0 +1,10 @@
|
||||
POST http://localhost:8081/api/login HTTP/1.1
|
||||
Content-Type: application/json; charset=UTF-8
|
||||
|
||||
|
||||
{"username":"17774038557","password":"123456"}
|
||||
|
||||
### 查询返利福利
|
||||
GET http://localhost:8081/api/bonus/vipreward/list HTTP/1.1
|
||||
Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImUyYTE1ODU5LTQ0MzktNGM2Zi1hNjBjLTRhOGNmMmE1NTdiNyJ9.l32RqHK4IV8DTH6tR7oq-rQyJ8YvOTqlRWCzgdUR2Iea-_-Svu6R-eCz4UOz4-QNGs9yoBbldrAfvaaMfqYK7w
|
||||
|
||||
32
ruoyi-ui/src/App.vue
Normal file
32
ruoyi-ui/src/App.vue
Normal file
@@ -0,0 +1,32 @@
|
||||
<template>
|
||||
<div id="app">
|
||||
<router-view />
|
||||
<theme-picker />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import ThemePicker from "@/components/ThemePicker";
|
||||
|
||||
export default {
|
||||
name: "App",
|
||||
components: { ThemePicker },
|
||||
metaInfo() {
|
||||
return {
|
||||
title:
|
||||
this.$store.state.settings.dynamicTitle &&
|
||||
this.$store.state.settings.title,
|
||||
titleTemplate: title => {
|
||||
return title
|
||||
? `${title} - ${process.env.VUE_APP_TITLE}`
|
||||
: process.env.VUE_APP_TITLE;
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style scoped lang="scss">
|
||||
#app .theme-picker {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
19
ruoyi-ui/src/api/game/box/mock/api.js
Normal file
19
ruoyi-ui/src/api/game/box/mock/api.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询:GET /admin/sugar/mockresult/list
|
||||
export function list(query) {
|
||||
return request({
|
||||
url: '/admin/box/mockresult/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 更新:POST /admin/sugar/mockresult/list
|
||||
export function update(data) {
|
||||
return request({
|
||||
url: '/admin/box/mockresult/list',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
17
ruoyi-ui/src/api/game/sugar/config/api.js
Normal file
17
ruoyi-ui/src/api/game/sugar/config/api.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
|
||||
export function getConfig() {
|
||||
return request({
|
||||
url: '/admin/sugar/gameconfig',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function updateConfig(data) {
|
||||
return request({
|
||||
url: '/admin/sugar/gameconfig',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
17
ruoyi-ui/src/api/game/sugar/dailywin/api.js
Normal file
17
ruoyi-ui/src/api/game/sugar/dailywin/api.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
|
||||
export function list(query) {
|
||||
return request({
|
||||
url: '/admin/sugar/dailywin/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function resetRewardPool() {
|
||||
return request({
|
||||
url: '/api/sugar/rewardpool/reset',
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
18
ruoyi-ui/src/api/game/sugar/mock/api.js
Normal file
18
ruoyi-ui/src/api/game/sugar/mock/api.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
|
||||
export function list(query) {
|
||||
return request({
|
||||
url: '/admin/sugar/mockresult/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function update(data) {
|
||||
return request({
|
||||
url: '/admin/sugar/mockresult/list',
|
||||
method: 'POST',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
10
ruoyi-ui/src/api/game/sugar/record/api.js
Normal file
10
ruoyi-ui/src/api/game/sugar/record/api.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
|
||||
export function listRecord(query) {
|
||||
return request({
|
||||
url: '/admin/sugar/user/record/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
10
ruoyi-ui/src/api/game/sugar/user/api.js
Normal file
10
ruoyi-ui/src/api/game/sugar/user/api.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询注册用户信息列表
|
||||
export function listUser(query) {
|
||||
return request({
|
||||
url: '/admin/sugar/user/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
17
ruoyi-ui/src/api/game/wheel/config/api.js
Normal file
17
ruoyi-ui/src/api/game/wheel/config/api.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
|
||||
export function getConfig() {
|
||||
return request({
|
||||
url: '/admin/wheel/gameconfig',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function updateConfig(data) {
|
||||
return request({
|
||||
url: '/admin/wheel/gameconfig',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
28
ruoyi-ui/src/api/index.js
Normal file
28
ruoyi-ui/src/api/index.js
Normal file
@@ -0,0 +1,28 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function getBalance() {
|
||||
return request({
|
||||
url: '/admin/cs340item/checkMerchantBalance',
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
export function developmentInfo() {
|
||||
return request({
|
||||
url: '/admin/zbt/developmentInfo',
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
export function getV5itemBalance() {
|
||||
return request({
|
||||
url: '/admin/v5item/checkMerchantBalance',
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
export function getHomeStats() {
|
||||
return request({
|
||||
url: '/admin/rechargeRecord/homeStats',
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
60
ruoyi-ui/src/api/login.js
Normal file
60
ruoyi-ui/src/api/login.js
Normal file
@@ -0,0 +1,60 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 登录方法
|
||||
export function login(username, password, code, uuid) {
|
||||
const data = {
|
||||
username,
|
||||
password,
|
||||
code,
|
||||
uuid
|
||||
}
|
||||
return request({
|
||||
url: '/login',
|
||||
headers: {
|
||||
isToken: false,
|
||||
repeatSubmit: false
|
||||
},
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 注册方法
|
||||
export function register(data) {
|
||||
return request({
|
||||
url: '/register',
|
||||
headers: {
|
||||
isToken: false
|
||||
},
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 获取用户详细信息
|
||||
export function getInfo() {
|
||||
return request({
|
||||
url: '/getInfo',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 退出方法
|
||||
export function logout() {
|
||||
return request({
|
||||
url: '/logout',
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取验证码
|
||||
export function getCodeImg() {
|
||||
return request({
|
||||
url: '/captchaImage',
|
||||
headers: {
|
||||
isToken: false
|
||||
},
|
||||
method: 'get',
|
||||
timeout: 20000
|
||||
})
|
||||
}
|
||||
9
ruoyi-ui/src/api/menu.js
Normal file
9
ruoyi-ui/src/api/menu.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 获取路由
|
||||
export const getRouters = () => {
|
||||
return request({
|
||||
url: '/getRouters',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
57
ruoyi-ui/src/api/monitor/cache.js
Normal file
57
ruoyi-ui/src/api/monitor/cache.js
Normal file
@@ -0,0 +1,57 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询缓存详细
|
||||
export function getCache() {
|
||||
return request({
|
||||
url: '/monitor/cache',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询缓存名称列表
|
||||
export function listCacheName() {
|
||||
return request({
|
||||
url: '/monitor/cache/getNames',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询缓存键名列表
|
||||
export function listCacheKey(cacheName) {
|
||||
return request({
|
||||
url: '/monitor/cache/getKeys/' + cacheName,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询缓存内容
|
||||
export function getCacheValue(cacheName, cacheKey) {
|
||||
return request({
|
||||
url: '/monitor/cache/getValue/' + cacheName + '/' + cacheKey,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 清理指定名称缓存
|
||||
export function clearCacheName(cacheName) {
|
||||
return request({
|
||||
url: '/monitor/cache/clearCacheName/' + cacheName,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 清理指定键名缓存
|
||||
export function clearCacheKey(cacheKey) {
|
||||
return request({
|
||||
url: '/monitor/cache/clearCacheKey/' + cacheKey,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 清理全部缓存
|
||||
export function clearCacheAll() {
|
||||
return request({
|
||||
url: '/monitor/cache/clearCacheAll',
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
71
ruoyi-ui/src/api/monitor/job.js
Normal file
71
ruoyi-ui/src/api/monitor/job.js
Normal file
@@ -0,0 +1,71 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询定时任务调度列表
|
||||
export function listJob(query) {
|
||||
return request({
|
||||
url: '/monitor/job/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询定时任务调度详细
|
||||
export function getJob(jobId) {
|
||||
return request({
|
||||
url: '/monitor/job/' + jobId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增定时任务调度
|
||||
export function addJob(data) {
|
||||
return request({
|
||||
url: '/monitor/job',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改定时任务调度
|
||||
export function updateJob(data) {
|
||||
return request({
|
||||
url: '/monitor/job',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除定时任务调度
|
||||
export function delJob(jobId) {
|
||||
return request({
|
||||
url: '/monitor/job/' + jobId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 任务状态修改
|
||||
export function changeJobStatus(jobId, status) {
|
||||
const data = {
|
||||
jobId,
|
||||
status
|
||||
}
|
||||
return request({
|
||||
url: '/monitor/job/changeStatus',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 定时任务立即执行一次
|
||||
export function runJob(jobId, jobGroup) {
|
||||
const data = {
|
||||
jobId,
|
||||
jobGroup
|
||||
}
|
||||
return request({
|
||||
url: '/monitor/job/run',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
26
ruoyi-ui/src/api/monitor/jobLog.js
Normal file
26
ruoyi-ui/src/api/monitor/jobLog.js
Normal file
@@ -0,0 +1,26 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询调度日志列表
|
||||
export function listJobLog(query) {
|
||||
return request({
|
||||
url: '/monitor/jobLog/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 删除调度日志
|
||||
export function delJobLog(jobLogId) {
|
||||
return request({
|
||||
url: '/monitor/jobLog/' + jobLogId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 清空调度日志
|
||||
export function cleanJobLog() {
|
||||
return request({
|
||||
url: '/monitor/jobLog/clean',
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
34
ruoyi-ui/src/api/monitor/logininfor.js
Normal file
34
ruoyi-ui/src/api/monitor/logininfor.js
Normal file
@@ -0,0 +1,34 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询登录日志列表
|
||||
export function list(query) {
|
||||
return request({
|
||||
url: '/monitor/logininfor/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 删除登录日志
|
||||
export function delLogininfor(infoId) {
|
||||
return request({
|
||||
url: '/monitor/logininfor/' + infoId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 解锁用户登录状态
|
||||
export function unlockLogininfor(userName) {
|
||||
return request({
|
||||
url: '/monitor/logininfor/unlock/' + userName,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 清空登录日志
|
||||
export function cleanLogininfor() {
|
||||
return request({
|
||||
url: '/monitor/logininfor/clean',
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
18
ruoyi-ui/src/api/monitor/online.js
Normal file
18
ruoyi-ui/src/api/monitor/online.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询在线用户列表
|
||||
export function list(query) {
|
||||
return request({
|
||||
url: '/monitor/online/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 强退用户
|
||||
export function forceLogout(tokenId) {
|
||||
return request({
|
||||
url: '/monitor/online/' + tokenId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
26
ruoyi-ui/src/api/monitor/operlog.js
Normal file
26
ruoyi-ui/src/api/monitor/operlog.js
Normal file
@@ -0,0 +1,26 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询操作日志列表
|
||||
export function list(query) {
|
||||
return request({
|
||||
url: '/monitor/operlog/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 删除操作日志
|
||||
export function delOperlog(operId) {
|
||||
return request({
|
||||
url: '/monitor/operlog/' + operId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 清空操作日志
|
||||
export function cleanOperlog() {
|
||||
return request({
|
||||
url: '/monitor/operlog/clean',
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
9
ruoyi-ui/src/api/monitor/server.js
Normal file
9
ruoyi-ui/src/api/monitor/server.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 获取服务信息
|
||||
export function getServer() {
|
||||
return request({
|
||||
url: '/monitor/server',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
39
ruoyi-ui/src/api/skins/ttBonus/api.js
Normal file
39
ruoyi-ui/src/api/skins/ttBonus/api.js
Normal file
@@ -0,0 +1,39 @@
|
||||
import request from '@/utils/request'
|
||||
//福利-查询福利列表
|
||||
export function getBonus(query) {
|
||||
return request({
|
||||
url: '/admin/bonus/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
//福利-获取福利详细信息
|
||||
export function getBonusid(id) {
|
||||
return request({
|
||||
url: `/admin/bonus/${id}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
//福利-获取福利详细信息
|
||||
export function delBonus(ids) {
|
||||
return request({
|
||||
url: `/admin/bonus/${ids}`,
|
||||
method: 'delete',
|
||||
})
|
||||
}
|
||||
//福利-新增福利
|
||||
export function addBonus(data) {
|
||||
return request({
|
||||
url: '/admin/bonus',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
//福利-修改福利
|
||||
export function updateBonus (data) {
|
||||
return request({
|
||||
url: '/admin/bonus',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
168
ruoyi-ui/src/api/skins/ttBox/api.js
Normal file
168
ruoyi-ui/src/api/skins/ttBox/api.js
Normal file
@@ -0,0 +1,168 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询宝箱数据列表
|
||||
export function listBox(query) {
|
||||
return request({
|
||||
url: '/admin/box/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询宝箱数据详细
|
||||
export function getBox(boxId) {
|
||||
return request({
|
||||
url: '/admin/box/' + boxId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增宝箱数据
|
||||
export function addBox(data) {
|
||||
return request({
|
||||
url: '/admin/box',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改宝箱数据
|
||||
export function updateBox(data) {
|
||||
return request({
|
||||
url: '/admin/box',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除宝箱数据
|
||||
export function delBox(boxId) {
|
||||
return request({
|
||||
url: '/admin/box/' + boxId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
//宝箱类型
|
||||
export function boxTypelist(data) {
|
||||
return request({
|
||||
url: '/admin/boxType/list',
|
||||
method: 'get',
|
||||
params:data
|
||||
})
|
||||
}
|
||||
//新增宝箱
|
||||
|
||||
export function boxType(data) {
|
||||
return request({
|
||||
url: '/admin/boxType',
|
||||
method: 'post',
|
||||
data:data
|
||||
})
|
||||
}
|
||||
//
|
||||
export function boxTypeChange(data) {
|
||||
return request({
|
||||
url: '/admin/boxType',
|
||||
method: 'put',
|
||||
data:data
|
||||
})
|
||||
}
|
||||
//
|
||||
export function boxTypeId(id) {
|
||||
return request({
|
||||
url: `/admin/boxType/${id}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
//
|
||||
export function boxChange(data) {
|
||||
return request({
|
||||
url: `/admin/box`,
|
||||
method: 'put',
|
||||
data:data
|
||||
})
|
||||
}
|
||||
//宝箱类型-删除宝箱类型数据
|
||||
export function delBoxType(ids) {
|
||||
return request({
|
||||
url: `/admin/boxType/${ids}`,
|
||||
method: 'delete',
|
||||
})
|
||||
}
|
||||
//宝箱-查看奖项
|
||||
export function getBoxOrnaments(boxId,page,size) {
|
||||
return request({
|
||||
url: `/admin/boxOrnaments/list/${boxId}?pageNum=${page}&pageSize=${size}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
//宝箱-修改奖项
|
||||
export function saveBoxOrnaments(data) {
|
||||
return request({
|
||||
url: `/admin/boxOrnaments`,
|
||||
method: 'put',
|
||||
data:data
|
||||
})
|
||||
}
|
||||
//宝箱-新增奖项
|
||||
export function addBoxOrnaments(data) {
|
||||
return request({
|
||||
url: `/admin/boxOrnaments`,
|
||||
method: 'post',
|
||||
data:data
|
||||
})
|
||||
}
|
||||
//宝箱-获取奖项详细信息
|
||||
export function getidBoxOrnaments(id) {
|
||||
return request({
|
||||
url: `/admin/boxOrnaments/${id}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
//宝箱-获取奖项详细信息
|
||||
export function delBoxOrnaments(boxId,ids) {
|
||||
return request({
|
||||
url: `/admin/boxOrnaments/${boxId}/${ids}`,
|
||||
method: 'delete',
|
||||
})
|
||||
}
|
||||
//宝箱记录-获取宝箱记录数据列表
|
||||
export function getBoxRecords(data) {
|
||||
return request({
|
||||
url: `/admin/boxRecords/list`,
|
||||
method: 'get',
|
||||
params:data
|
||||
})
|
||||
}
|
||||
//获取宝箱利润率
|
||||
export function getProfitMargin(boxId) {
|
||||
return request({
|
||||
url: `/admin/boxOrnaments/getProfitMargin/${boxId}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
//宝箱饰品-批量填货
|
||||
export function batchAdd(data) {
|
||||
return request({
|
||||
url: `/admin/boxOrnaments/batchAdd`,
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
//宝箱-重置宝箱
|
||||
export function resetBox(boxId) {
|
||||
return request({
|
||||
url: `/admin/box/resetBox/${boxId}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
//
|
||||
//宝箱-统计宝箱数据
|
||||
export function countBox(boxId,data) {
|
||||
return request({
|
||||
url: `/admin/box/statisticsBoxData/${boxId}?date=${data}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
24
ruoyi-ui/src/api/skins/ttFight/api.js
Normal file
24
ruoyi-ui/src/api/skins/ttFight/api.js
Normal file
@@ -0,0 +1,24 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
//获取对战列表
|
||||
export function getFightlist(data){
|
||||
return request({
|
||||
url: '/admin/fight/list',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
//获取对战宝箱列表
|
||||
export function getFightBoxList(fightId){
|
||||
return request({
|
||||
url: `/admin/fight/getFightBoxList/${fightId}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
//查询对战结果
|
||||
export function getFightResult (fightId){
|
||||
return request({
|
||||
url: `/admin/fightResult/getFightResult/${fightId}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
58
ruoyi-ui/src/api/skins/ttFight/fightRankingReward.js
Normal file
58
ruoyi-ui/src/api/skins/ttFight/fightRankingReward.js
Normal file
@@ -0,0 +1,58 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询对战奖励金额列表
|
||||
export function listReward(query) {
|
||||
return request({
|
||||
url: '/admin/reward/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询对战奖励金额详细
|
||||
export function getReward(id) {
|
||||
return request({
|
||||
url: '/admin/reward/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增对战奖励金额
|
||||
export function addReward(data) {
|
||||
return request({
|
||||
url: '/admin/reward',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
export function generateRankingReward() {
|
||||
return request({
|
||||
url: '/admin/reward/generateRankingReward/',
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
// 修改对战奖励金额
|
||||
export function updateReward(data) {
|
||||
return request({
|
||||
url: '/admin/reward',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除对战奖励金额
|
||||
export function delReward(id) {
|
||||
return request({
|
||||
url: '/admin/reward/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
export function truncateRankingReward() {
|
||||
return request({
|
||||
url: '/admin/reward/truncateRankingReward',
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/skins/ttFight/robotFightGroup.js
Normal file
44
ruoyi-ui/src/api/skins/ttFight/robotFightGroup.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询机器人对战分组列表
|
||||
export function listGroup(query) {
|
||||
return request({
|
||||
url: '/admin/group/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询机器人对战分组详细
|
||||
export function getGroup(groupId) {
|
||||
return request({
|
||||
url: '/admin/group/' + groupId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增机器人对战分组
|
||||
export function addGroup(data) {
|
||||
return request({
|
||||
url: '/admin/group',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改机器人对战分组
|
||||
export function updateGroup(data) {
|
||||
return request({
|
||||
url: '/admin/group',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除机器人对战分组
|
||||
export function delGroup(groupId) {
|
||||
return request({
|
||||
url: '/admin/group/' + groupId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/skins/ttFight/robotFightGroupBox.js
Normal file
44
ruoyi-ui/src/api/skins/ttFight/robotFightGroupBox.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询机器人对战分组宝箱列表
|
||||
export function listGroupBox(groupId, query) {
|
||||
return request({
|
||||
url: '/admin/group/box/list/' + groupId,
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询机器人对战分组宝箱详细
|
||||
export function getGroupBox(groupId, boxId) {
|
||||
return request({
|
||||
url: '/admin/group/box/' + groupId + '/' + boxId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增机器人对战分组宝箱
|
||||
export function addGroupBox(data) {
|
||||
return request({
|
||||
url: '/admin/group/box',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改机器人对战分组宝箱
|
||||
export function updateGroupBox(data) {
|
||||
return request({
|
||||
url: '/admin/group/box',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除机器人对战分组宝箱
|
||||
export function delGroupBox(groupId, boxId) {
|
||||
return request({
|
||||
url: '/admin/group/box/' + groupId + "/" + boxId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/skins/ttFirstRecharge/api.js
Normal file
44
ruoyi-ui/src/api/skins/ttFirstRecharge/api.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询首充赠送列表
|
||||
export function listRecharge(query) {
|
||||
return request({
|
||||
url: '/admin/recharge/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询首充赠送详细
|
||||
export function getRecharge(id) {
|
||||
return request({
|
||||
url: '/admin/recharge/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增首充赠送
|
||||
export function addRecharge(data) {
|
||||
return request({
|
||||
url: '/admin/recharge',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改首充赠送
|
||||
export function updateRecharge(data) {
|
||||
return request({
|
||||
url: '/admin/recharge',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除首充赠送
|
||||
export function delRecharge(id) {
|
||||
return request({
|
||||
url: '/admin/recharge/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
23
ruoyi-ui/src/api/skins/ttGenerateCard/api.js
Normal file
23
ruoyi-ui/src/api/skins/ttGenerateCard/api.js
Normal file
@@ -0,0 +1,23 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
|
||||
export function getRechargeCard(query) {
|
||||
return request({
|
||||
url: '/admin/rechargeCard/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
export function addRechargeCard(rechargeListId,num) {
|
||||
return request({
|
||||
url: `/admin/rechargeCard/generateCard/${rechargeListId}/${num}`,
|
||||
method:'post'
|
||||
})
|
||||
}
|
||||
|
||||
export function downloadRechargeCard() {
|
||||
return request({
|
||||
url: `/admin/rechargeCard/export`,
|
||||
method:'post'
|
||||
})
|
||||
}
|
||||
96
ruoyi-ui/src/api/skins/ttOrnaments/api.js
Normal file
96
ruoyi-ui/src/api/skins/ttOrnaments/api.js
Normal file
@@ -0,0 +1,96 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询饰品数据列表
|
||||
export function listOrnaments(query) {
|
||||
return request({
|
||||
url: '/admin/ornaments/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询饰品数据详细
|
||||
export function getOrnaments(id) {
|
||||
return request({
|
||||
url: '/admin/ornaments/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增饰品数据
|
||||
export function addOrnaments(data) {
|
||||
return request({
|
||||
url: '/admin/ornaments',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
// 发放饰品
|
||||
export function grantOrnaments(data,userId,ornamentsId,num) {
|
||||
return request({
|
||||
url: `/admin/ornaments/grantOrnaments/${userId}/${ornamentsId}/${num}`,
|
||||
method: 'post',
|
||||
params:data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改饰品数据
|
||||
export function updateOrnaments(data) {
|
||||
return request({
|
||||
url: '/admin/ornaments',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除饰品数据
|
||||
export function delOrnaments(id) {
|
||||
return request({
|
||||
url: '/admin/ornaments/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 网站道具-查询网站道具列表
|
||||
export function getWebsiteProperty(params) {
|
||||
return request({
|
||||
url: '/admin/websiteProperty/list',
|
||||
method: 'get',
|
||||
params: params
|
||||
})
|
||||
}
|
||||
|
||||
// 网站道具-查询网站道具详细信息
|
||||
export function getWebsitePropertyid(id) {
|
||||
return request({
|
||||
url: `/admin/websiteProperty/${id}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
// 网站道具-删除网站道具
|
||||
export function delWebsiteProperty(ids) {
|
||||
return request({
|
||||
url: `/admin/websiteProperty/${ids}`,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 网站道具-修改网站道具
|
||||
export function changeWebsiteProperty(data) {
|
||||
return request({
|
||||
url: '/admin/websiteProperty',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 网站道具-新增网站道具
|
||||
export function addWebsiteProperty(data) {
|
||||
return request({
|
||||
url: '/admin/websiteProperty',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
44
ruoyi-ui/src/api/skins/ttOrnaments/boxOpenChance.js
Normal file
44
ruoyi-ui/src/api/skins/ttOrnaments/boxOpenChance.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询开箱机会列表
|
||||
export function listChance(query) {
|
||||
return request({
|
||||
url: '/admin/chance/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询开箱机会详细
|
||||
export function getChance(ornamentId) {
|
||||
return request({
|
||||
url: '/admin/chance/' + ornamentId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增开箱机会
|
||||
export function addChance(data) {
|
||||
return request({
|
||||
url: '/admin/chance',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改开箱机会
|
||||
export function updateChance(data) {
|
||||
return request({
|
||||
url: '/admin/chance',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除开箱机会
|
||||
export function delChance(ornamentId) {
|
||||
return request({
|
||||
url: '/admin/chance/' + ornamentId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
50
ruoyi-ui/src/api/skins/ttOrnamentsLevel/api.js
Normal file
50
ruoyi-ui/src/api/skins/ttOrnamentsLevel/api.js
Normal file
@@ -0,0 +1,50 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询饰品级别数据列表
|
||||
export function listLevel(query) {
|
||||
return request({
|
||||
url: '/admin/ornamentsLevel/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询饰品级别数据详细
|
||||
export function getLevel(id) {
|
||||
return request({
|
||||
url: '/admin/ornamentsLevel/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增饰品级别数据
|
||||
export function addLevel(num) {
|
||||
return request({
|
||||
url: `/admin/ornamentsLevel/generateOrnamentsLevel/${num}`,
|
||||
method: 'post',
|
||||
})
|
||||
}
|
||||
|
||||
// 修改饰品级别数据
|
||||
export function updateLevel(data) {
|
||||
return request({
|
||||
url: '/admin/ornamentsLevel',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除饰品级别数据
|
||||
// export function delLevel(id) {
|
||||
// return request({
|
||||
// url: '/admin/ornamentsLevel/' + id,
|
||||
// method: 'delete'
|
||||
// })
|
||||
// }
|
||||
//重置列表
|
||||
export function resetLevel() {
|
||||
return request({
|
||||
url: '/admin/ornamentsLevel',
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
48
ruoyi-ui/src/api/skins/ttRecharge/api.js
Normal file
48
ruoyi-ui/src/api/skins/ttRecharge/api.js
Normal file
@@ -0,0 +1,48 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
//充值记录
|
||||
export function rechargeRecord(data) {
|
||||
return request({
|
||||
url: '/admin/rechargeRecord/list',
|
||||
method: 'get',
|
||||
params:data
|
||||
})
|
||||
}
|
||||
//充值
|
||||
export function getRechargeList(data) {
|
||||
return request({
|
||||
url: '/admin/rechargeList/list',
|
||||
method: 'get',
|
||||
params:data
|
||||
})
|
||||
}
|
||||
//修改
|
||||
export function changeRechargeList(data) {
|
||||
return request({
|
||||
url: '/admin/rechargeList',
|
||||
method: 'put',
|
||||
data:data
|
||||
})
|
||||
}
|
||||
//新增
|
||||
export function addRechargeList(data) {
|
||||
return request({
|
||||
url: '/admin/rechargeList',
|
||||
method: 'post',
|
||||
data:data
|
||||
})
|
||||
}
|
||||
//id查询
|
||||
export function getRechargeListid(id) {
|
||||
return request({
|
||||
url: `/admin/rechargeList/${id}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
//删除
|
||||
export function delRechargeList(id) {
|
||||
return request({
|
||||
url: `/admin/rechargeList/${id}`,
|
||||
method: 'delete',
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/skins/ttRedPack/api.js
Normal file
44
ruoyi-ui/src/api/skins/ttRedPack/api.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询【请填写功能名称】列表
|
||||
export function listTtRedPack(query) {
|
||||
return request({
|
||||
url: '/admin/redPack/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询【请填写功能名称】详细
|
||||
export function getTtRedPack(id) {
|
||||
return request({
|
||||
url: '/admin/redPack/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增【请填写功能名称】
|
||||
export function addTtRedPack(data) {
|
||||
return request({
|
||||
url: '/admin/redPack',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改【请填写功能名称】
|
||||
export function updateTtRedPack(data) {
|
||||
return request({
|
||||
url: '/admin/redPack',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除【请填写功能名称】
|
||||
export function delTtRedPack(id) {
|
||||
return request({
|
||||
url: '/admin/redPack/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/skins/ttReplacementRecord/api.js
Normal file
44
ruoyi-ui/src/api/skins/ttReplacementRecord/api.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询汰换记录列表
|
||||
export function listReplacementRecord(query) {
|
||||
return request({
|
||||
url: '/admin/replacementRecord/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询汰换记录详细
|
||||
export function getReplacementRecord(id) {
|
||||
return request({
|
||||
url: '/admin/replacementRecord/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增汰换记录
|
||||
export function addReplacementRecord(data) {
|
||||
return request({
|
||||
url: '/admin/replacementRecord',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改汰换记录
|
||||
export function updateReplacementRecord(data) {
|
||||
return request({
|
||||
url: '/admin/replacementRecord',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除汰换记录
|
||||
export function delReplacementRecord(id) {
|
||||
return request({
|
||||
url: '/admin/replacementRecord/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
215
ruoyi-ui/src/api/skins/ttRoll/api.js
Normal file
215
ruoyi-ui/src/api/skins/ttRoll/api.js
Normal file
@@ -0,0 +1,215 @@
|
||||
import request from "@/utils/request";
|
||||
|
||||
export function list(query) {
|
||||
return request({
|
||||
url: "/admin/roll/list",
|
||||
method: "get",
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
export function rollJackpotList(query) {
|
||||
return request({
|
||||
url: "/admin/rollJackpot/list",
|
||||
method: "get",
|
||||
params: query
|
||||
});
|
||||
}
|
||||
//Roll房-查看奖项列表
|
||||
export function getRollPrizeList(rollId) {
|
||||
return request({
|
||||
url: `/admin/roll/getRollPrizeList/${rollId}`,
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
// 查看roll奖池的饰品
|
||||
export function rollJackpotOrnamentsList(query) {
|
||||
return request({
|
||||
url: `/admin/rollJackpotOrnaments/list`,
|
||||
method: "get",
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
//指定获奖者
|
||||
export function namedWinner(query) {
|
||||
return request({
|
||||
url: "/admin/roll/namedWinner",
|
||||
method: "post",
|
||||
data: query,
|
||||
});
|
||||
}
|
||||
//取消指定roll房奖品
|
||||
export function cancelNamedWinner(data) {
|
||||
return request({
|
||||
url: "/admin/roll/cancelNamedWinner",
|
||||
method: "delete",
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
//获取指定将品用户 /admin/roll/getRollUsers/{rollId}
|
||||
export function getzhidinguser(rollId) {
|
||||
return request({
|
||||
url: `/admin/roll/getRollUsers/${rollId}`,
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
export function roll(query) {
|
||||
return request({
|
||||
url: "/admin/roll",
|
||||
method: "post",
|
||||
data: query,
|
||||
});
|
||||
}
|
||||
export function rollJackpotCreat(query) {
|
||||
return request({
|
||||
url: "/admin/rollJackpot",
|
||||
method: "post",
|
||||
data: query,
|
||||
});
|
||||
}
|
||||
export function rollJackpotAdd(data) {
|
||||
return request({
|
||||
url: "/admin/rollJackpotOrnaments",
|
||||
method: "post",
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
export function rollJackpotChange(query) {
|
||||
return request({
|
||||
url: "/admin/rollJackpot",
|
||||
method: "put",
|
||||
data: query,
|
||||
});
|
||||
}
|
||||
export function rollChange(query) {
|
||||
return request({
|
||||
url: "/admin/roll",
|
||||
method: "put",
|
||||
data: query,
|
||||
});
|
||||
}
|
||||
export function delRoll(rollId) {
|
||||
return request({
|
||||
url: `/admin/roll/remove/${rollId}`,
|
||||
method: "delete",
|
||||
});
|
||||
}
|
||||
export function rollJackpotOrnamentDel(jackpotId, rollJackpotOrnamentsIds) {
|
||||
return request({
|
||||
url: `/admin/rollJackpotOrnaments/${jackpotId}/${rollJackpotOrnamentsIds}`,
|
||||
method: "delete",
|
||||
});
|
||||
}
|
||||
export function delRollJackpot(jackpotId) {
|
||||
return request({
|
||||
url: `/admin/rollJackpot/remove/${jackpotId}`,
|
||||
method: "delete",
|
||||
});
|
||||
}
|
||||
// 根据id差奖池
|
||||
export function rollJackpotdetial(jackpotId) {
|
||||
return request({
|
||||
url: `/admin/rollJackpot/${jackpotId}`,
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
//修改奖池饰品
|
||||
export function rollJackpotOrnamentsChange(query) {
|
||||
return request({
|
||||
url: `/admin/rollJackpotOrnaments`,
|
||||
method: "put",
|
||||
data: query,
|
||||
});
|
||||
}
|
||||
//Roll房奖池饰品-批量填货
|
||||
export function batchAdd(rollId, OrnamentsIds) {
|
||||
return request({
|
||||
url: `/admin/rollJackpotOrnaments/batchAdd/${rollId}/${OrnamentsIds}`,
|
||||
method: "post",
|
||||
});
|
||||
}
|
||||
|
||||
//时间Roll房-新增时间Roll房
|
||||
export function addtimeRoll(data) {
|
||||
return request({
|
||||
url: `/admin/timeRoll`,
|
||||
method: "post",
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
//时间Roll房-修改时间Roll房数据
|
||||
export function changetimeRoll(data) {
|
||||
return request({
|
||||
url: `/admin/timeRoll`,
|
||||
method: "put",
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
//时间Roll房-状态修改
|
||||
export function changeStatus() {
|
||||
return request({
|
||||
url: `/admin/timeRoll/changeStatus`,
|
||||
method: "put",
|
||||
});
|
||||
}
|
||||
|
||||
//时间Roll房-查看奖项列表
|
||||
|
||||
export function getTimeRollPrizeList() {
|
||||
return request({
|
||||
url: `/admin/timeRoll/getTimeRollPrizeList/${id}`,
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
|
||||
//时间Roll房-查询时间Roll房列表
|
||||
export function getTimeRoll() {
|
||||
return request({
|
||||
url: `/admin/timeRoll/list`,
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
|
||||
//时间Roll房-指定获奖者
|
||||
export function timeNamedWinner(query) {
|
||||
return request({
|
||||
url: `/admin/timeRoll/namedWinner`,
|
||||
method: "post",
|
||||
data: query,
|
||||
});
|
||||
}
|
||||
|
||||
//时间Roll房-删除时间Roll房
|
||||
export function delTimeroll(id) {
|
||||
return request({
|
||||
url: `/admin/timeRoll/remove/${id}`,
|
||||
method: "delete",
|
||||
});
|
||||
}
|
||||
|
||||
//时间Roll房-获取时间Roll房详细信息
|
||||
|
||||
export function getTimeRollDetial(timeRollId) {
|
||||
return request({
|
||||
url: `/admin/timeRoll/${timeRollId}`,
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
|
||||
export function getRollUser(rollId) {
|
||||
return request({
|
||||
url: `/admin/roll/getRollUser/${rollId}`,
|
||||
method: "get"
|
||||
});
|
||||
}
|
||||
|
||||
export function addRobot(data) {
|
||||
return request({
|
||||
url: `/admin/roll/addRobot`,
|
||||
method: "post",
|
||||
data: data
|
||||
});
|
||||
}
|
||||
35
ruoyi-ui/src/api/skins/ttSetting/announcement.js
Normal file
35
ruoyi-ui/src/api/skins/ttSetting/announcement.js
Normal file
@@ -0,0 +1,35 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询公告列表
|
||||
export function listAnnouncement(query) {
|
||||
return request({
|
||||
url: '/admin/announcement/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询公告详细
|
||||
export function getAnnouncement(announcementId) {
|
||||
return request({
|
||||
url: '/admin/announcement/' + announcementId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增公告
|
||||
export function addAnnouncement(data) {
|
||||
return request({
|
||||
url: '/admin/announcement',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除公告
|
||||
export function delAnnouncement(announcementId) {
|
||||
return request({
|
||||
url: '/admin/announcement/' + announcementId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
263
ruoyi-ui/src/api/skins/ttSetting/api.js
Normal file
263
ruoyi-ui/src/api/skins/ttSetting/api.js
Normal file
@@ -0,0 +1,263 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
//banner
|
||||
//banner列表
|
||||
export function getBanner(query) {
|
||||
return request({
|
||||
url: '/admin/banner/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
export function getBannerid(id) {
|
||||
return request({
|
||||
url: `/admin/banner/${id}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
//添加banner
|
||||
export function addBanner(query) {
|
||||
return request({
|
||||
url: '/admin/banner',
|
||||
method: 'post',
|
||||
data: query
|
||||
})
|
||||
}
|
||||
//删除
|
||||
export function delBanner(ids) {
|
||||
return request({
|
||||
url: `/admin/banner/${ids}`,
|
||||
method: 'delete',
|
||||
})
|
||||
}
|
||||
//修改banner
|
||||
export function changeBanner(query) {
|
||||
return request({
|
||||
url: '/admin/banner',
|
||||
method: 'put',
|
||||
data: query
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//avatar
|
||||
//avatar列表
|
||||
|
||||
export function getuserAvatar(query) {
|
||||
return request({
|
||||
url: '/admin/userAvatar/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
//新增
|
||||
export function adduserAvatar(query) {
|
||||
return request({
|
||||
url: '/admin/userAvatar',
|
||||
method: 'post',
|
||||
data: query
|
||||
})
|
||||
}
|
||||
//修改
|
||||
export function changheuserAvatar(query) {
|
||||
return request({
|
||||
url: '/admin/userAvatar',
|
||||
method: 'put',
|
||||
data: query
|
||||
})
|
||||
}
|
||||
//删除
|
||||
export function deluserAvatar(ids) {
|
||||
return request({
|
||||
url: `/admin/userAvatar/${ids}`,
|
||||
method: 'delete',
|
||||
})
|
||||
}
|
||||
//id
|
||||
export function getuserAvatarid(id) {
|
||||
return request({
|
||||
url: `/admin/userAvatar/${id}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//综合设置
|
||||
export function getParameterSetting() {
|
||||
return request({
|
||||
url: `/admin/websiteSetup/getParameterSetting`,
|
||||
method: 'post',
|
||||
})
|
||||
}
|
||||
|
||||
//
|
||||
export function updateParameterSetting(data) {
|
||||
return request({
|
||||
url: `/admin/websiteSetup/updateParameterSetting`,
|
||||
method: 'post',
|
||||
data:data
|
||||
})
|
||||
}
|
||||
//vip等级-生成vip等级
|
||||
export function addVipLevel(num) {
|
||||
return request({
|
||||
url: `/admin/vipLevel/generateVipLevel/${num}`,
|
||||
method: 'post',
|
||||
})
|
||||
}
|
||||
//vip等级-获取vip等级详细信息
|
||||
export function getVipLevelid(id) {
|
||||
return request({
|
||||
url: `/admin/vipLevel/${id}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
//vip等级-重置vip等级
|
||||
export function resetVipLevel(id) {
|
||||
return request({
|
||||
url: `/admin/vipLevel`,
|
||||
method: 'post',
|
||||
})
|
||||
}
|
||||
|
||||
//vip等级-获取vip等级列表
|
||||
export function getVipLevel() {
|
||||
return request({
|
||||
url: `/admin/vipLevel/list`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
//vip等级-修改vip等级
|
||||
export function changeVipLevel(data) {
|
||||
return request({
|
||||
url: `/admin/vipLevel`,
|
||||
method: 'put',
|
||||
data:data
|
||||
})
|
||||
}
|
||||
|
||||
//推广等级-生成推广等级
|
||||
export function generatePromotionLevel(num) {
|
||||
return request({
|
||||
url: `/admin/promotionLevel/generatePromotionLevel/${num}`,
|
||||
method: 'post',
|
||||
})
|
||||
}
|
||||
//推广等级-获取推广等级详细信息
|
||||
export function getPromotionLevelid(id) {
|
||||
return request({
|
||||
url: `/admin/promotionLevel/${id}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
//推广等级-重置推广等级
|
||||
export function resetPromotionLevel() {
|
||||
return request({
|
||||
url: `/admin/promotionLevel`,
|
||||
method: 'post',
|
||||
})
|
||||
}
|
||||
|
||||
//推广等级-获取推广等级列表
|
||||
export function getPromotionLevel() {
|
||||
return request({
|
||||
url: `/admin/promotionLevel/list`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
//推广等级-修改推广等级
|
||||
export function changePromotionLevel(data) {
|
||||
return request({
|
||||
url: `/admin/promotionLevel`,
|
||||
method: 'put',
|
||||
data:data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//文章管理-查询文章列表
|
||||
export function getContent(query) {
|
||||
return request({
|
||||
url: `admin/content/list`,
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
//文章管理-查询文章详细信息显示
|
||||
export function getContentid(id) {
|
||||
return request({
|
||||
url: `/admin/content/${id}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
//删除
|
||||
export function delContent(ids) {
|
||||
return request({
|
||||
url: `/admin/content/${ids}`,
|
||||
method: 'delete',
|
||||
})
|
||||
}
|
||||
//文章管理-新增文章列表
|
||||
export function addContent(data) {
|
||||
return request({
|
||||
url: `/admin/content`,
|
||||
method: 'post',
|
||||
data:data
|
||||
})
|
||||
}
|
||||
//文章管理-修改文章
|
||||
export function changeContent(data) {
|
||||
return request({
|
||||
url: `/admin/content`,
|
||||
method: 'put',
|
||||
data:data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//文章类别管理-文章类别列表
|
||||
export function getContentType(data) {
|
||||
return request({
|
||||
url: `admin/contentType/list`,
|
||||
method: 'get',
|
||||
params:data
|
||||
})
|
||||
}
|
||||
//文章类别管理-获取文章类别详细信息
|
||||
export function getContentTypeid(id) {
|
||||
return request({
|
||||
url: `/admin/contentType/${id}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
//文章类别管理-删除文章类别
|
||||
export function delContentType(ids) {
|
||||
return request({
|
||||
url: `/admin/contentType/${ids}`,
|
||||
method: 'delete',
|
||||
})
|
||||
}
|
||||
//文章类别管理-新增文章类别
|
||||
export function addContentType(data) {
|
||||
return request({
|
||||
url: `/admin/contentType`,
|
||||
method: 'post',
|
||||
data:data
|
||||
})
|
||||
}
|
||||
//文章类别管理-修改文章类别
|
||||
export function changeContentType(data) {
|
||||
return request({
|
||||
url: `/admin/contentType`,
|
||||
method: 'put',
|
||||
data:data
|
||||
})
|
||||
}
|
||||
//
|
||||
export function getOperationalStatistics() {
|
||||
return request({
|
||||
url: `/admin/websiteSetup/getOperationalStatistics`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
16
ruoyi-ui/src/api/skins/ttShopping/api.js
Normal file
16
ruoyi-ui/src/api/skins/ttShopping/api.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function shoppingList(query) {
|
||||
return request({
|
||||
url: '/admin/shopping/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
export function batchPutAwayOrSoldOut(query, status) {
|
||||
return request({
|
||||
url: `/admin/shopping/batchPutAwayOrSoldOut/${status}`,
|
||||
method: 'post',
|
||||
data: query
|
||||
})
|
||||
}
|
||||
168
ruoyi-ui/src/api/skins/ttStatistics/api.js
Normal file
168
ruoyi-ui/src/api/skins/ttStatistics/api.js
Normal file
@@ -0,0 +1,168 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询大盘统计数据
|
||||
export function getStatistics(query) {
|
||||
return request({
|
||||
url: '/admin/statistics/info',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询宝箱数据详细
|
||||
export function getBox(boxId) {
|
||||
return request({
|
||||
url: '/admin/box/' + boxId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增宝箱数据
|
||||
export function addBox(data) {
|
||||
return request({
|
||||
url: '/admin/box',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改宝箱数据
|
||||
export function updateBox(data) {
|
||||
return request({
|
||||
url: '/admin/box',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除宝箱数据
|
||||
export function delBox(boxId) {
|
||||
return request({
|
||||
url: '/admin/box/' + boxId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
//宝箱类型
|
||||
export function boxTypelist(data) {
|
||||
return request({
|
||||
url: '/admin/boxType/list',
|
||||
method: 'get',
|
||||
params:data
|
||||
})
|
||||
}
|
||||
//新增宝箱
|
||||
|
||||
export function boxType(data) {
|
||||
return request({
|
||||
url: '/admin/boxType',
|
||||
method: 'post',
|
||||
data:data
|
||||
})
|
||||
}
|
||||
//
|
||||
export function boxTypeChange(data) {
|
||||
return request({
|
||||
url: '/admin/boxType',
|
||||
method: 'put',
|
||||
data:data
|
||||
})
|
||||
}
|
||||
//
|
||||
export function boxTypeId(id) {
|
||||
return request({
|
||||
url: `/admin/boxType/${id}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
//
|
||||
export function boxChange(data) {
|
||||
return request({
|
||||
url: `/admin/box`,
|
||||
method: 'put',
|
||||
data:data
|
||||
})
|
||||
}
|
||||
//宝箱类型-删除宝箱类型数据
|
||||
export function delBoxType(ids) {
|
||||
return request({
|
||||
url: `/admin/boxType/${ids}`,
|
||||
method: 'delete',
|
||||
})
|
||||
}
|
||||
//宝箱-查看奖项
|
||||
export function getBoxOrnaments(boxId,page,size) {
|
||||
return request({
|
||||
url: `/admin/boxOrnaments/list/${boxId}?pageNum=${page}&pageSize=${size}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
//宝箱-修改奖项
|
||||
export function saveBoxOrnaments(data) {
|
||||
return request({
|
||||
url: `/admin/boxOrnaments`,
|
||||
method: 'put',
|
||||
data:data
|
||||
})
|
||||
}
|
||||
//宝箱-新增奖项
|
||||
export function addBoxOrnaments(data) {
|
||||
return request({
|
||||
url: `/admin/boxOrnaments`,
|
||||
method: 'post',
|
||||
data:data
|
||||
})
|
||||
}
|
||||
//宝箱-获取奖项详细信息
|
||||
export function getidBoxOrnaments(id) {
|
||||
return request({
|
||||
url: `/admin/boxOrnaments/${id}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
//宝箱-获取奖项详细信息
|
||||
export function delBoxOrnaments(boxId,ids) {
|
||||
return request({
|
||||
url: `/admin/boxOrnaments/${boxId}/${ids}`,
|
||||
method: 'delete',
|
||||
})
|
||||
}
|
||||
//宝箱记录-获取宝箱记录数据列表
|
||||
export function getBoxRecords(data) {
|
||||
return request({
|
||||
url: `/admin/boxRecords/list`,
|
||||
method: 'get',
|
||||
params:data
|
||||
})
|
||||
}
|
||||
//获取宝箱利润率
|
||||
export function getProfitMargin(boxId) {
|
||||
return request({
|
||||
url: `/admin/boxOrnaments/getProfitMargin/${boxId}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
//宝箱饰品-批量填货
|
||||
export function batchAdd(data) {
|
||||
return request({
|
||||
url: `/admin/boxOrnaments/batchAdd`,
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
//宝箱-重置宝箱
|
||||
export function resetBox(boxId) {
|
||||
return request({
|
||||
url: `/admin/box/resetBox/${boxId}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
//
|
||||
//宝箱-统计宝箱数据
|
||||
export function countBox(boxId,data) {
|
||||
return request({
|
||||
url: `/admin/box/statisticsBoxData/${boxId}?date=${data}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/skins/ttTaskCenter/api.js
Normal file
44
ruoyi-ui/src/api/skins/ttTaskCenter/api.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询任务中心列表
|
||||
export function listTaskCenter(query) {
|
||||
return request({
|
||||
url: '/admin/taskCenter/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询任务中心详细
|
||||
export function getTaskCenter(id) {
|
||||
return request({
|
||||
url: '/admin/taskCenter/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增任务中心
|
||||
export function addTaskCenter(data) {
|
||||
return request({
|
||||
url: '/admin/taskCenter',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改任务中心
|
||||
export function updateTaskCenter(data) {
|
||||
return request({
|
||||
url: '/admin/taskCenter',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除任务中心
|
||||
export function delTaskCenter(id) {
|
||||
return request({
|
||||
url: '/admin/taskCenter/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
93
ruoyi-ui/src/api/skins/ttUpgrade/api.js
Normal file
93
ruoyi-ui/src/api/skins/ttUpgrade/api.js
Normal file
@@ -0,0 +1,93 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询幸运升级数据列表
|
||||
export function getupgradeOrnaments(query) {
|
||||
return request({
|
||||
url: '/admin/upgradeOrnaments/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询幸运升级数据详细
|
||||
export function getUpgradeOrnamentsid(id) {
|
||||
return request({
|
||||
url: '/admin/upgradeOrnaments/'+ id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增幸运升级数据
|
||||
export function addUpgradeOrnaments(data) {
|
||||
return request({
|
||||
url: `/admin/upgradeOrnaments/batchAdd/${data}`,
|
||||
method: 'post',
|
||||
// data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改幸运升级数据
|
||||
export function updateUpgradeOrnaments(data) {
|
||||
return request({
|
||||
url: '/admin/upgradeOrnaments',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除幸运升级数据
|
||||
export function delUpgradeOrnaments(ids) {
|
||||
return request({
|
||||
url: `/admin/upgradeOrnaments/${ids}`,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
//失败奖励-删除奖励
|
||||
export function delFail(ids) {
|
||||
return request({
|
||||
url: `/admin/upgradeFailOrnaments/${ids}`,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
//失败奖励-获取奖励列表
|
||||
export function getFail(data) {
|
||||
return request({
|
||||
url: `/admin/upgradeFailOrnaments/list`,
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
//失败 添加
|
||||
export function addFail(data) {
|
||||
return request({
|
||||
url: `/admin/upgradeFailOrnaments/batchAdd`,
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
//失败 更新
|
||||
export function upFail(data) {
|
||||
return request({
|
||||
url: `/admin/upgradeFailOrnaments`,
|
||||
method: 'put',
|
||||
data:data
|
||||
})
|
||||
}
|
||||
|
||||
export function getupgradeRecord(data) {
|
||||
return request({
|
||||
url: '/admin/upgradeRecord/list',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
//统计-获取升级饰品利润统计
|
||||
export function getUserProfitStatistics(id) {
|
||||
return request({
|
||||
url:`/admin/upgradeOrnaments/getUpgradeProfitStatistics/${id}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
10
ruoyi-ui/src/api/skins/ttUserBlendErcash/api.js
Normal file
10
ruoyi-ui/src/api/skins/ttUserBlendErcash/api.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询收支明细
|
||||
export function getUserBlendErcash(data) {
|
||||
return request({
|
||||
url: '/admin/blendErcash/list',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/skins/ttWelfare/api.js
Normal file
44
ruoyi-ui/src/api/skins/ttWelfare/api.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询福利列表列表
|
||||
export function listWelfare(query) {
|
||||
return request({
|
||||
url: '/admin/welfare/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询福利列表详细
|
||||
export function getWelfare(welfareId) {
|
||||
return request({
|
||||
url: '/admin/welfare/' + welfareId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增福利列表
|
||||
export function addWelfare(data) {
|
||||
return request({
|
||||
url: '/admin/welfare',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改福利列表
|
||||
export function updateWelfare(data) {
|
||||
return request({
|
||||
url: '/admin/welfare',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除福利列表
|
||||
export function delWelfare(welfareId) {
|
||||
return request({
|
||||
url: '/admin/welfare/' + welfareId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/skins/ttWelfare/monthlyRecharges.js
Normal file
44
ruoyi-ui/src/api/skins/ttWelfare/monthlyRecharges.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询每月充值福利列表
|
||||
export function listRecharges(query) {
|
||||
return request({
|
||||
url: '/admin/recharges/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询每月充值福利详细
|
||||
export function getRecharges(id) {
|
||||
return request({
|
||||
url: '/admin/recharges/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增每月充值福利
|
||||
export function addRecharges(data) {
|
||||
return request({
|
||||
url: '/admin/recharges',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改每月充值福利
|
||||
export function updateRecharges(data) {
|
||||
return request({
|
||||
url: '/admin/recharges',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除每月充值福利
|
||||
export function delRecharges(id) {
|
||||
return request({
|
||||
url: '/admin/recharges/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
58
ruoyi-ui/src/api/skins/ttWelfare/rechargeRankingReward.js
Normal file
58
ruoyi-ui/src/api/skins/ttWelfare/rechargeRankingReward.js
Normal file
@@ -0,0 +1,58 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询充值奖励金额列表
|
||||
export function listReward(query) {
|
||||
return request({
|
||||
url: '/admin/rechargeRankingReward/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询充值奖励金额详细
|
||||
export function getReward(id) {
|
||||
return request({
|
||||
url: '/admin/rechargeRankingReward/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增充值奖励金额
|
||||
export function addReward(data) {
|
||||
return request({
|
||||
url: '/admin/rechargeRankingReward',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
export function generateRankingReward() {
|
||||
return request({
|
||||
url: '/admin/rechargeRankingReward/generateRankingReward',
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
|
||||
// 修改充值奖励金额
|
||||
export function updateReward(data) {
|
||||
return request({
|
||||
url: '/admin/rechargeRankingReward',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除充值奖励金额
|
||||
export function delReward(id) {
|
||||
return request({
|
||||
url: '/admin/rechargeRankingReward/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
export function truncateRankingReward() {
|
||||
return request({
|
||||
url: '/admin/rechargeRankingReward/truncateRankingReward',
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
67
ruoyi-ui/src/api/skins/ttdelivery/api.js
Normal file
67
ruoyi-ui/src/api/skins/ttdelivery/api.js
Normal file
@@ -0,0 +1,67 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
//申请记录
|
||||
export function deliverGoodslist(query) {
|
||||
return request({
|
||||
url: '/admin/deliverGoods/getDeliveryApplyList',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
//获取饰品所有在售列表
|
||||
export function getAvailableMarketList(data) {
|
||||
return request({
|
||||
url: '/admin/deliverGoods/getAvailableMarketList',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
//同步状态
|
||||
export function synchronousStatus(query) {
|
||||
return request({
|
||||
url: `/admin/deliverGoods/synchronousStatus`,
|
||||
method: 'get',
|
||||
params:query
|
||||
})
|
||||
}
|
||||
// 一键同步状态
|
||||
export function syncAllStatus() {
|
||||
return request({
|
||||
url: '/admin/deliverGoods/syncAllStatus',
|
||||
method: 'get',
|
||||
timeout: 30000
|
||||
})
|
||||
}
|
||||
//提货记录
|
||||
export function getDeliveryRecordList(query) {
|
||||
return request({
|
||||
url: '/admin/deliverGoods/getDeliveryRecordList',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
//发货
|
||||
export function tradeBuy(data) {
|
||||
return request({
|
||||
url: '/admin/deliverGoods/tradeBuy',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
//退回
|
||||
export function deliveryFail(query) {
|
||||
return request({
|
||||
url: '/admin/deliverGoods/deliveryFail',
|
||||
method: 'post',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询cs2pifa在售信息
|
||||
export function queryOnSaleInfo(data) {
|
||||
return request({
|
||||
url: '/admin/cs340item/queryOnSaleInfo',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
48
ruoyi-ui/src/api/skins/ttredPacket/api.js
Normal file
48
ruoyi-ui/src/api/skins/ttredPacket/api.js
Normal file
@@ -0,0 +1,48 @@
|
||||
|
||||
import request from '@/utils/request'
|
||||
export function getRedPacket(query) {
|
||||
return request({
|
||||
url: '/admin/redPacket/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
export function addRedPacket(query) {
|
||||
return request({
|
||||
url: '/admin/redPacket',
|
||||
method: 'post',
|
||||
data: query
|
||||
})
|
||||
}
|
||||
//删除
|
||||
export function delRedPacket(ids) {
|
||||
return request({
|
||||
url: `/admin/redPacket/${ids}`,
|
||||
method: 'delete',
|
||||
})
|
||||
}
|
||||
//根据id查询
|
||||
export function getRedPacketid(ids) {
|
||||
return request({
|
||||
url: `/admin/redPacket/${ids}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
//修改
|
||||
export function changeRedPacket(query) {
|
||||
return request({
|
||||
url: `/admin/redPacket`,
|
||||
method: 'put',
|
||||
data: query
|
||||
|
||||
})
|
||||
}
|
||||
//开启记录
|
||||
export function getRedPacketRecordList(query) {
|
||||
return request({
|
||||
url: `/admin/redPacketRecord/getRedPacketRecordList`,
|
||||
method: 'get',
|
||||
params: query
|
||||
|
||||
})
|
||||
}
|
||||
126
ruoyi-ui/src/api/skins/ttuser/api.js
Normal file
126
ruoyi-ui/src/api/skins/ttuser/api.js
Normal file
@@ -0,0 +1,126 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询注册用户信息列表
|
||||
export function listUser(query) {
|
||||
return request({
|
||||
url: '/admin/user/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询注册用户信息详细
|
||||
export function getUser(userId) {
|
||||
return request({
|
||||
url: '/admin/user/' + userId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 修改注册用户信息
|
||||
export function updateUser(data) {
|
||||
return request({
|
||||
url: '/admin/user',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除注册用户信息
|
||||
export function delUser(userId) {
|
||||
return request({
|
||||
url: '/admin/user/' + userId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
export function listUser_Online(query) {
|
||||
return request({
|
||||
url: '/admin/user/online/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function generateAccount(query) {
|
||||
return request({
|
||||
url:`/admin/user/generateAccount/${query}`,
|
||||
method:'post'
|
||||
})
|
||||
}
|
||||
|
||||
export function generateRobot(query) {
|
||||
return request({
|
||||
url:`/admin/user/generateRobot/${query}`,
|
||||
method:'post'
|
||||
})
|
||||
}
|
||||
|
||||
//用户账户-余额变动记录
|
||||
export function userAmountRecords(data) {
|
||||
return request({
|
||||
url:`/admin/userAmountRecords/list`,
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
//用户账户-积分变动记录
|
||||
export function userCreditsRecords(data) {
|
||||
return request({
|
||||
url:`/admin/userCreditsRecords/list`,
|
||||
method: 'get',
|
||||
params:data
|
||||
})
|
||||
}
|
||||
//获取用户背包
|
||||
export function getPackSack(data) {
|
||||
return request({
|
||||
url:`/admin/user/getPackSack`,
|
||||
method: 'get',
|
||||
params:data
|
||||
})
|
||||
}
|
||||
|
||||
// 推广记录-获取推广记录
|
||||
export function getPromotionRecord(data) {
|
||||
return request({
|
||||
url:`/admin/promotionRecord/getPromotionRecord`,
|
||||
method: 'get',
|
||||
params:data
|
||||
})
|
||||
}
|
||||
export function statisticsPromotionData(userId) {
|
||||
return request({
|
||||
url:`/admin/promotionRecord/statisticsPromotionData/${userId}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
//用户背包-删除用户背包饰品
|
||||
export function removeUserPackSackData(ids) {
|
||||
return request({
|
||||
url:`/admin/user/removeUserPackSackData/${ids}`,
|
||||
method: 'post',
|
||||
})
|
||||
}
|
||||
//统计-获取用户利润统计
|
||||
export function getUserProfitStatistics(userId) {
|
||||
return request({
|
||||
url:`/admin/user/getUserProfitStatistics/${userId}`,
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
// 重置用户余额和积分
|
||||
export function resetUserBalance(userId) {
|
||||
return request({
|
||||
url: `/admin/user/resetBalance/${userId}`,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
||||
// 真删除用户(物理删除)
|
||||
export function forceDeleteUser(userId) {
|
||||
return request({
|
||||
url: `/admin/user/forceDelete/${userId}`,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
60
ruoyi-ui/src/api/system/config.js
Normal file
60
ruoyi-ui/src/api/system/config.js
Normal file
@@ -0,0 +1,60 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询参数列表
|
||||
export function listConfig(query) {
|
||||
return request({
|
||||
url: '/system/config/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询参数详细
|
||||
export function getConfig(configId) {
|
||||
return request({
|
||||
url: '/system/config/' + configId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 根据参数键名查询参数值
|
||||
export function getConfigKey(configKey) {
|
||||
return request({
|
||||
url: '/system/config/configKey/' + configKey,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增参数配置
|
||||
export function addConfig(data) {
|
||||
return request({
|
||||
url: '/system/config',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改参数配置
|
||||
export function updateConfig(data) {
|
||||
return request({
|
||||
url: '/system/config',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除参数配置
|
||||
export function delConfig(configId) {
|
||||
return request({
|
||||
url: '/system/config/' + configId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 刷新参数缓存
|
||||
export function refreshCache() {
|
||||
return request({
|
||||
url: '/system/config/refreshCache',
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
52
ruoyi-ui/src/api/system/dept.js
Normal file
52
ruoyi-ui/src/api/system/dept.js
Normal file
@@ -0,0 +1,52 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询部门列表
|
||||
export function listDept(query) {
|
||||
return request({
|
||||
url: '/system/dept/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询部门列表(排除节点)
|
||||
export function listDeptExcludeChild(deptId) {
|
||||
return request({
|
||||
url: '/system/dept/list/exclude/' + deptId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询部门详细
|
||||
export function getDept(deptId) {
|
||||
return request({
|
||||
url: '/system/dept/' + deptId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增部门
|
||||
export function addDept(data) {
|
||||
return request({
|
||||
url: '/system/dept',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改部门
|
||||
export function updateDept(data) {
|
||||
return request({
|
||||
url: '/system/dept',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除部门
|
||||
export function delDept(deptId) {
|
||||
return request({
|
||||
url: '/system/dept/' + deptId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
52
ruoyi-ui/src/api/system/dict/data.js
Normal file
52
ruoyi-ui/src/api/system/dict/data.js
Normal file
@@ -0,0 +1,52 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询字典数据列表
|
||||
export function listData(query) {
|
||||
return request({
|
||||
url: '/system/dict/data/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询字典数据详细
|
||||
export function getData(dictCode) {
|
||||
return request({
|
||||
url: '/system/dict/data/' + dictCode,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 根据字典类型查询字典数据信息
|
||||
export function getDicts(dictType) {
|
||||
return request({
|
||||
url: '/system/dict/data/type/' + dictType,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增字典数据
|
||||
export function addData(data) {
|
||||
return request({
|
||||
url: '/system/dict/data',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改字典数据
|
||||
export function updateData(data) {
|
||||
return request({
|
||||
url: '/system/dict/data',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除字典数据
|
||||
export function delData(dictCode) {
|
||||
return request({
|
||||
url: '/system/dict/data/' + dictCode,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
60
ruoyi-ui/src/api/system/dict/type.js
Normal file
60
ruoyi-ui/src/api/system/dict/type.js
Normal file
@@ -0,0 +1,60 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询字典类型列表
|
||||
export function listType(query) {
|
||||
return request({
|
||||
url: '/system/dict/type/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询字典类型详细
|
||||
export function getType(dictId) {
|
||||
return request({
|
||||
url: '/system/dict/type/' + dictId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增字典类型
|
||||
export function addType(data) {
|
||||
return request({
|
||||
url: '/system/dict/type',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改字典类型
|
||||
export function updateType(data) {
|
||||
return request({
|
||||
url: '/system/dict/type',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除字典类型
|
||||
export function delType(dictId) {
|
||||
return request({
|
||||
url: '/system/dict/type/' + dictId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 刷新字典缓存
|
||||
export function refreshCache() {
|
||||
return request({
|
||||
url: '/system/dict/type/refreshCache',
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获取字典选择框列表
|
||||
export function optionselect() {
|
||||
return request({
|
||||
url: '/system/dict/type/optionselect',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
60
ruoyi-ui/src/api/system/menu.js
Normal file
60
ruoyi-ui/src/api/system/menu.js
Normal file
@@ -0,0 +1,60 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询菜单列表
|
||||
export function listMenu(query) {
|
||||
return request({
|
||||
url: '/system/menu/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询菜单详细
|
||||
export function getMenu(menuId) {
|
||||
return request({
|
||||
url: '/system/menu/' + menuId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询菜单下拉树结构
|
||||
export function treeselect() {
|
||||
return request({
|
||||
url: '/system/menu/treeselect',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 根据角色ID查询菜单下拉树结构
|
||||
export function roleMenuTreeselect(roleId) {
|
||||
return request({
|
||||
url: '/system/menu/roleMenuTreeselect/' + roleId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增菜单
|
||||
export function addMenu(data) {
|
||||
return request({
|
||||
url: '/system/menu',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改菜单
|
||||
export function updateMenu(data) {
|
||||
return request({
|
||||
url: '/system/menu',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除菜单
|
||||
export function delMenu(menuId) {
|
||||
return request({
|
||||
url: '/system/menu/' + menuId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/system/notice.js
Normal file
44
ruoyi-ui/src/api/system/notice.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询公告列表
|
||||
export function listNotice(query) {
|
||||
return request({
|
||||
url: '/system/notice/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询公告详细
|
||||
export function getNotice(noticeId) {
|
||||
return request({
|
||||
url: '/system/notice/' + noticeId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增公告
|
||||
export function addNotice(data) {
|
||||
return request({
|
||||
url: '/system/notice',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改公告
|
||||
export function updateNotice(data) {
|
||||
return request({
|
||||
url: '/system/notice',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除公告
|
||||
export function delNotice(noticeId) {
|
||||
return request({
|
||||
url: '/system/notice/' + noticeId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
ruoyi-ui/src/api/system/post.js
Normal file
44
ruoyi-ui/src/api/system/post.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询岗位列表
|
||||
export function listPost(query) {
|
||||
return request({
|
||||
url: '/system/post/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询岗位详细
|
||||
export function getPost(postId) {
|
||||
return request({
|
||||
url: '/system/post/' + postId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增岗位
|
||||
export function addPost(data) {
|
||||
return request({
|
||||
url: '/system/post',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改岗位
|
||||
export function updatePost(data) {
|
||||
return request({
|
||||
url: '/system/post',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除岗位
|
||||
export function delPost(postId) {
|
||||
return request({
|
||||
url: '/system/post/' + postId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
119
ruoyi-ui/src/api/system/role.js
Normal file
119
ruoyi-ui/src/api/system/role.js
Normal file
@@ -0,0 +1,119 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询角色列表
|
||||
export function listRole(query) {
|
||||
return request({
|
||||
url: '/system/role/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询角色详细
|
||||
export function getRole(roleId) {
|
||||
return request({
|
||||
url: '/system/role/' + roleId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增角色
|
||||
export function addRole(data) {
|
||||
return request({
|
||||
url: '/system/role',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改角色
|
||||
export function updateRole(data) {
|
||||
return request({
|
||||
url: '/system/role',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 角色数据权限
|
||||
export function dataScope(data) {
|
||||
return request({
|
||||
url: '/system/role/dataScope',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 角色状态修改
|
||||
export function changeRoleStatus(roleId, status) {
|
||||
const data = {
|
||||
roleId,
|
||||
status
|
||||
}
|
||||
return request({
|
||||
url: '/system/role/changeStatus',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除角色
|
||||
export function delRole(roleId) {
|
||||
return request({
|
||||
url: '/system/role/' + roleId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 查询角色已授权用户列表
|
||||
export function allocatedUserList(query) {
|
||||
return request({
|
||||
url: '/system/role/authUser/allocatedList',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询角色未授权用户列表
|
||||
export function unallocatedUserList(query) {
|
||||
return request({
|
||||
url: '/system/role/authUser/unallocatedList',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 取消用户授权角色
|
||||
export function authUserCancel(data) {
|
||||
return request({
|
||||
url: '/system/role/authUser/cancel',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 批量取消用户授权角色
|
||||
export function authUserCancelAll(data) {
|
||||
return request({
|
||||
url: '/system/role/authUser/cancelAll',
|
||||
method: 'put',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 授权用户选择
|
||||
export function authUserSelectAll(data) {
|
||||
return request({
|
||||
url: '/system/role/authUser/selectAll',
|
||||
method: 'put',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 根据角色ID查询部门树结构
|
||||
export function deptTreeSelect(roleId) {
|
||||
return request({
|
||||
url: '/system/role/deptTree/' + roleId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
135
ruoyi-ui/src/api/system/user.js
Normal file
135
ruoyi-ui/src/api/system/user.js
Normal file
@@ -0,0 +1,135 @@
|
||||
import request from '@/utils/request'
|
||||
import { parseStrEmpty } from "@/utils/ruoyi";
|
||||
|
||||
// 查询用户列表
|
||||
export function listUser(query) {
|
||||
return request({
|
||||
url: '/system/user/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询用户详细
|
||||
export function getUser(userId) {
|
||||
return request({
|
||||
url: '/system/user/' + parseStrEmpty(userId),
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增用户
|
||||
export function addUser(data) {
|
||||
return request({
|
||||
url: '/system/user',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改用户
|
||||
export function updateUser(data) {
|
||||
return request({
|
||||
url: '/system/user',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除用户
|
||||
export function delUser(userId) {
|
||||
return request({
|
||||
url: '/system/user/' + userId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 用户密码重置
|
||||
export function resetUserPwd(userId, password) {
|
||||
const data = {
|
||||
userId,
|
||||
password
|
||||
}
|
||||
return request({
|
||||
url: '/system/user/resetPwd',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 用户状态修改
|
||||
export function changeUserStatus(userId, status) {
|
||||
const data = {
|
||||
userId,
|
||||
status
|
||||
}
|
||||
return request({
|
||||
url: '/system/user/changeStatus',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 查询用户个人信息
|
||||
export function getUserProfile() {
|
||||
return request({
|
||||
url: '/system/user/profile',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 修改用户个人信息
|
||||
export function updateUserProfile(data) {
|
||||
return request({
|
||||
url: '/system/user/profile',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 用户密码重置
|
||||
export function updateUserPwd(oldPassword, newPassword) {
|
||||
const data = {
|
||||
oldPassword,
|
||||
newPassword
|
||||
}
|
||||
return request({
|
||||
url: '/system/user/profile/updatePwd',
|
||||
method: 'put',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 用户头像上传
|
||||
export function uploadAvatar(data) {
|
||||
return request({
|
||||
url: '/system/user/profile/avatar',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 查询授权角色
|
||||
export function getAuthRole(userId) {
|
||||
return request({
|
||||
url: '/system/user/authRole/' + userId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 保存授权角色
|
||||
export function updateAuthRole(data) {
|
||||
return request({
|
||||
url: '/system/user/authRole',
|
||||
method: 'put',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 查询部门下拉树结构
|
||||
export function deptTreeSelect() {
|
||||
return request({
|
||||
url: '/system/user/deptTree',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
76
ruoyi-ui/src/api/tool/gen.js
Normal file
76
ruoyi-ui/src/api/tool/gen.js
Normal file
@@ -0,0 +1,76 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询生成表数据
|
||||
export function listTable(query) {
|
||||
return request({
|
||||
url: '/tool/gen/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
// 查询db数据库列表
|
||||
export function listDbTable(query) {
|
||||
return request({
|
||||
url: '/tool/gen/db/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询表详细信息
|
||||
export function getGenTable(tableId) {
|
||||
return request({
|
||||
url: '/tool/gen/' + tableId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 修改代码生成信息
|
||||
export function updateGenTable(data) {
|
||||
return request({
|
||||
url: '/tool/gen',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 导入表
|
||||
export function importTable(data) {
|
||||
return request({
|
||||
url: '/tool/gen/importTable',
|
||||
method: 'post',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 预览生成代码
|
||||
export function previewTable(tableId) {
|
||||
return request({
|
||||
url: '/tool/gen/preview/' + tableId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 删除表数据
|
||||
export function delTable(tableId) {
|
||||
return request({
|
||||
url: '/tool/gen/' + tableId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 生成代码(自定义路径)
|
||||
export function genCode(tableName) {
|
||||
return request({
|
||||
url: '/tool/gen/genCode/' + tableName,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 同步数据库
|
||||
export function synchDb(tableName) {
|
||||
return request({
|
||||
url: '/tool/gen/synchDb/' + tableName,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
BIN
ruoyi-ui/src/assets/401_images/401.gif
Normal file
BIN
ruoyi-ui/src/assets/401_images/401.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 160 KiB |
BIN
ruoyi-ui/src/assets/404_images/404.png
Normal file
BIN
ruoyi-ui/src/assets/404_images/404.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 96 KiB |
BIN
ruoyi-ui/src/assets/404_images/404_cloud.png
Normal file
BIN
ruoyi-ui/src/assets/404_images/404_cloud.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.7 KiB |
9
ruoyi-ui/src/assets/icons/index.js
Normal file
9
ruoyi-ui/src/assets/icons/index.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import Vue from 'vue'
|
||||
import SvgIcon from '@/components/SvgIcon'// svg component
|
||||
|
||||
// register globally
|
||||
Vue.component('svg-icon', SvgIcon)
|
||||
|
||||
const req = require.context('./svg', false, /\.svg$/)
|
||||
const requireAll = requireContext => requireContext.keys().map(requireContext)
|
||||
requireAll(req)
|
||||
1
ruoyi-ui/src/assets/icons/svg/404.svg
Normal file
1
ruoyi-ui/src/assets/icons/svg/404.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg width="128" height="128" xmlns="http://www.w3.org/2000/svg"><path d="M121.718 73.272v9.953c3.957-7.584 6.199-16.05 6.199-24.995C127.917 26.079 99.273 0 63.958 0 28.644 0 0 26.079 0 58.23c0 .403.028.806.028 1.21l22.97-25.953h13.34l-19.76 27.187h6.42V53.77l13.728-19.477v49.361H22.998V73.272H2.158c5.951 20.284 23.608 36.208 45.998 41.399-1.44 3.3-5.618 11.263-12.565 12.674-8.607 1.764 23.358.428 46.163-13.178 17.519-4.611 31.938-15.849 39.77-30.513h-13.506V73.272H85.02V59.464l22.998-25.977h13.008l-19.429 27.187h6.421v-7.433l13.727-19.402v39.433h-.027zm-78.24 2.822a10.516 10.516 0 0 1-.996-4.535V44.548c0-1.613.332-3.124.996-4.535a11.66 11.66 0 0 1 2.713-3.68c1.134-1.032 2.49-1.864 4.04-2.468 1.55-.605 3.21-.908 4.982-.908h11.292c1.77 0 3.431.303 4.981.908 1.522.604 2.85 1.41 3.986 2.418l-12.26 16.303v-2.898a1.96 1.96 0 0 0-.665-1.512c-.443-.403-.996-.604-1.66-.604-.665 0-1.218.201-1.661.604a1.96 1.96 0 0 0-.664 1.512v9.071L44.364 77.606a10.556 10.556 0 0 1-.886-1.512zm35.73-4.535c0 1.613-.332 3.124-.997 4.535a11.66 11.66 0 0 1-2.712 3.68c-1.134 1.032-2.49 1.864-4.04 2.469-1.55.604-3.21.907-4.982.907H55.185c-1.77 0-3.431-.303-4.981-.907-1.55-.605-2.906-1.437-4.041-2.47a12.49 12.49 0 0 1-1.384-1.512l13.727-18.217v6.375c0 .605.222 1.109.665 1.512.442.403.996.604 1.66.604.664 0 1.218-.201 1.66-.604a1.96 1.96 0 0 0 .665-1.512V53.87L75.97 36.838c.913.932 1.66 1.99 2.214 3.175.664 1.41.996 2.922.996 4.535v27.011h.028z"/></svg>
|
||||
|
After Width: | Height: | Size: 1.4 KiB |
1
ruoyi-ui/src/assets/icons/svg/bug.svg
Normal file
1
ruoyi-ui/src/assets/icons/svg/bug.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg width="128" height="128" xmlns="http://www.w3.org/2000/svg"><path d="M127.88 73.143c0 1.412-.506 2.635-1.518 3.669-1.011 1.033-2.209 1.55-3.592 1.55h-17.887c0 9.296-1.783 17.178-5.35 23.645l16.609 17.044c1.011 1.034 1.517 2.257 1.517 3.67 0 1.412-.506 2.635-1.517 3.668-.958 1.033-2.155 1.55-3.593 1.55-1.438 0-2.635-.517-3.593-1.55l-15.811-16.063a15.49 15.49 0 0 1-1.196 1.06c-.532.434-1.65 1.208-3.353 2.322a50.104 50.104 0 0 1-5.192 2.974c-1.758.87-3.94 1.658-6.546 2.364-2.607.706-5.189 1.06-7.748 1.06V47.044H58.89v73.062c-2.716 0-5.417-.367-8.106-1.102-2.688-.734-5.003-1.631-6.945-2.692a66.769 66.769 0 0 1-5.268-3.179c-1.571-1.057-2.73-1.94-3.476-2.65L33.9 109.34l-14.611 16.877c-1.066 1.14-2.344 1.711-3.833 1.711-1.277 0-2.422-.434-3.434-1.304-1.012-.978-1.557-2.187-1.635-3.627-.079-1.44.333-2.705 1.236-3.794l16.129-18.51c-3.087-6.197-4.63-13.644-4.63-22.342H5.235c-1.383 0-2.58-.517-3.592-1.55S.125 74.545.125 73.132c0-1.412.506-2.635 1.518-3.668 1.012-1.034 2.21-1.55 3.592-1.55h17.887V43.939L9.308 29.833c-1.012-1.033-1.517-2.256-1.517-3.669 0-1.412.505-2.635 1.517-3.668 1.012-1.034 2.21-1.55 3.593-1.55s2.58.516 3.593 1.55l13.813 14.106h67.396l13.814-14.106c1.012-1.034 2.21-1.55 3.592-1.55 1.384 0 2.581.516 3.593 1.55 1.012 1.033 1.518 2.256 1.518 3.668 0 1.413-.506 2.636-1.518 3.67l-13.814 14.105v23.975h17.887c1.383 0 2.58.516 3.593 1.55 1.011 1.033 1.517 2.256 1.517 3.668l-.005.01zM89.552 26.175H38.448c0-7.23 2.489-13.386 7.466-18.469C50.892 2.623 56.92.082 64 .082c7.08 0 13.108 2.541 18.086 7.624 4.977 5.083 7.466 11.24 7.466 18.469z"/></svg>
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user