微擎模块安装文件manifest.xml

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns="http://www.we7.cc" versionCode="0.6"> <application setting="true"> <name><![CDATA[便利店]]></name> <identifie><![CDATA[we7_store]]></identifie> <version><![CDATA[1.9]]></version> <type><![CDATA[business]]></type> <ability><![CDATA[一个简单的便利店]]></ability> <description><![CDATA[教初学者如何快速开发一个微擎模块.]]></description> <author><![CDATA[Gorden]]></author> <url><![CDATA[http://bbs.we7.cc/]]></url> </application> <platform> <subscribes> <message type="text" /> <message type="image" /> <message type="voice" /> <message type="video" /> <message type="location" /> <message type="link" /> <message type="subscribe" /> <message type="unsubscribe" /> <message type="qr" /> <message type="trace" /> <message type="click" /> <message type="enter" /> </subscribes> <handles> <message type="text" /> <message type="image" /> <message type="voice" /> <message type="video" /> <message type="location" /> <message type="link" /> <message type="subscribe" /> <message type="qr" /> <message type="trace" /> <message type="click" /> <message type="enter" /> </handles> <rule embed="true" /> </platform> <bindings> <cover call="getRuleMenus"> <entry title="便利店首页" do="store" state="" direct="true" /> </cover> <menu call="getMenus"> <entry title="分类管理" do="category" state="" direct="false" /> <entry title="商品管理" do="goods" state="" direct="false" /> <entry title="订单管理" do="orders" state="" direct="false" /> </menu> <home call="getHomes"> <entry title="便利店首页" do="store" state="" direct="true" /> </home> <profile call="getProfiles"> <entry title="便利店订单" do="orders" state="" direct="false" /> </profile> <shortcut call="getShortcuts"> <entry title="便利店订单" do="orders" state="" direct="false" /> </shortcut> <rule> <entry title="规则" do="rule" state="" direct="false" /> </rule> </bindings> <install><![CDATA[ -- PHPMyAdmin sql Dump -- version 4.1.6 -- http://www.PHPmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 2015-03-17 09:50:23 -- 服务器版本: 5.5.39 -- PHP Version: 5.4.31 SET sql_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `we7_prowx3` -- -- -------------------------------------------------------- -- -- 表的结构 `ims_we7_store_cart` -- CREATE TABLE IF NOT EXISTS `ims_we7_store_cart` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',`goodsid` int(10) unsigned NOT NULL COMMENT '商品编号',`quantity` int(11) NOT NULL,`uid` varchar(50) NOT NULL COMMENT '微信会员OPENID OR UID',`uniacid` int(10) unsigned NOT NULL,`createtime` int(10) unsigned NOT NULL COMMENT '加入购物车时间',PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- 表的结构 `ims_we7_store_category` -- CREATE TABLE IF NOT EXISTS `ims_we7_store_category` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '分类id',`name` varchar(30) NOT NULL COMMENT '类名',`orderno` int(10) unsigned NOT NULL COMMENT '排序',`uniacid` int(11) NOT NULL,PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- 表的结构 `ims_we7_store_goods` -- CREATE TABLE IF NOT EXISTS `ims_we7_store_goods` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',`sn` varchar(30) NOT NULL COMMENT '条码',`name` varchar(50) NOT NULL COMMENT '品名',`image` varchar(255) NOT NULL,`price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '价格',`cost` decimal(10,2) NOT NULL COMMENT '成本价',`uniacid` int(10) unsigned NOT NULL COMMENT '统一公众号',`createtime` int(10) unsigned NOT NULL COMMENT '添加日期',`status` int(11) NOT NULL COMMENT '1:下架,2: 上架',`categoryid` int(11) NOT NULL COMMENT '分类 id',PRIMARY KEY (`id`),KEY `sn` (`sn`),KEY `uniacid` (`uniacid`),KEY `categoryid` (`categoryid`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='商品表' AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- 表的结构 `ims_we7_store_items` -- CREATE TABLE IF NOT EXISTS `ims_we7_store_items` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT,`orderid` int(10) unsigned NOT NULL COMMENT '订单编号',`goodsid` int(10) unsigned NOT NULL,`name` varchar(30) NOT NULL COMMENT '品名',`image` varchar(100) NOT NULL,2) NOT NULL COMMENT '售价',`quantity` int(11) NOT NULL COMMENT '购买数量',2) NOT NULL COMMENT '实时成本',KEY `orderid` (`orderid`),KEY `goodsid` (`goodsid`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- 表的结构 `ims_we7_store_orders` -- CREATE TABLE IF NOT EXISTS `ims_we7_store_orders` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT,`uid` int(10) unsigned NOT NULL,`nickname` varchar(30) NOT NULL,`realname` varchar(30) NOT NULL,`sn` varchar(30) NOT NULL,`amount` decimal(10,2) NOT NULL COMMENT '金额合计',`province` varchar(30) NOT NULL,`city` varchar(30) NOT NULL,`district` varchar(30) NOT NULL,`createtime` int(10) unsigned NOT NULL,`paytime` int(10) unsigned NOT NULL COMMENT '付款日期',`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1:未付款;2已付款',KEY `uid` (`uid`),KEY `uniacid` (`uniacid`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- 表的结构 `ims_we7_store_user` -- CREATE TABLE IF NOT EXISTS `ims_we7_store_user` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT,`total` decimal(10,2) NOT NULL COMMENT '消费总金额',PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ; ]]></install> <uninstall><![CDATA[ DROP TABLE IF EXISTS `ims_we7_store_cart`; DROP TABLE IF EXISTS `ims_we7_store_category`; DROP TABLE IF EXISTS `ims_we7_store_goods`; DROP TABLE IF EXISTS `ims_we7_store_items`; DROP TABLE IF EXISTS `ims_we7_store_orders`; DROP TABLE IF EXISTS `ims_we7_store_user`; ]]></uninstall> <upgrade><![CDATA[]]></upgrade> </manifest>

相关文章

引言 NOKIA 有句著名的广告语:“科技以人为本”。任何技术都是为了满足人的生产生活需要而产生的。具体...
Writer:BYSocket(泥沙砖瓦浆木匠) 微博:BYSocket 豆瓣:BYSocket Reprint it anywhere u want. 文章...
Writer:BYSocket(泥沙砖瓦浆木匠) 微博:BYSocket 豆瓣:BYSocket Reprint it anywhere u want. 文章...
http://blog.jobbole.com/79252/ 引言 NOKIA 有句著名的广告语:“科技以人为本”。任何技术都是为了满...
(点击上方公众号,可快速关注) 公众号:smart_android 作者:耿广龙|loonggg 点击“阅读原文”,可查看...
一、xml与xslt 相信所有人对xml都不陌生,其被广泛的应用于数据数据传输、保存与序列化中,是一种极为强...