create tables

This commit is contained in:
邓皓元 2018-11-06 18:52:55 +08:00
parent 9406f4c0d8
commit 9d3e4cb577
34 changed files with 385 additions and 3 deletions

View File

View File

@ -0,0 +1,28 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateFlowTables extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}

View File

@ -0,0 +1,33 @@
<?php
namespace App\Domains\Flow\Providers;
use Illuminate\Support\ServiceProvider;
use App\Domains\Flow\Providers\RouteServiceProvider;
use Illuminate\Database\Eloquent\Factory as EloquentFactory;
class FlowServiceProvider extends ServiceProvider
{
/**
* 引导启动任何应用程序服务
*
* php artisan make:migration --path=app/Domains/Flow/Database/migrations
*
* @return void
*/
public function boot()
{
// $this->loadMigrationsFrom([realpath(__DIR__ . '/../Database/migrations')]);
// $this->app->make(EloquentFactory::class)->load(realpath(__DIR__ . '/../Database/factories'));
// $this->mergeConfigFrom(realpath(__DIR__ . '/../config.php'), 'domain.flow');
}
/**
* 注册一个服务提供者
*
* @return void
*/
public function register()
{
$this->app->register(RouteServiceProvider::class);
}
}

View File

@ -0,0 +1,20 @@
<?php
namespace App\Domains\Flow\Providers;
use Dipper\Foundation\Core\RouteServiceProvider as ServiceProvider;
class RouteServiceProvider extends ServiceProvider
{
/**
* Read the routes from the "api.php" and "web.php" files of this Domain
*/
public function boot()
{
$app = $this->app;
$namespace = 'App\Domains\Flow\Http\Controllers';
$pathApi = __DIR__.'/../Routes/api.php';
$pathWeb = __DIR__.'/../Routes/web.php';
$this->loadRoutesFiles($app->router, $namespace, $pathApi, $pathWeb);
}
}

View File

@ -0,0 +1,15 @@
<?php
// Prefix: /api/flows
$router->group(['prefix' => 'flows', 'as' => 'flows'], function($router) {
// The controllers live in Domains/Flow/Http/Controllers
$router->get('/', ['as' => 'index', 'uses' => 'FlowController@index']);
/**
* 需要认证的接口
*/
// $router->group(['middleware' => ['adminAuth']], function($router) {
// // $router->post('delete', ['as' => 'delete', 'uses' => 'FlowController@delete']);
// });
});

View File

@ -0,0 +1,14 @@
<?php
$router->group(['prefix' => 'flows', 'as' => 'flows'], function($router) {
// The controllers live in Domains/Flow/Http/Controllers
// $router->get('/', ['as' => 'index', 'uses' => 'FlowController@index']);
/**
* 需要认证的接口
*/
// $router->group(['middleware' => ['userAuth']], function($router) {
// // $router->post('delete', ['as' => 'delete', 'uses' => 'FlowController@delete']);
// });
});

View File

@ -0,0 +1,11 @@
{
"name": "app/flow",
"description": "",
"type": "app-domain",
"require": {
},
"autoload": {
}
}

View File

View File

@ -0,0 +1,28 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTrueTables extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}

View File

@ -0,0 +1,20 @@
<?php
namespace App\Domains\True\Providers;
use Dipper\Foundation\Core\RouteServiceProvider as ServiceProvider;
class RouteServiceProvider extends ServiceProvider
{
/**
* Read the routes from the "api.php" and "web.php" files of this Domain
*/
public function boot()
{
$app = $this->app;
$namespace = 'App\Domains\True\Http\Controllers';
$pathApi = __DIR__.'/../Routes/api.php';
$pathWeb = __DIR__.'/../Routes/web.php';
$this->loadRoutesFiles($app->router, $namespace, $pathApi, $pathWeb);
}
}

View File

@ -0,0 +1,33 @@
<?php
namespace App\Domains\True\Providers;
use Illuminate\Support\ServiceProvider;
use App\Domains\True\Providers\RouteServiceProvider;
use Illuminate\Database\Eloquent\Factory as EloquentFactory;
class TrueServiceProvider extends ServiceProvider
{
/**
* 引导启动任何应用程序服务
*
* php artisan make:migration --path=app/Domains/True/Database/migrations
*
* @return void
*/
public function boot()
{
// $this->loadMigrationsFrom([realpath(__DIR__ . '/../Database/migrations')]);
// $this->app->make(EloquentFactory::class)->load(realpath(__DIR__ . '/../Database/factories'));
// $this->mergeConfigFrom(realpath(__DIR__ . '/../config.php'), 'domain.true');
}
/**
* 注册一个服务提供者
*
* @return void
*/
public function register()
{
$this->app->register(RouteServiceProvider::class);
}
}

View File

@ -0,0 +1,15 @@
<?php
// Prefix: /api/trues
$router->group(['prefix' => 'trues', 'as' => 'trues'], function($router) {
// The controllers live in Domains/True/Http/Controllers
$router->get('/', ['as' => 'index', 'uses' => 'TrueController@index']);
/**
* 需要认证的接口
*/
// $router->group(['middleware' => ['adminAuth']], function($router) {
// // $router->post('delete', ['as' => 'delete', 'uses' => 'TrueController@delete']);
// });
});

View File

@ -0,0 +1,14 @@
<?php
$router->group(['prefix' => 'trues', 'as' => 'trues'], function($router) {
// The controllers live in Domains/True/Http/Controllers
// $router->get('/', ['as' => 'index', 'uses' => 'TrueController@index']);
/**
* 需要认证的接口
*/
// $router->group(['middleware' => ['userAuth']], function($router) {
// // $router->post('delete', ['as' => 'delete', 'uses' => 'TrueController@delete']);
// });
});

