7 changed files with 122 additions and 0 deletions
			
			
		@ -0,0 +1,8 @@ | 
				
			|||||
 | 
					.vscode | 
				
			||||
 | 
					.buildpath | 
				
			||||
 | 
					.project | 
				
			||||
 | 
					.settings/ | 
				
			||||
 | 
					.idea | 
				
			||||
 | 
					.DS_Store | 
				
			||||
 | 
					config/database* | 
				
			||||
 | 
					cache/ | 
				
			||||
@ -0,0 +1,23 @@ | 
				
			|||||
 | 
					<?php | 
				
			||||
 | 
					/** | 
				
			||||
 | 
					 * | 
				
			||||
 | 
					 */ | 
				
			||||
 | 
					include_once SERVER_ROOT . '/data/dBase.php'; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					class dGoods extends dBase { | 
				
			||||
 | 
					    protected $fieldlist = array( | 
				
			||||
 | 
					        'goods_list' => array( | 
				
			||||
 | 
					            'id', | 
				
			||||
 | 
					            'goods_id', | 
				
			||||
 | 
					            'goods_name', | 
				
			||||
 | 
					            'goods_price', | 
				
			||||
 | 
					            'shop_id', | 
				
			||||
 | 
					            'uid' | 
				
			||||
 | 
					        ), | 
				
			||||
 | 
					    ); | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    protected $primary_keys = array( | 
				
			||||
 | 
					        'goods_list' => 'id', | 
				
			||||
 | 
					    ); | 
				
			||||
 | 
					} | 
				
			||||
 | 
					
 | 
				
			||||
@ -0,0 +1,27 @@ | 
				
			|||||
 | 
					<?php | 
				
			||||
 | 
					/** | 
				
			||||
 | 
					 * | 
				
			||||
 | 
					 */ | 
				
			||||
 | 
					include_once SERVER_ROOT . '/data/dBase.php'; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					class dOrder extends dBase { | 
				
			||||
 | 
					    protected $fieldlist = array( | 
				
			||||
 | 
					        'order_list' => array( | 
				
			||||
 | 
					            'id', | 
				
			||||
 | 
					            'order_sn', | 
				
			||||
 | 
					            'order_status', | 
				
			||||
 | 
					            'refund_status', | 
				
			||||
 | 
					            'pay_amount', | 
				
			||||
 | 
					            'pay_time', | 
				
			||||
 | 
					            'shop_id', | 
				
			||||
 | 
					            'goods_id', | 
				
			||||
 | 
					            'sku_id', | 
				
			||||
 | 
					            'uid', | 
				
			||||
 | 
					        ), | 
				
			||||
 | 
					    ); | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    protected $primary_keys = array( | 
				
			||||
 | 
					        'order_list' => 'id', | 
				
			||||
 | 
					    ); | 
				
			||||
 | 
					} | 
				
			||||
 | 
					
 | 
				
			||||
@ -0,0 +1,22 @@ | 
				
			|||||
 | 
					<?php | 
				
			||||
 | 
					/** | 
				
			||||
 | 
					 * | 
				
			||||
 | 
					 */ | 
				
			||||
 | 
					include_once SERVER_ROOT . '/data/dBase.php'; | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					class dShop extends dBase { | 
				
			||||
 | 
					    protected $fieldlist = array( | 
				
			||||
 | 
					        'shop_list' => array( | 
				
			||||
 | 
					            'id', | 
				
			||||
 | 
					            'name', | 
				
			||||
 | 
					            'access_token', | 
				
			||||
 | 
					            'expire_time', | 
				
			||||
 | 
					            'uid' | 
				
			||||
 | 
					        ), | 
				
			||||
 | 
					    ); | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    protected $primary_keys = array( | 
				
			||||
 | 
					        'shop_list' => 'id', | 
				
			||||
 | 
					    ); | 
				
			||||
 | 
					} | 
				
			||||
 | 
					
 | 
				
			||||
@ -0,0 +1,14 @@ | 
				
			|||||
 | 
					<?php | 
				
			||||
 | 
					/** | 
				
			||||
 | 
					 * | 
				
			||||
 | 
					 */ | 
				
			||||
 | 
					include_once(SERVER_ROOT."/model/mBase.php"); | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					class mGoods extends mBase { | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    public function __construct() { | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    } | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					} | 
				
			||||
@ -0,0 +1,14 @@ | 
				
			|||||
 | 
					<?php | 
				
			||||
 | 
					/** | 
				
			||||
 | 
					 * | 
				
			||||
 | 
					 */ | 
				
			||||
 | 
					include_once(SERVER_ROOT."/model/mBase.php"); | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					class mOrder extends mBase { | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    public function __construct() { | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    } | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					} | 
				
			||||
@ -0,0 +1,14 @@ | 
				
			|||||
 | 
					<?php | 
				
			||||
 | 
					/** | 
				
			||||
 | 
					 * | 
				
			||||
 | 
					 */ | 
				
			||||
 | 
					include_once(SERVER_ROOT."/model/mBase.php"); | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					class mShop extends mBase { | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    public function __construct() { | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					    } | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					} | 
				
			||||
					Loading…
					
					
				
		Reference in new issue