1 Star 0 Fork 10

Andy / ai_web

forked from 上海老李 / ai_web 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
ppgo_api_admin.sql 22.50 KB
一键复制 编辑 原始数据 按行查看 历史
上海老李 提交于 2019-05-24 12:31 . 初始化
/*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Version : 50712
Source Host : localhost
Source Database : apiAdmin
Target Server Version : 50712
File Encoding : utf-8
Date: 10/11/2017 15:51:13 PM
*/
SET NAMES utf8;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for `pp_api_detail`
-- ----------------------------
DROP TABLE IF EXISTS `pp_api_detail`;
CREATE TABLE `pp_api_detail` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`source_id` int(11) NOT NULL DEFAULT '0' COMMENT '主表ID',
`method` tinyint(1) NOT NULL DEFAULT '1' COMMENT '方法名称:1-GET 2-POST 3-PUT 4-PATCH 5-DELETE',
`api_name` varchar(100) NOT NULL DEFAULT '0' COMMENT '接口名称',
`api_url` varchar(100) NOT NULL DEFAULT '0' COMMENT '接口地址',
`protocol_type` varchar(20) NOT NULL DEFAULT '1' COMMENT '协议类型,1-http,2-https',
`result` text COMMENT '返回结果,正确或错误',
`example` text COMMENT '接口示例',
`detail` varchar(1000) NOT NULL DEFAULT '0' COMMENT '注意事项',
`audit_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '审核时间',
`audit_id` int(11) NOT NULL DEFAULT '0' COMMENT '审核人',
`status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态:1-正在审核,0-暂停使用,2-审核通过',
`create_id` int(11) NOT NULL DEFAULT '0' COMMENT '创建者ID',
`update_id` int(11) NOT NULL DEFAULT '0' COMMENT '修改者ID',
`create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
`update_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
PRIMARY KEY (`id`),
KEY `idx_main_id` (`source_id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COMMENT='API附表';
-- ----------------------------
-- Records of `pp_api_detail`
-- ----------------------------
BEGIN;
INSERT INTO `pp_api_detail` VALUES ('1', '1', '1', '获取会员列表5', '/member', '1', '{\nstatus:200,\nmsg:\"成功\",\ndata:{\n}\n}', 'http://example.com/member?key=1001&sign=123', '测试', '0', '1', '3', '1', '1', '1507617867', '1507699008'), ('2', '1', '1', '获取单个会员详情', '/member/:id', '1', '{\nstatus:200,\nmsg:\"成功\",\ndata:{\n}\n}', 'http://www.haodaquan.com/member/12', 'ceshi', '0', '1', '1', '1', '1', '1507619939', '1507693579'), ('3', '2', '3', '积分增加', '/score', '0', '{\nstatus:200,\nmsg:\"成功\",\ndata{\nmember_id:11\n}\n}', 'http://example.com/score', '这是一个测试的接口', '0', '0', '1', '1', '1', '1507699351', '1507699351');
COMMIT;
-- ----------------------------
-- Table structure for `pp_api_param`
-- ----------------------------
DROP TABLE IF EXISTS `pp_api_param`;
CREATE TABLE `pp_api_param` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`detail_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '附表ID',
`api_key` varchar(100) NOT NULL DEFAULT '0' COMMENT '参数名',
`api_type` varchar(100) NOT NULL DEFAULT '0' COMMENT '类型',
`api_value` varchar(500) NOT NULL DEFAULT '0' COMMENT '参数值',
`api_detail` varchar(500) NOT NULL DEFAULT '0' COMMENT '参数说明',
`is_null` varchar(10) NOT NULL DEFAULT 'no' COMMENT '是否必填',
`status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态:1-正常,0-删除',
`create_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建者ID',
`update_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '修改者ID',
`create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
`update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
PRIMARY KEY (`id`),
KEY `idx_main_id` (`detail_id`)
) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=utf8mb4 COMMENT='API参数表';
-- ----------------------------
-- Records of `pp_api_param`
-- ----------------------------
BEGIN;
INSERT INTO `pp_api_param` VALUES ('1', '1', 'rank_id', 'int', '1', '等级', 'no', '0', '1', '1', '1507617867', '1507699008'), ('2', '1', 'page_size', 'int', '10', '非必填,默认', 'no', '0', '1', '1', '1507617867', '1507699008'), ('3', '1', 'page_no', 'int', '1', '非必填,默认', 'no', '0', '1', '1', '1507617867', '1507699008'), ('4', '1', 'page_size', 'int', '10', '非必填,默认', 'no', '0', '1', '1', '1507692188', '1507699008'), ('5', '1', 'page_no', 'int', '1', '非必填,默认', 'no', '0', '1', '1', '1507692188', '1507699008'), ('6', '1', 'rank_id', 'int', '1', '等级', 'no', '0', '1', '1', '1507692188', '1507699008'), ('7', '1', 'page_no', 'int', '1', '非必填,默认', 'no', '0', '1', '1', '1507692427', '1507699008'), ('8', '1', 'rank_id2', 'int', '1', '等级', 'no', '0', '1', '1', '1507692427', '1507699008'), ('9', '1', 'page_size', 'int', '10', '非必填,默认', 'no', '0', '1', '1', '1507692427', '1507699008'), ('10', '1', 'rank_id2', 'int', '1', '等级', 'no', '0', '1', '1', '1507693216', '1507699008'), ('11', '1', 'page_size', 'int', '10', '非必填,默认', 'no', '0', '1', '1', '1507693216', '1507699008'), ('12', '1', 'rank_id', 'int', '1', '等级', 'no', '0', '1', '1', '1507693216', '1507699008'), ('13', '1', 'page_size222', 'int', '10', '非必填,默认', 'no', '0', '1', '1', '1507693216', '1507699008'), ('14', '1', 'page_size', 'int', '10', '非必填,默认', 'no', '0', '1', '1', '1507693216', '1507699008'), ('15', '1', 'page_no', 'int', '1', '非必填,默认', 'no', '0', '1', '1', '1507693216', '1507699008'), ('16', '1', 'page_no', 'int', '1', '非必填,默认', 'no', '0', '1', '1', '1507693216', '1507699008'), ('17', '1', 'rank_id', 'int', '1', '等级', 'no', '0', '1', '1', '1507693216', '1507699008'), ('18', '1', 'page_no', 'int', '1', '非必填,默认', 'no', '0', '1', '1', '1507693216', '1507699008'), ('19', '1', 'page_size', 'int', '10', '非必填,默认', 'no', '0', '1', '1', '1507693274', '1507699008'), ('20', '1', 'rank_id', 'int', '1', '等级', 'no', '0', '1', '1', '1507693274', '1507699008'), ('21', '1', 'rank_id', 'int', '1', '等级', 'no', '0', '1', '1', '1507693274', '1507699008'), ('22', '2', 'D', 'D', 'D', 'D', 'D', '1', '1', '1', '1507693579', '1507693579'), ('23', '1', 'rank_id', 'int', '1', '等级', 'no', '0', '1', '1', '1507696615', '1507699008'), ('24', '1', 'page_size', 'int', '10', '非必填,默认', 'no', '0', '1', '1', '1507696615', '1507699008'), ('25', '1', 'rank_id', 'int', '1', '等级', 'no', '0', '1', '1', '1507696615', '1507699008'), ('26', '1', 'page_size', 'int', '10', '非必填,默认', 'no', '0', '1', '1', '1507697203', '1507699008'), ('27', '1', 'rank_id', 'int', '1', '等级', 'no', '0', '1', '1', '1507697203', '1507699008'), ('28', '1', 'rank_id', 'int', '1', '等级', 'no', '0', '1', '1', '1507697203', '1507699008'), ('29', '1', 'rank_id', 'int', '1', '等级', 'no', '0', '1', '1', '1507697237', '1507699008'), ('30', '1', 'rank_id', 'int', '1', '等级', 'no', '0', '1', '1', '1507697237', '1507699008'), ('31', '1', 'page_size', 'int', '10', '非必填,默认', 'no', '0', '1', '1', '1507697237', '1507699008'), ('32', '1', 'rank_id', 'int', '1', '等级', 'no', '0', '1', '1', '1507697271', '1507699008'), ('33', '1', 'page_size', 'int', '10', '非必填,默认', 'no', '0', '1', '1', '1507697271', '1507699008'), ('34', '1', 'rank_id', 'int', '1', '等级', 'no', '0', '1', '1', '1507697271', '1507699008'), ('35', '1', 'rank_id', 'int', '1', '等级', 'no', '0', '1', '1', '1507698950', '1507699008'), ('36', '1', 'page_size', 'int', '10', '非必填,默认', 'no', '0', '1', '1', '1507698950', '1507699008'), ('37', '1', 'rank_id', 'int', '1', '等级', 'no', '0', '1', '1', '1507698950', '1507699008'), ('38', '1', 'rank_id', 'int', '1', '等级', 'no', '1', '1', '1', '1507699008', '1507699008'), ('39', '1', 'page_size', 'int', '10', '非必填,默认', 'no', '1', '1', '1', '1507699008', '1507699008'), ('40', '1', 'rank_id', 'int', '1', '等级', 'no', '1', '1', '1', '1507699008', '1507699008'), ('41', '3', 'score', 'int', '1', '变动积分', 'yes', '1', '1', '1', '1507699351', '1507699351'), ('42', '3', 'type', 'int', '1', '1-增加,0-减少', 'no', '1', '1', '1', '1507699351', '1507699351'), ('43', '3', 'member_id', 'int', '0', '会员ID', 'yes', '1', '1', '1', '1507699351', '1507699351');
COMMIT;
-- ----------------------------
-- Table structure for `pp_api_source`
-- ----------------------------
DROP TABLE IF EXISTS `pp_api_source`;
CREATE TABLE `pp_api_source` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`group_id` int(11) NOT NULL DEFAULT '0' COMMENT '分组ID',
`source_name` varchar(50) NOT NULL DEFAULT '0' COMMENT '接口名称',
`status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态:1-审核通过,0-暂停使用,2-草稿,3-审核中',
`audit_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '审核人ID',
`create_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建者ID',
`update_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '修改者ID',
`create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
`update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
`audit_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '审核人时间',
PRIMARY KEY (`id`),
KEY `idx_group_id` (`group_id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COMMENT='API主表';
-- ----------------------------
-- Records of `pp_api_source`
-- ----------------------------
BEGIN;
INSERT INTO `pp_api_source` VALUES ('1', '2', '会员基本信息', '2', '0', '1', '1', '1507616276', '1507616276', '0'), ('2', '2', '会员积分', '2', '0', '1', '1', '1507616329', '1507616329', '0'), ('3', '2', '会员消费', '2', '0', '1', '1', '1507616394', '1507616394', '0'), ('4', '1', '商品基本信息', '2', '0', '1', '1', '1507616421', '1507616421', '0');
COMMIT;
-- ----------------------------
-- Table structure for `pp_set_code`
-- ----------------------------
DROP TABLE IF EXISTS `pp_set_code`;
CREATE TABLE `pp_set_code` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`code` varchar(50) NOT NULL DEFAULT '0' COMMENT '状态码',
`desc` varchar(255) NOT NULL DEFAULT '0' COMMENT '描述',
`detail` varchar(255) NOT NULL DEFAULT '0' COMMENT '备注',
`status` tinyint(4) unsigned NOT NULL DEFAULT '0' COMMENT '状态,1-正常 0禁用',
`create_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建者ID',
`update_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '修改者ID',
`create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
`update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '修改时间',
PRIMARY KEY (`id`),
UNIQUE KEY `idx_env_name` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COMMENT='环境分组表';
-- ----------------------------
-- Records of `pp_set_code`
-- ----------------------------
BEGIN;
INSERT INTO `pp_set_code` VALUES ('1', '200', '返回成功', '请求成功', '1', '0', '0', '1506328003', '1506328037'), ('2', '300', '返回错误', '请求失败', '1', '0', '0', '1506328023', '1506328023'), ('3', '302', '请求成功', '错误', '0', '0', '0', '1506328070', '1506334951');
COMMIT;
-- ----------------------------
-- Table structure for `pp_set_env`
-- ----------------------------
DROP TABLE IF EXISTS `pp_set_env`;
CREATE TABLE `pp_set_env` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`env_name` varchar(50) NOT NULL DEFAULT '' COMMENT '环境名称',
`env_host` varchar(255) NOT NULL DEFAULT '0' COMMENT '环境host',
`detail` varchar(255) NOT NULL DEFAULT '0' COMMENT '备注',
`status` tinyint(4) unsigned NOT NULL DEFAULT '0' COMMENT '状态,1-正常 0禁用',
`create_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建者ID',
`update_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '修改者ID',
`create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
`update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '修改时间',
PRIMARY KEY (`id`),
UNIQUE KEY `idx_env_name` (`env_name`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COMMENT='环境分组表';
-- ----------------------------
-- Records of `pp_set_env`
-- ----------------------------
BEGIN;
INSERT INTO `pp_set_env` VALUES ('1', '测试地址', 'http://127.0.0.1:8081', '测试地址', '1', '0', '0', '1506316614', '1506316614'), ('2', '测试地址3', 'http://127.0.0.1:8083', '测试地址3', '0', '0', '0', '1506316696', '1506316850');
COMMIT;
-- ----------------------------
-- Table structure for `pp_set_group`
-- ----------------------------
DROP TABLE IF EXISTS `pp_set_group`;
CREATE TABLE `pp_set_group` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`group_name` varchar(50) NOT NULL DEFAULT '' COMMENT '组名',
`detail` varchar(255) NOT NULL DEFAULT '' COMMENT '说明',
`status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态:1-正常,0-删除',
`create_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
`update_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户ID',
`create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
`update_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
PRIMARY KEY (`id`),
KEY `idx_create_id` (`create_id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4;
-- ----------------------------
-- Records of `pp_set_group`
-- ----------------------------
BEGIN;
INSERT INTO `pp_set_group` VALUES ('1', '商品接口', '这是商品的分组', '1', '0', '1', '1506237536', '1507616254'), ('2', '会员接口', '关于会员的接口', '1', '0', '1', '1506237621', '1507616227'), ('3', '修改分组', '测试分组333', '0', '0', '0', '1506237655', '1506245311');
COMMIT;
-- ----------------------------
-- Table structure for `pp_uc_admin`
-- ----------------------------
DROP TABLE IF EXISTS `pp_uc_admin`;
CREATE TABLE `pp_uc_admin` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`login_name` varchar(20) NOT NULL DEFAULT '' COMMENT '用户名',
`real_name` varchar(32) NOT NULL DEFAULT '0' COMMENT '真实姓名',
`password` char(32) NOT NULL DEFAULT '' COMMENT '密码',
`role_ids` varchar(255) NOT NULL DEFAULT '0' COMMENT '角色id字符串,如:2,3,4',
`phone` varchar(20) NOT NULL DEFAULT '0' COMMENT '手机号码',
`email` varchar(50) NOT NULL DEFAULT '' COMMENT '邮箱',
`salt` char(10) NOT NULL DEFAULT '' COMMENT '密码盐',
`last_login` int(11) NOT NULL DEFAULT '0' COMMENT '最后登录时间',
`last_ip` char(15) NOT NULL DEFAULT '' COMMENT '最后登录IP',
`status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '状态,1-正常 0禁用',
`create_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建者ID',
`update_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '修改者ID',
`create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
`update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '修改时间',
PRIMARY KEY (`id`),
UNIQUE KEY `idx_user_name` (`login_name`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COMMENT='管理员表';
-- ----------------------------
-- Records of `pp_uc_admin`
-- ----------------------------
BEGIN;
INSERT INTO `pp_uc_admin` VALUES ('1', 'admin', '超级管理员', '840fa1e5f049c861c7ed245293afcf8d', '0', '13888888889', 'haodaquan2008@163.com', 'kmcB', '1507707108', '[', '1', '0', '0', '0', '1506128438'), ('2','admin123', 'georgeHao', 'e5d77ebaffd5e4fe7164b31c6d7f1921', '1,2', '13811558899', '12@11.com', 'ONNy', '1506125048', '127.0.0.1', '1', '0', '0', '0', '1506128425'), ('3', 'haodaquan', '郝大全', 'e9fa9187e7497892c237433aee966cc1', '2,1', '13811559988', 'hao@123.com', '6fWE', '1505960085', '127.0.0.1', '1', '1', '0', '1505919245', '1506128414'), ('4', 'ceshizhanghao', '测试姓名', 'fa3fb5825c2e64bc764f29245dd1ec7a', '2', '13988009988', '232@124.com', 'i8Nf', '0', '', '1', '1', '0', '1506047337', '1506128397');
COMMIT;
-- ----------------------------
-- Table structure for `pp_uc_auth`
-- ----------------------------
DROP TABLE IF EXISTS `pp_uc_auth`;
CREATE TABLE `pp_uc_auth` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID',
`pid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '上级ID,0为顶级',
`auth_name` varchar(64) NOT NULL DEFAULT '0' COMMENT '权限名称',
`auth_url` varchar(255) NOT NULL DEFAULT '0' COMMENT 'URL地址',
`sort` int(1) unsigned NOT NULL DEFAULT '999' COMMENT '排序,越小越前',
`icon` varchar(255) NOT NULL,
`is_show` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否显示,0-隐藏,1-显示',
`user_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '操作者ID',
`create_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建者ID',
`update_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '修改者ID',
`status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态,1-正常,0-删除',
`create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
`update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=39 DEFAULT CHARSET=utf8mb4 COMMENT='权限因子';
-- ----------------------------
-- Records of `pp_uc_auth`
-- ----------------------------
BEGIN;
INSERT INTO `pp_uc_auth` VALUES ('1', '0', '所有权限', '/', '1', '', '0', '1', '1', '1', '1', '1505620970', '1505620970'), ('2', '1', '权限管理', '/', '999', 'fa-id-card', '1', '1', '0', '1', '1', '0', '1505622360'), ('3', '2', '管理员', '/admin/list', '1', 'fa-user-o', '1', '1', '1', '1', '1', '1505621186', '1505621186'), ('4', '2', '角色管理', '/role/list', '2', 'fa-user-circle-o', '1', '1', '0', '1', '1', '0', '1505621852'), ('5', '3', '新增', '/admin/add', '1', '', '0', '1', '0', '1', '1', '0', '1505621685'), ('6', '3', '修改', '/admin/edit', '2', '', '0', '1', '0', '1', '1', '0', '1505621697'), ('7', '3', '删除', '/admin/ajaxdel', '3', '', '0', '1', '1', '1', '1', '1505621756', '1505621756'), ('8', '4', '新增', '/role/add', '1', '', '1', '1', '0', '1', '1', '0', '1505698716'), ('9', '4', '修改', '/role/edit', '2', '', '0', '1', '1', '1', '1', '1505621912', '1505621912'), ('10', '4', '删除', '/role/ajaxdel', '3', '', '0', '1', '1', '1', '1', '1505621951', '1505621951'), ('11', '2', '权限因子', '/auth/list', '3', 'fa-list', '1', '1', '1', '1', '1', '1505621986', '1505621986'), ('12', '11', '新增', '/auth/add', '1', '', '0', '1', '1', '1', '1', '1505622009', '1505622009'), ('13', '11', '修改', '/auth/edit', '2', '', '0', '1', '1', '1', '1', '1505622047', '1505622047'), ('14', '11', '删除', '/auth/ajaxdel', '3', '', '0', '1', '1', '1', '1', '1505622111', '1505622111'), ('15', '1', '个人中心', 'profile/edit', '1001', 'fa-user-circle-o', '1', '1', '0', '1', '1', '0', '1506001114'), ('16', '1', 'API管理', '/', '1', 'fa-cubes', '1', '0', '0', '0', '1', '0', '1506125698'), ('17', '16', 'API接口', '/api/list', '1', 'fa-link', '1', '1', '1', '1', '1', '1505622447', '1505622447'), ('19', '16', 'API监控', '/apimonitor/list', '3', 'fa-bar-chart', '1', '1', '0', '1', '1', '0', '1507700851'), ('20', '1', '基础设置', '/', '2', 'fa-cogs', '1', '1', '1', '1', '1', '1505622601', '1505622601'), ('21', '20', '分组设置', '/group/list', '1', 'fa-object-ungroup', '1', '1', '1', '1', '1', '1505622645', '1505622645'), ('22', '20', '环境设置', '/env/list', '2', 'fa-tree', '1', '1', '1', '1', '1', '1505622681', '1505622681'), ('23', '20', '状态码设置', '/code/list', '3', 'fa-code', '1', '1', '1', '1', '1', '1505622728', '1505622728'), ('24', '15', '资料修改', '/user/edit', '1', 'fa-edit', '1', '1', '0', '1', '1', '0', '1506057468'), ('25', '21', '新增', '/group/add', '1', 'n', '1', '0', '0', '0', '1', '1506229739', '1506229739'), ('26', '21', '修改', '/group/edit', '2', 'fa', '0', '0', '0', '0', '1', '1506237920', '1506237920'), ('27', '21', '删除', '/group/ajaxdel', '3', 'fa', '0', '0', '0', '0', '1', '1506237948', '1506237948'), ('28', '22', '新增', '/env/add', '1', 'fa', '0', '0', '0', '0', '1', '1506316506', '1506316506'), ('29', '22', '修改', '/env/edit', '2', 'fa', '0', '0', '0', '0', '1', '1506316532', '1506316532'), ('30', '22', '删除', '/env/ajaxdel', '3', 'fa', '0', '0', '0', '0', '1', '1506316567', '1506316567'), ('31', '23', '新增', '/code/add', '1', 'fa', '0', '0', '0', '0', '1', '1506327812', '1506327812'), ('32', '23', '修改', '/code/edit', '2', 'fa', '0', '0', '0', '0', '1', '1506327831', '1506327831'), ('33', '23', '删除', '/code/ajadel', '3', 'fa', '0', '0', '0', '0', '1', '1506327857', '1506327857'), ('34', '17', '新增资源', '/api/add', '1', 'fa-link', '1', '1', '0', '1', '1', '0', '1507436029'), ('35', '17', '修改资源', '/api/edit', '2', 'fa-link', '1', '1', '0', '1', '1', '0', '1507436042'), ('36', '17', '删除资源', '/api/ajaxdel', '3', 'fa-link', '1', '1', '0', '1', '1', '0', '1507436052'), ('37', '17', '新增接口', '/api/addapi', '4', '', '0', '1', '1', '1', '1', '1507436014', '1507436014'), ('38', '17', '修改接口', '/api/editapi', '5', '', '0', '1', '0', '1', '1', '0', '1507705049');
COMMIT;
-- ----------------------------
-- Table structure for `pp_uc_role`
-- ----------------------------
DROP TABLE IF EXISTS `pp_uc_role`;
CREATE TABLE `pp_uc_role` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键ID',
`role_name` varchar(32) NOT NULL DEFAULT '0' COMMENT '角色名称',
`detail` varchar(255) NOT NULL DEFAULT '0' COMMENT '备注',
`create_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建者ID',
`update_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '修改这ID',
`status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态1-正常,0-删除',
`create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '添加时间',
`update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '修改时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='角色表';
-- ----------------------------
-- Records of `pp_uc_role`
-- ----------------------------
BEGIN;
INSERT INTO `pp_uc_role` VALUES ('1', 'API管理员', '拥有API所有权限', '0', '2', '1', '1505874156', '1505874156'), ('2', '系统管理员', '系统管理员', '0', '0', '1', '1506124114', '1506124114');
COMMIT;
-- ----------------------------
-- Table structure for `pp_uc_role_auth`
-- ----------------------------
DROP TABLE IF EXISTS `pp_uc_role_auth`;
CREATE TABLE `pp_uc_role_auth` (
`role_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '角色ID',
`auth_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '权限ID',
PRIMARY KEY (`role_id`,`auth_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='权限和角色关系表';
-- ----------------------------
-- Records of `pp_uc_role_auth`
-- ----------------------------
BEGIN;
INSERT INTO `pp_uc_role_auth` VALUES ('1', '16'), ('1', '17'), ('1', '18'), ('1', '19'), ('2', '0'), ('2', '1'), ('2', '15'), ('2', '20'), ('2', '21'), ('2', '22'), ('2', '23'), ('2', '24');
COMMIT;
SET FOREIGN_KEY_CHECKS = 1;
1
https://gitee.com/andy_w/ai_web.git
git@gitee.com:andy_w/ai_web.git
andy_w
ai_web
ai_web
master

搜索帮助