View File

@ -0,0 +1,11 @@
{
"name": "app/true",
"description": "",
"type": "app-domain",
"require": {
},
"autoload": {
}
}

View File

View File

@ -0,0 +1,28 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateVirtualTables extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}

View File

@ -0,0 +1,20 @@
<?php
namespace App\Domains\Virtual\Providers;
use Dipper\Foundation\Core\RouteServiceProvider as ServiceProvider;
class RouteServiceProvider extends ServiceProvider
{
/**
* Read the routes from the "api.php" and "web.php" files of this Domain
*/
public function boot()
{
$app = $this->app;
$namespace = 'App\Domains\Virtual\Http\Controllers';
$pathApi = __DIR__.'/../Routes/api.php';
$pathWeb = __DIR__.'/../Routes/web.php';
$this->loadRoutesFiles($app->router, $namespace, $pathApi, $pathWeb);
}
}

View File

@ -0,0 +1,33 @@
<?php
namespace App\Domains\Virtual\Providers;
use Illuminate\Support\ServiceProvider;
use App\Domains\Virtual\Providers\RouteServiceProvider;
use Illuminate\Database\Eloquent\Factory as EloquentFactory;
class VirtualServiceProvider extends ServiceProvider
{
/**
* 引导启动任何应用程序服务
*
* php artisan make:migration --path=app/Domains/Virtual/Database/migrations
*
* @return void
*/
public function boot()
{
// $this->loadMigrationsFrom([realpath(__DIR__ . '/../Database/migrations')]);
// $this->app->make(EloquentFactory::class)->load(realpath(__DIR__ . '/../Database/factories'));
// $this->mergeConfigFrom(realpath(__DIR__ . '/../config.php'), 'domain.virtual');
}
/**
* 注册一个服务提供者
*
* @return void
*/
public function register()
{
$this->app->register(RouteServiceProvider::class);
}
}

View File

@ -0,0 +1,15 @@
<?php
// Prefix: /api/virtuals
$router->group(['prefix' => 'virtuals', 'as' => 'virtuals'], function($router) {
// The controllers live in Domains/Virtual/Http/Controllers
$router->get('/', ['as' => 'index', 'uses' => 'VirtualController@index']);
/**
* 需要认证的接口
*/
// $router->group(['middleware' => ['adminAuth']], function($router) {
// // $router->post('delete', ['as' => 'delete', 'uses' => 'VirtualController@delete']);
// });
});

View File

@ -0,0 +1,14 @@
<?php
$router->group(['prefix' => 'virtuals', 'as' => 'virtuals'], function($router) {
// The controllers live in Domains/Virtual/Http/Controllers
// $router->get('/', ['as' => 'index', 'uses' => 'VirtualController@index']);
/**
* 需要认证的接口
*/
// $router->group(['middleware' => ['userAuth']], function($router) {
// // $router->post('delete', ['as' => 'delete', 'uses' => 'VirtualController@delete']);
// });
});

View File

@ -0,0 +1,11 @@
{
"name": "app/virtual",
"description": "",
"type": "app-domain",
"require": {
},
"autoload": {
}
}

View File

@ -10,7 +10,6 @@
}
</script>
<style lang="less" scoped>
@import '~css/home';
</style>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=\favicon.ico><script src=\config.js></script><title></title><link href=/css/chunk-d3bfffc8.0c922e7a.css rel=prefetch><link href=/js/chunk-abcdb748.eb20fb6e.js rel=prefetch><link href=/js/chunk-d3bfffc8.9235d061.js rel=prefetch><link href=/css/app.36043160.css rel=preload as=style><link href=/css/chunk-vendors.5803e894.css rel=preload as=style><link href=/js/app.6f2d58e2.js rel=preload as=script><link href=/js/chunk-vendors.0507d74c.js rel=preload as=script><link href=/css/chunk-vendors.5803e894.css rel=stylesheet><link href=/css/app.36043160.css rel=stylesheet></head><body><noscript><strong>很抱歉如果没有启用JavaScript程序不能正常工作若要继续使用请启用它。</strong></noscript><div id=app></div><script src=/js/chunk-vendors.0507d74c.js></script><script src=/js/app.6f2d58e2.js></script></body></html>
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=\favicon.ico><script src=\config.js></script><title></title><link href=/css/chunk-164bab70.165b275d.css rel=prefetch><link href=/js/chunk-164bab70.b975b1fb.js rel=prefetch><link href=/js/chunk-abcdb748.eb20fb6e.js rel=prefetch><link href=/css/app.36043160.css rel=preload as=style><link href=/css/chunk-vendors.5803e894.css rel=preload as=style><link href=/js/app.9027a90d.js rel=preload as=script><link href=/js/chunk-vendors.0507d74c.js rel=preload as=script><link href=/css/chunk-vendors.5803e894.css rel=stylesheet><link href=/css/app.36043160.css rel=stylesheet></head><body><noscript><strong>很抱歉如果没有启用JavaScript程序不能正常工作若要继续使用请启用它。</strong></noscript><div id=app></div><script src=/js/chunk-vendors.0507d74c.js></script><script src=/js/app.9027a90d.js></script></body></html>

View File

@ -1,3 +1,7 @@
<?php
require_once realpath(dirname(__FILE__) . '/TestCase.php');
require_once realpath(dirname(__FILE__) . '/TestCase.php');
$res = \DB::connection('mongo')->table('tblCard')->find('1440059652572');
dd($res);