Compare commits

..

64 Commits

Author SHA1 Message Date
ps2hc5nfx 9f68b11140 Merge pull request 'java类' (#5) from 18237870573/youxi:master into master
2 years ago
ps2hc5nfx 6a54132a5d Merge pull request 'youxi.java' (#4) from pnc6jztsp/youxi:master into master
2 years ago
pnc6jztsp 914c0535d8 Update MenuUtil.class
2 years ago
pnc6jztsp f103e30f97 Update CpachaUtil.class
2 years ago
pnc6jztsp 08c5290cfd Update FavoriteService.class
2 years ago
pnc6jztsp 9407ea7c5f Update CartService.class
2 years ago
pnc6jztsp 3f2c9d84bc Update AddressService.class
2 years ago
pnc6jztsp 684b370be1 Update FavoriteServiceImpl.class
2 years ago
pnc6jztsp 014565ae43 Update CartServiceImpl.class
2 years ago
pnc6jztsp 0fa7f2f6e0 Update AddressServiceImpl.class
2 years ago
pnc6jztsp e97432a9f9 Update ProductService.class
2 years ago
pnc6jztsp 0c29dcff5c Update ProductCategoryService.class
2 years ago
pnc6jztsp 960725f847 Update OrderService.class
2 years ago
pnc6jztsp 884d61169b Update CommentService.class
2 years ago
pnc6jztsp 3443765c5d Update AccountService.class
2 years ago
pnc6jztsp 900b310070 Update ProductServiceImpl.class
2 years ago
pnc6jztsp 9271eb9a55 Update ProductCategoryServiceImpl.class
2 years ago
pnc6jztsp d477349d38 Update OrderServiceImpl.class
2 years ago
pnc6jztsp 10dc4f78a5 Update CommentServiceImpl.class
2 years ago
pnc6jztsp b04594839d Update AccountServiceImpl.class
2 years ago
pnc6jztsp 155bb2a7b7 Update UserService.class
2 years ago
pnc6jztsp 59271c0892 Update RoleService.class
2 years ago
pnc6jztsp 03b875d220 Update MenuService.class
2 years ago
pnc6jztsp 8ef67f3f2d Update LogService.class
2 years ago
pnc6jztsp f7f3a712df Update AuthorityService.class
2 years ago
pnc6jztsp 82dceb7591 Update UserServiceImpl.class
2 years ago
pnc6jztsp f27a830873 Update RoleServiceImpl.class
2 years ago
pnc6jztsp ed5dbe4f7a Update MenuServiceImpl.class
2 years ago
pnc6jztsp 3e1e79e7c2 Update LogServiceImpl.class
2 years ago
pnc6jztsp 65c39a641a Update AuthorityServiceImpl.class
2 years ago
pnc6jztsp 54d8e078a1 Update Page.class
2 years ago
pnc6jztsp 44b93a9b75 Update LoginInterceptor.class
2 years ago
pnc6jztsp 6639c98962 Update LoginInterceptor.class
2 years ago
ps2hc5nfx 1daa84a684 Merge pull request 'jsp' (#3) from pnc6jztsp/youxi:master into master
2 years ago
pnc6jztsp c59fb64bba ADD file via upload
2 years ago
pnc6jztsp bc7c2cc03a ADD file via upload
2 years ago
pnc6jztsp 6dab9661ae ADD file via upload
2 years ago
ps2hc5nfx 4f92fee6eb Merge pull request 'jsp' (#2) from pnc6jztsp/youxi:master into master
2 years ago
ps2hc5nfx 39f91c00eb Delete 'src/main/webapp/WEB-INF/views/home/common/user_menu.jsp'
2 years ago
ps2hc5nfx c6b9df7031 Delete 'src/main/webapp/WEB-INF/views/home/common/header.jsp'
2 years ago
ps2hc5nfx 9bf288cfff Delete 'src/main/webapp/WEB-INF/views/home/common/footer.jsp'
2 years ago
pnc6jztsp c1cf90dfca ADD file via upload
2 years ago
pnc6jztsp 638e5201cd ADD file via upload
2 years ago
18237870573 d0b14028c9 数据库
2 years ago
ps2hc5nfx 6700f5a4ac Update IndexController.class
2 years ago
ps2hc5nfx 75e085a07e Update HomeUserController.class
2 years ago
ps2hc5nfx ce1f1a2238 Update HomeProductController.class
2 years ago
ps2hc5nfx b9880c095a Update HomeOrderController.class
2 years ago
ps2hc5nfx 41147c37e4 Update HomeCommentController.class
2 years ago
ps2hc5nfx eb7741dbd0 Update FavoriteController.class
2 years ago
ps2hc5nfx f270c85dc4 Update CartController.class
2 years ago
ps2hc5nfx 0d34df0608 Update AddressController.class
2 years ago
ps2hc5nfx 1cdb9398b0 Update UserController.class
2 years ago
ps2hc5nfx fd8f5a798d Update SystemController.class
2 years ago
ps2hc5nfx 5f3a403f9f Update StatsController.class
2 years ago
ps2hc5nfx fe0b53c92b Update RoleController.class
2 years ago
ps2hc5nfx a845e23030 Update ProductController.class
2 years ago
ps2hc5nfx 226e793f44 Update ProductCategoryController.class
2 years ago
ps2hc5nfx f0b1051342 Update OrderController.class
2 years ago
ps2hc5nfx 427f164048 Update MenuController.class
2 years ago
ps2hc5nfx 4ed3e588cc Update LogController.class
2 years ago
ps2hc5nfx 9bf2aee5e2 Update CommentController.class
2 years ago
ps2hc5nfx e9efecc1c9 Update AccountController.class
2 years ago
ps2hc5nfx 1a92d76fa8 Merge pull request '请求1' (#1) from 18237870573/youxi:master into master
2 years ago

@ -1,13 +1,13 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<div class="shop_footer"> <div class="shop_footer">
<div class="shop_footer_link"> <div class="shop_footer_link">
<p> <p>
<a href="../system/login" target="_blank">登录后台</a>| <a href="../system/login" target="_blank">登录后台</a>|
</p> </p>
</div> </div>
<div class="shop_footer_copy"> <div class="shop_footer_copy">
<p>游戏周边商城</p> <p>游戏周边商城</p>
</div> </div>
</div> </div>

@ -1,146 +1,146 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head> <head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<title>游戏周边商城-${title}</title> <title>游戏周边商城-${title}</title>
<link rel="stylesheet" href="../resources/home/css/base.css" type="text/css" /> <link rel="stylesheet" href="../resources/home/css/base.css" type="text/css" />
<link rel="stylesheet" href="../resources/home/css/shop_common.css" type="text/css" /> <link rel="stylesheet" href="../resources/home/css/shop_common.css" type="text/css" />
<link rel="stylesheet" href="../resources/home/css/shop_header.css" type="text/css" /> <link rel="stylesheet" href="../resources/home/css/shop_header.css" type="text/css" />
<link rel="stylesheet" href="../resources/home/css/shop_home.css" type="text/css" /> <link rel="stylesheet" href="../resources/home/css/shop_home.css" type="text/css" />
<script type="text/javascript" src="../resources/home/js/jquery.js" ></script> <script type="text/javascript" src="../resources/home/js/jquery.js" ></script>
<script type="text/javascript" src="../resources/home/js/topNav.js" ></script> <script type="text/javascript" src="../resources/home/js/topNav.js" ></script>
<script type="text/javascript" src="../resources/home/js/focus.js" ></script> <script type="text/javascript" src="../resources/home/js/focus.js" ></script>
</head> </head>
<body> <body>
<!-- Header -wll-2013/03/24 --> <!-- Header -wll-2013/03/24 -->
<div class="shop_hd"> <div class="shop_hd">
<!-- Header TopNav --> <!-- Header TopNav -->
<div class="shop_hd_topNav"> <div class="shop_hd_topNav">
<div class="shop_hd_topNav_all"> <div class="shop_hd_topNav_all">
<!-- Header TopNav Left --> <!-- Header TopNav Left -->
<div class="shop_hd_topNav_all_left"> <div class="shop_hd_topNav_all_left">
<p>您好,欢迎来到<b><a href="/youxi">游戏周边商城</a></b> <p>您好,欢迎来到<b><a href="/youxi">游戏周边商城</a></b>
<c:if test="${account == null }"> <c:if test="${account == null }">
[<a href="../home/login">登录</a>][<a href="../home/register">注册</a>] [<a href="../home/login">登录</a>][<a href="../home/register">注册</a>]
</c:if> </c:if>
<c:if test="${account != null }"> <c:if test="${account != null }">
[${account.name }] [${account.name }]
</c:if> </c:if>
</p> </p>
</div> </div>
<!-- Header TopNav Left End --> <!-- Header TopNav Left End -->
<!-- Header TopNav Right --> <!-- Header TopNav Right -->
<div class="shop_hd_topNav_all_right"> <div class="shop_hd_topNav_all_right">
<ul class="topNav_quick_menu"> <ul class="topNav_quick_menu">
<li> <li>
<div class="topNav_menu"> <div class="topNav_menu">
<a href="#" class="topNavHover">我的商城<i></i></a> <a href="#" class="topNavHover">我的商城<i></i></a>
<div class="topNav_menu_bd" style="display:none;" > <div class="topNav_menu_bd" style="display:none;" >
<ul> <ul>
<li><a title="已买到的商品"href="../order/list">已买到的商品</a></li> <li><a title="已买到的商品"href="../order/list">已买到的商品</a></li>
<li><a title="个人主页" href="../user/info">个人主页</a></li> <li><a title="个人主页" href="../user/info">个人主页</a></li>
</ul> </ul>
</div> </div>
</div> </div>
</li> </li>
<li> <li>
<div class="topNav_menu"> <div class="topNav_menu">
<a href="../cart/list" class="topNavHover">购物车</a> <a href="../cart/list" class="topNavHover">购物车</a>
</div> </div>
</li> </li>
<li> <li>
<div class="topNav_menu"> <div class="topNav_menu">
<a href="../favorite/list" class="topNavHover">我的收藏<i></i></a> <a href="../favorite/list" class="topNavHover">我的收藏<i></i></a>
<div class="topNav_menu_bd" style="display:none;"> <div class="topNav_menu_bd" style="display:none;">
<ul> <ul>
<li><a title="收藏的商品" target="_top" href="../favorite/list">收藏的商品</a></li> <li><a title="收藏的商品" target="_top" href="../favorite/list">收藏的商品</a></li>
</ul> </ul>
</div> </div>
</div> </div>
</li> </li>
</ul> </ul>
</div> </div>
<!-- Header TopNav Right End --> <!-- Header TopNav Right End -->
</div> </div>
<div class="clear"></div> <div class="clear"></div>
</div> </div>
<div class="clear"></div> <div class="clear"></div>
<!-- Header TopNav End --> <!-- Header TopNav End -->
<!-- TopHeader Center --> <!-- TopHeader Center -->
<div class="shop_hd_header"> <div class="shop_hd_header">
<div class="shop_hd_header_logo"><h1 class="logo"><a href="/youxi"><img src="../resources/home/images/logo.jpg" alt="ShopCZ" /></a><span>图标</span></h1></div> <div class="shop_hd_header_logo"><h1 class="logo"><a href="/youxi"><img src="../resources/home/images/logo.jpg" alt="ShopCZ" /></a><span>图标</span></h1></div>
<div class="shop_hd_header_search"> <div class="shop_hd_header_search">
<ul class="shop_hd_header_search_tab"> <ul class="shop_hd_header_search_tab">
<li id="search" class="current">商品</li> <li id="search" class="current">商品</li>
</ul> </ul>
<div class="clear"></div> <div class="clear"></div>
<div class="search_form"> <div class="search_form">
<form method="post" action="../product/search"> <form method="post" action="../product/search">
<div class="search_formstyle"> <div class="search_formstyle">
<input type="text" class="search_form_text" name="search_content" placeholder="搜索其实很简单!" value="${search_content }" /> <input type="text" class="search_form_text" name="search_content" placeholder="搜索其实很简单!" value="${search_content }" />
<input type="submit" class="search_form_sub" name="secrch_submit" value="" title="搜索" /> <input type="submit" class="search_form_sub" name="secrch_submit" value="" title="搜索" />
</div> </div>
</form> </form>
</div> </div>
<div class="clear"></div> <div class="clear"></div>
</div> </div>
</div> </div>
<div class="clear"></div> <div class="clear"></div>
<!-- TopHeader Center End --> <!-- TopHeader Center End -->
<!-- Header Menu --> <!-- Header Menu -->
<div class="shop_hd_menu"> <div class="shop_hd_menu">
<!-- 所有商品菜单 --> <!-- 所有商品菜单 -->
<div class="shop_hd_menu_all_category ${allCategoryClass }" id="${allCategoryId }"><!-- 首页去掉 id="shop_hd_menu_all_category" 加上clsss shop_hd_menu_hover --> <div class="shop_hd_menu_all_category ${allCategoryClass }" id="${allCategoryId }"><!-- 首页去掉 id="shop_hd_menu_all_category" 加上clsss shop_hd_menu_hover -->
<div class="shop_hd_menu_all_category_title"><h2 title="所有商品分类"><a href="javascript:void(0);">所有商品分类</a></h2><i></i></div> <div class="shop_hd_menu_all_category_title"><h2 title="所有商品分类"><a href="javascript:void(0);">所有商品分类</a></h2><i></i></div>
<div id="shop_hd_menu_all_category_hd" class="shop_hd_menu_all_category_hd"> <div id="shop_hd_menu_all_category_hd" class="shop_hd_menu_all_category_hd">
<ul class="shop_hd_menu_all_category_hd_menu clearfix"> <ul class="shop_hd_menu_all_category_hd_menu clearfix">
<!-- 单个菜单项 --> <!-- 单个菜单项 -->
<c:forEach items="${productCategoryList }" var="productCategory"> <c:forEach items="${productCategoryList }" var="productCategory">
<li id="cat_${productCategory.id }" class=""> <li id="cat_${productCategory.id }" class="">
<h3><a href="../product/product_category_list?cid=${productCategory.id }" title="${productCategory.text }">${productCategory.text }</a></h3> <h3><a href="../product/product_category_list?cid=${productCategory.id }" title="${productCategory.text }">${productCategory.text }</a></h3>
<div id="cat_${productCategory.id }_menu" class="cat_menu clearfix" style=""> <div id="cat_${productCategory.id }_menu" class="cat_menu clearfix" style="">
<c:forEach items="${productCategory.children }" var="child"> <c:forEach items="${productCategory.children }" var="child">
<dl class="clearfix"> <dl class="clearfix">
<dt><a href="../product/product_category_list?cid=${child.id }" href="">${child.text }</a></dt> <dt><a href="../product/product_category_list?cid=${child.id }" href="">${child.text }</a></dt>
<dd> <dd>
<c:forEach items="${child.children }" var="grandson"> <c:forEach items="${child.children }" var="grandson">
<a href="../product/product_category_list?cid=${grandson.id }">${grandson.text }</a> <a href="../product/product_category_list?cid=${grandson.id }">${grandson.text }</a>
</c:forEach> </c:forEach>
</dd> </dd>
</dl> </dl>
</c:forEach> </c:forEach>
</div> </div>
</li> </li>
</c:forEach> </c:forEach>
<!-- 单个菜单项 End --> <!-- 单个菜单项 End -->
</ul> </ul>
</div> </div>
</div> </div>
<!-- 所有商品菜单 END --> <!-- 所有商品菜单 END -->
<!-- 普通导航菜单 --> <!-- 普通导航菜单 -->
<ul class="shop_hd_menu_nav"> <ul class="shop_hd_menu_nav">
<li class="${currentHome }link"><a href="/youxi"><span>首页</span></a></li> <li class="${currentHome }link"><a href="/youxi"><span>首页</span></a></li>
<li class="${currentCart }link"><a href="../cart/list"><span>购物车</span></a></li> <li class="${currentCart }link"><a href="../cart/list"><span>购物车</span></a></li>
<li class="${currentUser }link"><a href="../user/info"><span>个人中心</span></a></li> <li class="${currentUser }link"><a href="../user/info"><span>个人中心</span></a></li>
</ul> </ul>
<!-- 普通导航菜单 End --> <!-- 普通导航菜单 End -->
</div> </div>
<!-- Header Menu End --> <!-- Header Menu End -->
</div> </div>
<div class="clear"></div> <div class="clear"></div>
<!-- Header End --> <!-- Header End -->

@ -1,25 +1,25 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!-- 左边导航 --> <!-- 左边导航 -->
<div class="shop_member_bd_left clearfix"> <div class="shop_member_bd_left clearfix">
<div class="shop_member_bd_left_pic"> <div class="shop_member_bd_left_pic">
<a href="javascript:void(0);"><img src="../resources/home/images/avatar.png" /></a> <a href="javascript:void(0);"><img src="../resources/home/images/avatar.png" /></a>
</div> </div>
<div class="clear"></div> <div class="clear"></div>
<dl> <dl>
<dt>我的交易</dt> <dt>我的交易</dt>
<dd><span><a href="../order/list">已购买商品</a></span></dd> <dd><span><a href="../order/list">已购买商品</a></span></dd>
<dd><span><a href="../favorite/list">我的收藏</a></span></dd> <dd><span><a href="../favorite/list">我的收藏</a></span></dd>
<dd><span><a href="../comment/list">评价管理</a></span></dd> <dd><span><a href="../comment/list">评价管理</a></span></dd>
</dl> </dl>
<dl> <dl>
<dt>我的账户</dt> <dt>我的账户</dt>
<dd><span><a href="../user/info">个人资料</a></span></dd> <dd><span><a href="../user/info">个人资料</a></span></dd>
<dd><span><a href="../user/update_pwd">密码修改</a></span></dd> <dd><span><a href="../user/update_pwd">密码修改</a></span></dd>
<dd><span><a href="../address/list">收货地址</a></span></dd> <dd><span><a href="../address/list">收货地址</a></span></dd>
</dl> </dl>
</div> </div>
<!-- 左边导航 End --> <!-- 左边导航 End -->

@ -0,0 +1,136 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="copyright" content="All Rights Reserved, Copyright (C) 2013, 游戏周边商城, Ltd." />
<title>后台管理主页</title>
<link rel="stylesheet" type="text/css" href="../resources/admin/easyui/easyui/1.3.4/themes/default/easyui.css" />
<link rel="stylesheet" type="text/css" href="../resources/admin/easyui/css/wu.css" />
<link rel="stylesheet" type="text/css" href="../resources/admin/easyui/css/icon.css" />
<script type="text/javascript" src="../resources/admin/easyui/js/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="../resources/admin/easyui/easyui/1.3.4/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../resources/admin/easyui/easyui/1.3.4/locale/easyui-lang-zh_CN.js"></script>
<script>
var pc;
//不要放在$(function(){});中
$.parser.onComplete = function () {
if (pc) clearTimeout(pc);
pc = setTimeout(closes, 1000);
}
function closes() {
$('#loading').fadeOut('normal', function () {
$(this).remove();
});
}
</script>
</head>
<body class="easyui-layout">
<div id="loading" style="position:absolute;z-index:1000;top:0px;left:0px;width:100%;height:100%;background:#FFFFFF;text-align :center;padding-top:6%;">
<img src="../resources/admin/easyui/images/loading.jpg" width="50%">
</div>
<!-- begin of header -->
<div class="wu-header" data-options="region:'north',border:false,split:true">
<div class="wu-header-left">
<h1>【游戏周边商城】后台管理系统</h1>
</div>
<div class="wu-header-right">
<p><strong class="easyui-tooltip" title="0条未读消息">${role.name}:${admin.username}</strong>,欢迎您!</p>
<p><a href="../home/index" target="_blank">网站首页</a>|<a href="logout">安全退出</a></p>
</div>
</div>
<!-- end of header -->
<!-- begin of sidebar -->
<div class="wu-sidebar" data-options="region:'west',split:true,border:true,title:'导航菜单'">
<div class="easyui-accordion" data-options="border:false,fit:true">
<c:forEach items="${topMenuList }" var="topMenu">
<div title="${topMenu.name }" data-options="iconCls:'${topMenu.icon }'" style="padding:5px;">
<ul class="easyui-tree wu-side-tree">
<c:forEach items="${secondMenuList }" var="secondMenu">
<c:if test="${secondMenu.parentId == topMenu.id }">
<li iconCls="${secondMenu.icon }"><a href="javascript:void(0)" data-icon="${secondMenu.icon }" data-link="${secondMenu.url }?_mid=${secondMenu.id }" iframe="1">${secondMenu.name }</a></li>
</c:if>
</c:forEach>
</ul>
</div>
</c:forEach>
</div>
</div>
<!-- end of sidebar -->
<!-- begin of main -->
<div class="wu-main" data-options="region:'center'">
<div id="wu-tabs" class="easyui-tabs" data-options="border:false,fit:true">
<div title="首页" data-options="href:'welcome',closable:false,iconCls:'icon-tip',cls:'pd3'"></div>
</div>
</div>
<!-- end of main -->
<!-- begin of footer -->
<div class="wu-footer" data-options="region:'south',border:true,split:true">
&copy;
</div>
<!-- end of footer -->
<script type="text/javascript">
$(function(){
$('.wu-side-tree a').bind("click",function(){
var title = $(this).text();
var url = $(this).attr('data-link');
var iconCls = $(this).attr('data-icon');
var iframe = $(this).attr('iframe')==1?true:false;
addTab(title,url,iconCls,iframe);
});
})
/**
* Name 添加菜单选项
* Param title 名称
* Param href 链接
* Param iconCls 图标样式
* Param iframe 链接跳转方式true为iframefalse为href
*/
function addTab(title, href, iconCls, iframe){
var tabPanel = $('#wu-tabs');
if(!tabPanel.tabs('exists',title)){
var content = '<iframe scrolling="auto" frameborder="0" src="'+ href +'" style="width:100%;height:100%;"></iframe>';
if(iframe){
tabPanel.tabs('add',{
title:title,
content:content,
iconCls:iconCls,
fit:true,
cls:'pd3',
closable:true
});
}
else{
tabPanel.tabs('add',{
title:title,
href:href,
iconCls:iconCls,
fit:true,
cls:'pd3',
closable:true
});
}
}
else
{
tabPanel.tabs('select',title);
}
}
/**
* Name 移除菜单选项
*/
function removeTab(){
var tabPanel = $('#wu-tabs');
var tab = tabPanel.tabs('getSelected');
if (tab){
var index = tabPanel.tabs('getTabIndex', tab);
tabPanel.tabs('close', index);
}
}
</script>
</body>
</html>

@ -0,0 +1,118 @@
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<!-- saved from url=(0051)http://demo1.mycodes.net/denglu/HTML5_yonghudenglu/ -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>游戏周边商城后台管理员登录</title>
<meta name="description" content="particles.js is a lightweight JavaScript library for creating particles.">
<meta name="author" content="Vincent Garreau">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" media="screen" href="../resources/admin/login/css/style.css">
<link rel="stylesheet" type="text/css" href="../resources/admin/login/css/reset.css">
<body>
<div id="particles-js">
<div class="login" style="display: block;">
<div class="login-top">
登录
</div>
<div class="login-center clearfix">
<div class="login-center-img"><img src="../resources/admin/login/images/name.png"></div>
<div class="login-center-input">
<input type="text" name="username" id="username" value="" placeholder="请输入您的用户名" onfocus="this.placeholder=&#39;&#39;" onblur="this.placeholder=&#39;请输入您的用户名&#39;">
<div class="login-center-input-text">用户名</div>
</div>
</div>
<div class="login-center clearfix">
<div class="login-center-img"><img src="../resources/admin/login/images/password.png"></div>
<div class="login-center-input">
<input type="password" name="password" id="password" value="" placeholder="请输入您的密码" onfocus="this.placeholder=&#39;&#39;" onblur="this.placeholder=&#39;请输入您的密码&#39;">
<div class="login-center-input-text">密码</div>
</div>
</div>
<div class="login-center clearfix">
<div class="login-center-img"><img src="../resources/admin/login/images/cpacha.png"></div>
<div class="login-center-input">
<input style="width:50%;" type="text" name="cpacha" id="cpacha" value="" placeholder="请输入验证码" onfocus="this.placeholder=&#39;&#39;" onblur="this.placeholder=&#39;请输入验证码&#39;">
<div class="login-center-input-text">验证码</div>
<img id="cpacha-img" title="点击切换验证码" style="cursor:pointer;" src="get_cpacha?vl=4&w=150&h=40&type=loginCpacha" width="110px" height="30px" onclick="changeCpacha()">
</div>
</div>
<div class="login-button">
登录
</div>
</div>
<div class="sk-rotating-plane"></div>
<canvas class="particles-js-canvas-el" width="1147" height="952" style="width: 100%; height: 100%;"></canvas></div>
<!-- scripts -->
<script src="../resources/admin/login/js/particles.min.js"></script>
<script src="../resources/admin/login/js/app.js"></script>
<script src="../resources/admin/login/js/jquery-1.8.0.min.js"></script>
<script type="text/javascript">
function hasClass(elem, cls) {
cls = cls || '';
if (cls.replace(/\s/g, '').length == 0) return false; //当cls没有参数时返回false
return new RegExp(' ' + cls + ' ').test(' ' + elem.className + ' ');
}
function addClass(ele, cls) {
if (!hasClass(ele, cls)) {
ele.className = ele.className == '' ? cls : ele.className + ' ' + cls;
}
}
function removeClass(ele, cls) {
if (hasClass(ele, cls)) {
var newClass = ' ' + ele.className.replace(/[\t\r\n]/g, '') + ' ';
while (newClass.indexOf(' ' + cls + ' ') >= 0) {
newClass = newClass.replace(' ' + cls + ' ', ' ');
}
ele.className = newClass.replace(/^\s+|\s+$/g, '');
}
}
function changeCpacha(){
$("#cpacha-img").attr("src",'get_cpacha?vl=4&w=150&h=40&type=loginCpacha&t=' + new Date().getTime());
}
document.querySelector(".login-button").onclick = function(){
var username = $("#username").val();
var password = $("#password").val();
var cpacha = $("#cpacha").val();
if(username == '' || username == 'undefined'){
alert("请填写用户名!");
return;
}
if(password == '' || password == 'undefined'){
alert("请填写密码!");
return;
}
if(cpacha == '' || cpacha == 'undefined'){
alert("请填写验证码!");
return;
}
addClass(document.querySelector(".login"), "active")
addClass(document.querySelector(".sk-rotating-plane"), "active")
document.querySelector(".login").style.display = "none"
$.ajax({
url:'login',
data:{username:username,password:password,cpacha:cpacha},
type:'post',
dataType:'json',
success:function(data){
if(data.type == 'success'){
window.parent.location = 'index';
}else{
removeClass(document.querySelector(".login"), "active");
removeClass(document.querySelector(".sk-rotating-plane"), "active");
document.querySelector(".login").style.display = "block";
alert(data.msg);
changeCpacha();
}
}
});
}
</script>
</body></html>

@ -0,0 +1,349 @@
# Host: 127.0.0.1 (Version 5.6.51-log)
# Date: 2023-04-10 19:34:56
# Generator: MySQL-Front 5.4 (Build 4.153) - http://www.mysqlfront.de/
/*!40101 SET NAMES utf8 */;
#
# Structure for table "account"
#
DROP TABLE IF EXISTS `account`;
CREATE TABLE `account` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(32) NOT NULL,
`password` varchar(32) NOT NULL,
`email` varchar(32) DEFAULT NULL,
`trueName` varchar(32) DEFAULT NULL,
`sex` int(2) DEFAULT '0',
`status` int(2) DEFAULT '1',
`createTime` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;
#
# Data for table "account"
#
INSERT INTO `account` VALUES (9,'a','a','1300273076@qq.com',NULL,0,1,'2023-03-18 19:38:26'),(10,'g','g','111@qq.com',NULL,0,1,'2023-03-21 17:01:41'),(11,'z','z','z@qq.com',NULL,0,1,'2023-04-08 09:25:46');
#
# Structure for table "address"
#
DROP TABLE IF EXISTS `address`;
CREATE TABLE `address` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userId` int(11) NOT NULL,
`name` varchar(128) NOT NULL,
`address` varchar(128) NOT NULL,
`phone` varchar(32) NOT NULL DEFAULT '',
`createTime` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `userId` (`userId`),
CONSTRAINT `address_ibfk_1` FOREIGN KEY (`userId`) REFERENCES `account` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8;
#
# Data for table "address"
#
INSERT INTO `address` VALUES (15,9,'a','河南省郑州市','1111111','2023-03-18 19:39:48'),(16,10,'g','河南省郑州市','1','2023-03-21 17:08:19'),(17,11,'z','z','1','2023-04-08 09:26:37');
#
# Structure for table "c3p0testtable"
#
DROP TABLE IF EXISTS `c3p0testtable`;
CREATE TABLE `c3p0testtable` (
`a` char(1) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
#
# Data for table "c3p0testtable"
#
#
# Structure for table "log"
#
DROP TABLE IF EXISTS `log`;
CREATE TABLE `log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`content` varchar(255) NOT NULL,
`createTime` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=138 DEFAULT CHARSET=utf8;
#
# Data for table "log"
#
INSERT INTO `log` VALUES (117,'用户名为{admin}角色为{超级管理员}的用户登录成功!','2023-03-21 16:56:54'),(118,'用户名为{admin}角色为{超级管理员}的用户登录成功!','2023-03-21 16:58:51'),(119,'用户名为{admin}角色为{超级管理员}的用户登录成功!','2023-03-21 19:12:56'),(120,'用户名为{admin}角色为{超级管理员}的用户登录成功!','2023-03-21 19:52:08'),(121,'用户名为{admin}角色为{超级管理员}的用户登录成功!','2023-03-21 20:32:59'),(122,'用户名为{admin}角色为{超级管理员}的用户登录成功!','2023-03-21 21:02:15'),(123,'用户名为{admin}角色为{超级管理员}的用户登录成功!','2023-03-21 21:04:32'),(124,'添加admin失败!','2023-03-21 21:15:43'),(125,'用户名为{admin}角色为{超级管理员}的用户登录成功!','2023-03-21 21:15:52'),(126,'用户名为{admin}角色为{超级管理员}的用户登录成功!','2023-03-21 21:23:22'),(127,'添加admin失败!','2023-03-21 21:25:50'),(128,'用户名为{admin}角色为{超级管理员}的用户登录成功!','2023-03-21 21:25:59'),(129,'用户名为{admin}角色为{超级管理员}的用户登录成功!','2023-04-06 21:00:32'),(130,'用户名为{admin}角色为{超级管理员}的用户登录成功!','2023-04-06 21:14:07'),(131,'用户名为{admin}角色为{超级管理员}的用户登录成功!','2023-04-08 08:28:07'),(132,'用户名为{admin}角色为{超级管理员}的用户登录成功!','2023-04-08 09:01:50'),(133,'用户名为{admin}角色为{超级管理员}的用户登录成功!','2023-04-08 09:12:16'),(134,'添加admin失败!','2023-04-08 09:15:13'),(135,'用户名为{admin}角色为{超级管理员}的用户登录成功!','2023-04-08 09:15:22'),(136,'用户名为{admin}角色为{超级管理员}的用户登录成功!','2023-04-08 09:20:40'),(137,'用户名为{admin}角色为{超级管理员}的用户登录成功!','2023-04-10 11:54:33');
#
# Structure for table "menu"
#
DROP TABLE IF EXISTS `menu`;
CREATE TABLE `menu` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`parentId` int(11) NOT NULL DEFAULT '-1',
`name` varchar(32) NOT NULL,
`url` varchar(128) DEFAULT NULL,
`icon` varchar(32) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=62 DEFAULT CHARSET=utf8;
#
# Data for table "menu"
#
INSERT INTO `menu` VALUES (1,0,'系统设置','','icon-advancedsettings'),(5,1,'菜单管理','../admin/menu/list','icon-chart-organisation'),(13,1,'角色管理','../admin/role/list','icon-group-key'),(14,0,'用户管理','','icon-group-gear'),(15,14,'用户列表','../admin/user/list','icon-group'),(17,5,'添加','openAdd()','icon-add'),(18,5,'编辑','openEdit()','icon-bullet-edit'),(19,5,'删除','remove()','icon-cross'),(20,5,'添加按钮','openAddMenu()','icon-add'),(21,13,'添加','openAdd()','icon-add'),(22,13,'编辑','openEdit()','icon-bullet-edit'),(23,13,'删除','remove()','icon-cross'),(24,15,'添加','openAdd()','icon-add'),(25,15,'编辑','openEdit()','icon-bullet-edit'),(26,15,'删除','remove()','icon-cross'),(31,0,'系统日志','','icon-table-cell'),(32,31,'日志列表','../admin/log/list','icon-page-white-text'),(33,32,'添加日志','openAdd()','icon-add1'),(34,32,'删除','remove()','icon-cancel'),(35,1,'修改密码','edit_password','icon-lock-edit'),(36,35,'修改密码','openAdd()','icon-lock-edit'),(37,0,'商品分类','','icon-sitemap-color'),(38,37,'分类列表','../admin/product_category/list','icon-sitemap'),(39,38,'添加','openAdd()','icon-chart-organisation-add'),(40,38,'编辑','openEdit()','icon-bullet-edit'),(41,38,'删除','remove()','icon-chart-organisation-delete'),(42,0,'商品管理','','icon-cart-full'),(43,42,'商品列表','../admin/product/list','icon-cart'),(44,43,'添加','openAdd()','icon-cart-add'),(45,43,'编辑','openEdit()','icon-cart-edit'),(46,43,'删除','remove()','icon-cart-delete'),(47,0,'客户管理','','icon-users'),(48,47,'客户列表','../admin/account/list','icon-user-group'),(49,48,'添加','openAdd()','icon-user-add'),(50,48,'编辑','openEdit()','icon-user-edit'),(51,48,'删除','remove()','icon-user-cross'),(52,0,'订单管理','','icon-database'),(53,52,'订单列表','../admin/order/list','icon-database-gear'),(54,53,'编辑订单','openEdit()','icon-database-edit'),(55,53,'查看订单','openView()','icon-eye'),(56,0,'评论管理','','icon-comment'),(57,56,'评论列表','../admin/comment/list','icon-comments'),(58,57,'编辑','openEdit()','icon-comment-edit'),(59,57,'删除','remove()','icon-comment-delete'),(60,0,'销售统计','','icon-chart-curve'),(61,60,'统计图表','../admin/stats/stats','icon-chart-line');
#
# Structure for table "orders"
#
DROP TABLE IF EXISTS `orders`;
CREATE TABLE `orders` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`sn` varchar(32) NOT NULL,
`userId` int(11) NOT NULL,
`address` varchar(128) NOT NULL,
`money` double(8,2) NOT NULL DEFAULT '0.00',
`productNum` int(5) NOT NULL DEFAULT '0',
`status` int(2) NOT NULL DEFAULT '0',
`remark` varchar(128) DEFAULT NULL,
`createTime` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `userId` (`userId`),
CONSTRAINT `orders_ibfk_1` FOREIGN KEY (`userId`) REFERENCES `account` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
#
# Data for table "orders"
#
INSERT INTO `orders` VALUES (3,'O1679139594304',9,'河南省郑州市 a(收) 1111111',69.90,1,2,'','2023-03-18 19:39:54'),(4,'O1679389705952',10,'河南省郑州市 g(收) 1',139.80,2,2,'','2023-03-21 17:08:26'),(5,'O1680916067350',9,'河南省郑州市 a(收) 1111111',179.70,3,0,'','2023-04-08 09:07:47'),(6,'O1680916303241',10,'河南省郑州市 g(收) 1',69.90,1,0,'','2023-04-08 09:11:43'),(7,'O1680917219939',11,'z z(收) 1',69.90,1,0,'','2023-04-08 09:27:00');
#
# Structure for table "product_category"
#
DROP TABLE IF EXISTS `product_category`;
CREATE TABLE `product_category` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`parentId` int(11) DEFAULT NULL,
`name` varchar(128) CHARACTER SET utf32 NOT NULL,
`tags` varchar(32) DEFAULT NULL,
`remark` varchar(128) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=336 DEFAULT CHARSET=utf8;
#
# Data for table "product_category"
#
INSERT INTO `product_category` VALUES (333,NULL,'原神',NULL,'游戏发生在一个被称作“提瓦特”的幻想世界,在这里,被神选中的人将被授予“神之眼”,导引元素之力。玩家将扮演一位名为“旅行者”的神秘角色,在自由的旅行中邂逅性格各异、能力独特的同伴们,和他们一起击败强敌,找回失散的亲人——同时,逐步发掘“原神”的真相'),(334,NULL,'王者荣耀',NULL,'王者荣耀中的玩法以竞技对战为主玩家之间进行1V1、3V3、5V5等多种方式的PVP对战在满足条件后可以参加游戏的排位赛等还可以参加PVE的闯关模式是属于推塔类型的游戏'),(335,NULL,'未定事件簿',NULL,'米哈游 研发的一款律政恋爱推理手游,玩家将扮演一位刚入职场的初级律师,在与四位男主角携手解决离奇委托的过程中,被卷入不为人知的阴谋,开始一场恋爱×推理的冒险');
#
# Structure for table "product"
#
DROP TABLE IF EXISTS `product`;
CREATE TABLE `product` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`productCategoryId` int(11) NOT NULL,
`name` varchar(128) NOT NULL,
`tags` varchar(32) NOT NULL,
`imageUrl` varchar(128) NOT NULL,
`price` float(8,2) NOT NULL,
`stock` int(8) NOT NULL DEFAULT '0',
`sellNum` int(8) NOT NULL DEFAULT '0',
`viewNum` int(8) NOT NULL DEFAULT '0',
`commentNum` int(8) NOT NULL DEFAULT '0',
`content` text,
`createTime` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `productCategoryId` (`productCategoryId`),
CONSTRAINT `product_ibfk_1` FOREIGN KEY (`productCategoryId`) REFERENCES `product_category` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=58 DEFAULT CHARSET=utf8;
#
# Data for table "product"
#
INSERT INTO `product` VALUES (42,333,'钥匙扣','null,333','/youxi/resources/upload/1679399551736.jpg',39.90,50,1,9,0,'<p>原神周边</p>','2023-03-18 17:35:22'),(43,335,'钥匙扣','null,335','/youxi/resources/upload/1679399565255.jpg',39.90,48,3,19,0,'<p>周边</p>','2023-03-18 17:37:41'),(44,334,'手办','null,334','/youxi/resources/upload/1679399578556.jpg',99.90,14,3,11,1,'','2023-03-18 17:39:49'),(57,333,'抱枕','null,333','/youxi/resources/upload/1679399590626.jpg',69.90,25,5,22,2,'','2023-03-18 19:16:54');
#
# Structure for table "cart"
#
DROP TABLE IF EXISTS `cart`;
CREATE TABLE `cart` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userId` int(11) NOT NULL,
`productId` int(11) NOT NULL,
`name` varchar(128) NOT NULL,
`imageUrl` varchar(128) NOT NULL,
`price` float(8,2) NOT NULL DEFAULT '0.00',
`num` int(8) NOT NULL DEFAULT '0',
`money` double(8,2) NOT NULL DEFAULT '0.00',
`createTime` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `productCategoryId` (`productId`),
KEY `userId` (`userId`),
CONSTRAINT `cart_ibfk_1` FOREIGN KEY (`userId`) REFERENCES `account` (`id`),
CONSTRAINT `cart_ibfk_2` FOREIGN KEY (`productId`) REFERENCES `product` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
#
# Data for table "cart"
#
INSERT INTO `cart` VALUES (5,9,57,'抱枕','/youxi/resources/upload/1679399590626.jpg',69.90,1,69.90,'2023-04-10 11:53:37');
#
# Structure for table "comment"
#
DROP TABLE IF EXISTS `comment`;
CREATE TABLE `comment` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`productId` int(11) NOT NULL,
`userId` int(11) NOT NULL,
`type` int(2) NOT NULL DEFAULT '1',
`content` varchar(512) NOT NULL,
`createTime` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `productId` (`productId`),
KEY `userId` (`userId`),
CONSTRAINT `comment_ibfk_1` FOREIGN KEY (`productId`) REFERENCES `product` (`id`),
CONSTRAINT `comment_ibfk_2` FOREIGN KEY (`userId`) REFERENCES `account` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
#
# Data for table "comment"
#
INSERT INTO `comment` VALUES (2,57,9,1,'不错','2023-03-18 19:41:54'),(3,57,10,1,'很好啊','2023-03-21 17:09:35');
#
# Structure for table "favorite"
#
DROP TABLE IF EXISTS `favorite`;
CREATE TABLE `favorite` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userId` int(11) NOT NULL,
`productId` int(11) NOT NULL,
`name` varchar(128) NOT NULL,
`imageUrl` varchar(128) NOT NULL,
`price` float(8,2) NOT NULL DEFAULT '0.00',
`createTime` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `productCategoryId` (`productId`),
KEY `userId` (`userId`),
CONSTRAINT `favorite_ibfk_1` FOREIGN KEY (`userId`) REFERENCES `account` (`id`),
CONSTRAINT `favorite_ibfk_2` FOREIGN KEY (`productId`) REFERENCES `product` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
#
# Data for table "favorite"
#
INSERT INTO `favorite` VALUES (2,9,43,'钥匙扣','/youxi/resources/upload/1679399565255.jpg',39.90,'2023-03-22 10:44:23'),(3,9,42,'钥匙扣','/youxi/resources/upload/1679399551736.jpg',39.90,'2023-03-22 10:44:45'),(4,9,57,'抱枕','/youxi/resources/upload/1679399590626.jpg',69.90,'2023-04-08 09:19:56'),(5,11,57,'抱枕','/youxi/resources/upload/1679399590626.jpg',69.90,'2023-04-08 09:26:48');
#
# Structure for table "order_item"
#
DROP TABLE IF EXISTS `order_item`;
CREATE TABLE `order_item` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`productId` int(11) NOT NULL,
`orderId` int(11) NOT NULL,
`name` varchar(128) NOT NULL,
`imageUrl` varchar(128) NOT NULL,
`price` float(8,2) NOT NULL,
`num` int(8) NOT NULL DEFAULT '0',
`money` double(8,2) NOT NULL DEFAULT '0.00',
PRIMARY KEY (`id`),
KEY `productCategoryId` (`orderId`),
KEY `productId` (`productId`),
CONSTRAINT `order_item_ibfk_1` FOREIGN KEY (`productId`) REFERENCES `product` (`id`),
CONSTRAINT `order_item_ibfk_2` FOREIGN KEY (`orderId`) REFERENCES `orders` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;
#
# Data for table "order_item"
#
INSERT INTO `order_item` VALUES (4,57,3,'抱枕','/youxi/resources/upload/1679138197401.jpg',69.90,1,69.90),(5,57,4,'抱枕','/youxi/resources/upload/1679138197401.jpg',69.90,2,139.80),(6,44,5,'手办','/youxi/resources/upload/1679399578556.jpg',99.90,1,99.90),(7,43,5,'钥匙扣','/youxi/resources/upload/1679399565255.jpg',39.90,2,79.80),(8,57,6,'抱枕','/youxi/resources/upload/1679399590626.jpg',69.90,1,69.90),(9,57,7,'抱枕','/youxi/resources/upload/1679399590626.jpg',69.90,1,69.90);
#
# Structure for table "role"
#
DROP TABLE IF EXISTS `role`;
CREATE TABLE `role` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(32) NOT NULL,
`remark` varchar(128) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
#
# Data for table "role"
#
INSERT INTO `role` VALUES (1,'超级管理员','超级管理员拥有一切权限!'),(2,'普通用户','普通用户,请自由授权!');
#
# Structure for table "authority"
#
DROP TABLE IF EXISTS `authority`;
CREATE TABLE `authority` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`roleId` int(11) NOT NULL,
`menuId` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `roleId` (`roleId`),
KEY `menuId` (`menuId`),
CONSTRAINT `authority_ibfk_1` FOREIGN KEY (`roleId`) REFERENCES `role` (`id`),
CONSTRAINT `authority_ibfk_2` FOREIGN KEY (`menuId`) REFERENCES `menu` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=377 DEFAULT CHARSET=utf8;
#
# Data for table "authority"
#
INSERT INTO `authority` VALUES (148,2,35),(149,2,36),(150,2,25),(151,2,1),(152,2,14),(153,2,15),(331,1,1),(332,1,5),(333,1,17),(334,1,18),(335,1,19),(336,1,20),(337,1,13),(338,1,21),(339,1,22),(340,1,23),(341,1,35),(342,1,36),(343,1,14),(344,1,15),(345,1,24),(346,1,25),(347,1,26),(348,1,31),(349,1,32),(350,1,33),(351,1,34),(352,1,37),(353,1,38),(354,1,39),(355,1,40),(356,1,41),(357,1,42),(358,1,43),(359,1,44),(360,1,45),(361,1,46),(362,1,47),(363,1,48),(364,1,49),(365,1,50),(366,1,51),(367,1,52),(368,1,53),(369,1,54),(370,1,55),(371,1,56),(372,1,57),(373,1,58),(374,1,59),(375,1,60),(376,1,61);
#
# Structure for table "user"
#
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(32) NOT NULL,
`password` varchar(32) NOT NULL,
`roleId` int(11) NOT NULL,
`photo` varchar(128) DEFAULT NULL,
`sex` int(1) NOT NULL DEFAULT '0',
`age` int(3) NOT NULL DEFAULT '0',
`address` varchar(128) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `roleId` (`roleId`),
CONSTRAINT `user_ibfk_1` FOREIGN KEY (`roleId`) REFERENCES `role` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
#
# Data for table "user"
#
INSERT INTO `user` VALUES (1,'admin','admin',1,'/youxi/resources/upload/1679404298911.jpg',2,1,'河南省郑州市');
Loading…
Cancel
Save