admin
2021-11-13 5ac194b4319c4f1e1e0e167243ffcc20d8924961
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!doctype html>
<html class="x-admin-sm">
<head>
    <meta charset="UTF-8">
    <title>服务模板</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
 
    <link rel="stylesheet" href="./css/font.css">
    <link rel="stylesheet" href="./css/xadmin.css">
    <link rel="stylesheet" href="./css/theme3049.min.css">
 
    <!-- <link rel="stylesheet" href="./css/theme5.css"> -->
 
    <script type="text/javascript" src="./js/xadmin.js"></script>
    <script src="js/vue.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="js/http.js" type="text/javascript" charset="utf-8"></script>
    <!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script>
        // 是否开启刷新记忆tab功能
        // var is_remember = false;
    </script>
 
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
 
    <style>
 
        body {
            padding: 2rem;
        }
 
        button {
            margin-top: 1rem;
        }
 
        p {
            line-height: 1.5rem;
        }
 
        input[type=text] {
            width: 20rem;
            margin-top: 0.5rem;
        }
 
 
    </style>
 
 
</head>
<body>
<p><b>简介</b></p>
<p>服务模板是一个基于springboot_2.3.5.RELEASE的maven项目,项目中集成了以下的常用的框架: </p>
<p>数据库框架:mybatis,mongodb,redis</p>
<p>RPC框架:dubbo</p>
<p>分布式任务框架:xxl-job</p>
<p>常用工具类:com.yeshi.utils_0.1.5</p>
<p>可采用自动工具类中的代码生成工具,根据entity以及entity上的配置,自动生成相关的功能逻辑代码,尽量做到新项目就可开箱即用</p>
<p style="color: red;">下载代码之前需填写如下信息:</p>
 
<p>
    <input type="text" class="layui-text" placeholder="请填写项目名称(英文名称)">
</p>
<p>
    <input type="text" class="layui-text" placeholder="请填写项目包名(如com.ks.push)">
</p>
<p>
    <input type="text" class="layui-text" placeholder="请填写应用包名(如com.ks.push.app)">
</p>
 
 
<button class="layui-btn" onclick="startDownLoad()">下载服务模板</button>
 
<!-- 中部结束 -->
<script src="./lib/layui/layui.all.js" charset="utf-8"></script>
</body>
<script>
    var $, layer;
    layui.use(['layer', 'jquery'], function () {
        layer = layui.layer;
        $ = layui.jquery;
    });
 
    function startDownLoad() {
        ksapp.post("api/generator/service", {
            name: $("input[type=text]").eq(0).val(),
            pks: $("input[type=text]").eq(1).val(),
            subpks: $("input[type=text]").eq(2).val()
        }, function (res) {
 
        }, function (res) {
 
        });
    }
 
 
</script>
</html>