model
This commit is contained in:
parent
d703e04ab6
commit
353a2045c4
|
|
@ -1,14 +1,6 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
/**
|
||||
* This file is part of Hyperf.
|
||||
*
|
||||
* @link https://www.hyperf.io
|
||||
* @document https://hyperf.wiki
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace App\Controller;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,14 +1,6 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
/**
|
||||
* This file is part of Hyperf.
|
||||
*
|
||||
* @link https://www.hyperf.io
|
||||
* @document https://hyperf.wiki
|
||||
* @contact group@hyperf.io
|
||||
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
||||
*/
|
||||
|
||||
namespace App\Controller;
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,43 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $account_id
|
||||
* @property int $account_type
|
||||
* @property int $belong_id
|
||||
* @property int $dept_id
|
||||
* @property string $username
|
||||
* @property string $password
|
||||
* @property string $salt
|
||||
* @property int $master_flag
|
||||
* @property int $status
|
||||
* @property string $nickname
|
||||
* @property string $avatar
|
||||
* @property string $bio
|
||||
* @property string $tags
|
||||
* @property int $sex
|
||||
* @property string $birthday
|
||||
* @property string $deleted_at
|
||||
* @property string $create_time
|
||||
* @property string $update_time
|
||||
*/
|
||||
class Account extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'account';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['account_id' => 'integer', 'account_type' => 'integer', 'belong_id' => 'integer', 'dept_id' => 'integer', 'master_flag' => 'integer', 'status' => 'integer', 'sex' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $log_id
|
||||
* @property int $account_type
|
||||
* @property int $belong_id
|
||||
* @property int $account_id
|
||||
* @property string $username
|
||||
* @property string $title
|
||||
* @property string $method
|
||||
* @property string $flag
|
||||
* @property int $code
|
||||
* @property string $request
|
||||
* @property string $response
|
||||
* @property string $ip
|
||||
* @property string $ua
|
||||
* @property string $create_time
|
||||
*/
|
||||
class AccountLog extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'account_log';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['log_id' => 'integer', 'account_type' => 'integer', 'belong_id' => 'integer', 'account_id' => 'integer', 'code' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $account_id
|
||||
* @property int $role_id
|
||||
*/
|
||||
class AccountMenu extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'account_menu';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['account_id' => 'integer', 'role_id' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $account_id
|
||||
* @property int $post_id
|
||||
*/
|
||||
class AccountPost extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'account_post';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['account_id' => 'integer', 'post_id' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $bank_id
|
||||
* @property string $bank_name
|
||||
* @property string $fin_institution_code
|
||||
* @property string $fin_institution_name
|
||||
* @property int $status
|
||||
* @property string $create_time
|
||||
* @property string $update_time
|
||||
* @property string $deleted_at
|
||||
*/
|
||||
class Bank extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'bank';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['bank_id' => 'integer', 'status' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $brand_id
|
||||
* @property int $org_id
|
||||
* @property int $merchant_id
|
||||
* @property string $code
|
||||
* @property string $url
|
||||
* @property string $image
|
||||
* @property string $status
|
||||
* @property string $create_time
|
||||
* @property string $update_time
|
||||
* @property string $deleted_at
|
||||
*/
|
||||
class Brand extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'brand';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['brand_id' => 'integer', 'org_id' => 'integer', 'merchant_id' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $channel_id
|
||||
* @property string $channel_name
|
||||
* @property string $channel_flag
|
||||
* @property string $config
|
||||
* @property int $rank
|
||||
* @property int $status
|
||||
* @property string $create_time
|
||||
* @property string $update_time
|
||||
* @property string $deleted_at
|
||||
*/
|
||||
class Channel extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'channel';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['channel_id' => 'integer', 'rank' => 'integer', 'status' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $rate_id
|
||||
* @property int $account_type
|
||||
* @property int $belong_id
|
||||
* @property int $merchant_channel_id
|
||||
* @property int $channel_id
|
||||
* @property string $mode
|
||||
* @property string $period
|
||||
* @property string $card_type
|
||||
* @property string $rate
|
||||
* @property string $rate_2
|
||||
* @property string $min_fee
|
||||
* @property string $max_fee
|
||||
* @property string $deleted_at
|
||||
* @property string $create_time
|
||||
* @property string $update_time
|
||||
*/
|
||||
class ChannelRate extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'channel_rate';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['rate_id' => 'integer', 'account_type' => 'integer', 'belong_id' => 'integer', 'merchant_channel_id' => 'integer', 'channel_id' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $charge_id
|
||||
* @property int $org_id
|
||||
* @property int $merchant_id
|
||||
* @property string $charge_name
|
||||
* @property int $type
|
||||
* @property string $bg_img
|
||||
* @property string $description
|
||||
* @property string $price
|
||||
* @property int $day_num
|
||||
* @property int $buy_time
|
||||
* @property string $create_time
|
||||
* @property string $update_time
|
||||
* @property string $deleted_at
|
||||
*/
|
||||
class Charge extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'charge';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['charge_id' => 'integer', 'org_id' => 'integer', 'merchant_id' => 'integer', 'type' => 'integer', 'day_num' => 'integer', 'buy_time' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $charge_item_id
|
||||
* @property int $charge_id
|
||||
* @property int $merchant_id
|
||||
* @property string $item_name
|
||||
* @property int $times
|
||||
* @property string $create_time
|
||||
* @property string $update_time
|
||||
* @property string $deleted_at
|
||||
*/
|
||||
class ChargeItem extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'charge_item';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['charge_item_id' => 'integer', 'charge_id' => 'integer', 'merchant_id' => 'integer', 'times' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $coupon_id
|
||||
* @property int $org_id
|
||||
* @property int $merchant_id
|
||||
* @property string $coupon_name
|
||||
* @property string $bg_img
|
||||
* @property string $description
|
||||
* @property int $type
|
||||
* @property int $discount
|
||||
* @property string $full_money
|
||||
* @property string $reduce_money
|
||||
* @property int $total
|
||||
* @property int $num
|
||||
* @property string $began_date
|
||||
* @property string $end_date
|
||||
* @property int $status
|
||||
* @property int $period
|
||||
* @property int $get_day
|
||||
* @property int $get_count
|
||||
* @property int $get_type
|
||||
* @property int $support_money
|
||||
* @property string $create_time
|
||||
* @property string $update_time
|
||||
* @property string $deleted_at
|
||||
*/
|
||||
class Coupon extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'coupon';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['coupon_id' => 'integer', 'org_id' => 'integer', 'merchant_id' => 'integer', 'type' => 'integer', 'discount' => 'integer', 'total' => 'integer', 'num' => 'integer', 'status' => 'integer', 'period' => 'integer', 'get_day' => 'integer', 'get_count' => 'integer', 'get_type' => 'integer', 'support_money' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $coupon_id
|
||||
* @property int $merchant_id
|
||||
*/
|
||||
class CouponMerchant extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'coupon_merchant';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['coupon_id' => 'integer', 'merchant_id' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $device_id
|
||||
* @property int $factory_id
|
||||
* @property int $org_id
|
||||
* @property int $merchant_id
|
||||
* @property int $device_type
|
||||
* @property string $code
|
||||
* @property string $device_sn
|
||||
* @property string $status
|
||||
* @property string $create_time
|
||||
* @property string $update_time
|
||||
* @property string $deleted_at
|
||||
*/
|
||||
class Device extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'device';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['device_id' => 'integer', 'factory_id' => 'integer', 'org_id' => 'integer', 'merchant_id' => 'integer', 'device_type' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $factory_id
|
||||
* @property string $factory_name
|
||||
* @property string $factory_flag
|
||||
* @property string $config
|
||||
* @property string $status
|
||||
* @property string $create_time
|
||||
* @property string $update_time
|
||||
* @property string $deleted_at
|
||||
*/
|
||||
class Factory extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'factory';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['factory_id' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $mcc_id
|
||||
* @property string $mcc_code
|
||||
* @property string $parent_code
|
||||
* @property string $mcc_name
|
||||
* @property string $ls_code
|
||||
* @property string $ls_name
|
||||
* @property string $lkl_industry_code
|
||||
* @property string $lkl_industry_name
|
||||
* @property int $status
|
||||
* @property string $create_time
|
||||
* @property string $update_time
|
||||
* @property string $deleted_at
|
||||
*/
|
||||
class Mcc extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'mcc';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['mcc_id' => 'integer', 'status' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $menu_id
|
||||
* @property int $pid
|
||||
* @property string $title
|
||||
* @property int $account_type
|
||||
* @property int $type
|
||||
* @property string $method
|
||||
* @property string $flag
|
||||
* @property string $name
|
||||
* @property string $path
|
||||
* @property string $icon
|
||||
* @property int $rank
|
||||
* @property int $hidden
|
||||
* @property string $create_time
|
||||
* @property string $update_time
|
||||
* @property string $deleted_at
|
||||
*/
|
||||
class Menu extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'menu';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['menu_id' => 'integer', 'pid' => 'integer', 'account_type' => 'integer', 'type' => 'integer', 'rank' => 'integer', 'hidden' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $merchant_id
|
||||
* @property int $org_id
|
||||
* @property int $pid
|
||||
* @property string $merchant_code
|
||||
* @property string $merchant_name
|
||||
* @property string $contact_name
|
||||
* @property string $contact_mobile
|
||||
* @property string $email
|
||||
* @property string $service_mobile
|
||||
* @property string $province_code
|
||||
* @property string $city_code
|
||||
* @property string $area_code
|
||||
* @property string $address
|
||||
* @property int $mode
|
||||
* @property int $merchant_type
|
||||
* @property string $mcc_code
|
||||
* @property int $status
|
||||
* @property string $door_pic
|
||||
* @property string $indoor_pic
|
||||
* @property string $desk_pic
|
||||
* @property string $create_time
|
||||
* @property string $update_time
|
||||
* @property string $deleted_at
|
||||
*/
|
||||
class Merchant extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'merchant';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['merchant_id' => 'integer', 'org_id' => 'integer', 'pid' => 'integer', 'mode' => 'integer', 'merchant_type' => 'integer', 'status' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,45 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $change_id
|
||||
* @property int $org_id
|
||||
* @property int $merchant_id
|
||||
* @property int $channel_id
|
||||
* @property int $income_id
|
||||
* @property string $change_no
|
||||
* @property string $change_type
|
||||
* @property int $status
|
||||
* @property string $reject_msg
|
||||
* @property string $settle_period
|
||||
* @property string $base
|
||||
* @property string $legal
|
||||
* @property string $attach
|
||||
* @property string $rates
|
||||
* @property string $license
|
||||
* @property string $account
|
||||
* @property string $contract_id
|
||||
* @property string $deleted_at
|
||||
* @property string $create_time
|
||||
* @property string $update_time
|
||||
*/
|
||||
class MerchantChange extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'merchant_change';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['change_id' => 'integer', 'org_id' => 'integer', 'merchant_id' => 'integer', 'channel_id' => 'integer', 'income_id' => 'integer', 'status' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $merchant_channel_id
|
||||
* @property int $org_id
|
||||
* @property int $merchant_id
|
||||
* @property int $channel_id
|
||||
* @property string $channel_merchant_no
|
||||
* @property string $config
|
||||
* @property int $earnings_flag
|
||||
* @property int $status
|
||||
* @property string $create_time
|
||||
* @property string $update_time
|
||||
* @property string $deleted_at
|
||||
*/
|
||||
class MerchantChannel extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'merchant_channel';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['merchant_channel_id' => 'integer', 'org_id' => 'integer', 'merchant_id' => 'integer', 'channel_id' => 'integer', 'earnings_flag' => 'integer', 'status' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,46 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $income_id
|
||||
* @property int $org_id
|
||||
* @property int $merchant_id
|
||||
* @property int $channel_id
|
||||
* @property string $income_no
|
||||
* @property int $status
|
||||
* @property string $reject_msg
|
||||
* @property string $settle_period
|
||||
* @property string $base
|
||||
* @property string $legal
|
||||
* @property string $attach
|
||||
* @property string $rates
|
||||
* @property string $license
|
||||
* @property string $account
|
||||
* @property string $ec_no
|
||||
* @property string $ec_apply_id
|
||||
* @property string $ec_url
|
||||
* @property string $ic_apply_id
|
||||
* @property string $deleted_at
|
||||
* @property string $create_time
|
||||
* @property string $update_time
|
||||
*/
|
||||
class MerchantIncome extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'merchant_income';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['income_id' => 'integer', 'org_id' => 'integer', 'merchant_id' => 'integer', 'channel_id' => 'integer', 'status' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $legal_id
|
||||
* @property int $merchant_id
|
||||
* @property int $credential_type
|
||||
* @property string $legal_name
|
||||
* @property string $id_card_no
|
||||
* @property string $id_card_front_pic
|
||||
* @property string $id_card_back_pic
|
||||
* @property string $id_card_hand_pic
|
||||
* @property string $id_card_start
|
||||
* @property string $id_card_end
|
||||
* @property string $create_time
|
||||
* @property string $update_time
|
||||
* @property string $deleted_at
|
||||
*/
|
||||
class MerchantLegal extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'merchant_legal';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['legal_id' => 'integer', 'merchant_id' => 'integer', 'credential_type' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $license_id
|
||||
* @property int $merchant_id
|
||||
* @property string $license_name
|
||||
* @property string $license_no
|
||||
* @property string $license_address
|
||||
* @property string $license_start
|
||||
* @property string $license_end
|
||||
* @property string $license_pic
|
||||
* @property string $create_time
|
||||
* @property string $update_time
|
||||
* @property string $deleted_at
|
||||
*/
|
||||
class MerchantLicense extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'merchant_license';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['license_id' => 'integer', 'merchant_id' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $roll_id
|
||||
* @property int $org_id
|
||||
* @property int $merchant_id
|
||||
* @property int $mode
|
||||
* @property string $data1
|
||||
* @property string $data2
|
||||
* @property string $data3
|
||||
* @property string $data4
|
||||
* @property string $data5
|
||||
* @property string $deleted_at
|
||||
* @property string $create_time
|
||||
* @property string $update_time
|
||||
*/
|
||||
class MerchantRoll extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'merchant_roll';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['roll_id' => 'integer', 'org_id' => 'integer', 'merchant_id' => 'integer', 'mode' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $settle_id
|
||||
* @property int $merchant_id
|
||||
* @property int $settle_type
|
||||
* @property string $holder
|
||||
* @property string $bank_card_no
|
||||
* @property string $mobile
|
||||
* @property string $province_code
|
||||
* @property string $city_code
|
||||
* @property string $fin_institution_code
|
||||
* @property string $opening_bank_code
|
||||
* @property int $credential_type
|
||||
* @property string $id_card_name
|
||||
* @property string $id_card_no
|
||||
* @property string $bank_card_front_pic
|
||||
* @property string $bank_card_back_pic
|
||||
* @property string $non_leg_idcard_front_pic
|
||||
* @property string $non_leg_idcard_back_pic
|
||||
* @property string $non_leg_start
|
||||
* @property string $non_leg_end
|
||||
* @property string $opening_permit_pic
|
||||
* @property string $create_time
|
||||
* @property string $update_time
|
||||
* @property string $deleted_at
|
||||
*/
|
||||
class MerchantSettle extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'merchant_settle';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['settle_id' => 'integer', 'merchant_id' => 'integer', 'settle_type' => 'integer', 'credential_type' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $term_id
|
||||
* @property int $org_id
|
||||
* @property int $merchant_id
|
||||
* @property int $channel_id
|
||||
* @property int $merchant_channel_id
|
||||
* @property string $term_no
|
||||
* @property string $config
|
||||
* @property int $status
|
||||
* @property string $create_time
|
||||
* @property string $update_time
|
||||
* @property string $deleted_at
|
||||
*/
|
||||
class MerchantTerm extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'merchant_term';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['term_id' => 'integer', 'org_id' => 'integer', 'merchant_id' => 'integer', 'channel_id' => 'integer', 'merchant_channel_id' => 'integer', 'status' => 'integer'];
|
||||
}
|
||||
|
|
@ -12,8 +12,10 @@ declare(strict_types=1);
|
|||
|
||||
namespace App\Model;
|
||||
|
||||
use Hyperf\Database\Model\SoftDeletes;
|
||||
use Hyperf\DbConnection\Model\Model as BaseModel;
|
||||
|
||||
abstract class Model extends BaseModel
|
||||
{
|
||||
use SoftDeletes;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,38 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $org_id
|
||||
* @property int $pid
|
||||
* @property string $org_name
|
||||
* @property string $org_code
|
||||
* @property int $org_type
|
||||
* @property string $contact_name
|
||||
* @property string $contact_mobile
|
||||
* @property string $id_card_front_pic
|
||||
* @property string $id_card_back_pic
|
||||
* @property string $license_pic
|
||||
* @property string $create_time
|
||||
* @property string $update_time
|
||||
* @property string $deleted_at
|
||||
*/
|
||||
class Org extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'org';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['org_id' => 'integer', 'pid' => 'integer', 'org_type' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $post_id
|
||||
* @property int $account_type
|
||||
* @property int $belong_id
|
||||
* @property string $post_name
|
||||
* @property string $create_time
|
||||
* @property string $update_time
|
||||
* @property string $deleted_at
|
||||
*/
|
||||
class Post extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'post';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['post_id' => 'integer', 'account_type' => 'integer', 'belong_id' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $region_id
|
||||
* @property string $area_code
|
||||
* @property string $parent_code
|
||||
* @property string $area_name
|
||||
* @property string $lkl_code
|
||||
* @property string $ls_code
|
||||
* @property int $status
|
||||
* @property string $create_time
|
||||
* @property string $update_time
|
||||
* @property string $deleted_at
|
||||
*/
|
||||
class Region extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'region';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['region_id' => 'integer', 'status' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $role_id
|
||||
* @property string $role_name
|
||||
* @property int $account_type
|
||||
* @property int $belong_id
|
||||
* @property string $checked_menus
|
||||
* @property int $status
|
||||
* @property int $rank
|
||||
* @property string $deleted_at
|
||||
* @property string $create_time
|
||||
* @property string $update_time
|
||||
*/
|
||||
class Role extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'role';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['role_id' => 'integer', 'account_type' => 'integer', 'belong_id' => 'integer', 'status' => 'integer', 'rank' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $role_id
|
||||
* @property int $menu_id
|
||||
*/
|
||||
class RoleMenu extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'role_menu';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['role_id' => 'integer', 'menu_id' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $bank_id
|
||||
* @property string $province_code
|
||||
* @property string $city_code
|
||||
* @property string $fin_institution_code
|
||||
* @property string $branch_name
|
||||
* @property string $unionpay_code
|
||||
* @property int $status
|
||||
* @property string $create_time
|
||||
* @property string $update_time
|
||||
* @property string $deleted_at
|
||||
*/
|
||||
class SubBank extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'sub_bank';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['bank_id' => 'integer', 'status' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,54 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $trade_id
|
||||
* @property int $org_id
|
||||
* @property int $merchant_id
|
||||
* @property string $trade_no
|
||||
* @property int $ori_trade_id
|
||||
* @property string $subject
|
||||
* @property string $appid
|
||||
* @property string $openid
|
||||
* @property string $ip
|
||||
* @property int $timeout
|
||||
* @property string $amount
|
||||
* @property int $channel_id
|
||||
* @property int $merchant_channel_id
|
||||
* @property int $pay_status
|
||||
* @property string $out_transaction_id
|
||||
* @property string $mer_transaction_id
|
||||
* @property string $transaction_id
|
||||
* @property int $trade_type
|
||||
* @property string $auth_code
|
||||
* @property string $platform
|
||||
* @property string $period
|
||||
* @property string $card_type
|
||||
* @property int $source
|
||||
* @property string $succ_time
|
||||
* @property string $fail_time
|
||||
* @property string $fail_msg
|
||||
* @property string $create_time
|
||||
* @property string $update_time
|
||||
* @property string $deleted_at
|
||||
*/
|
||||
class Trade extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'trade';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['trade_id' => 'integer', 'org_id' => 'integer', 'merchant_id' => 'integer', 'ori_trade_id' => 'integer', 'timeout' => 'integer', 'channel_id' => 'integer', 'merchant_channel_id' => 'integer', 'pay_status' => 'integer', 'trade_type' => 'integer', 'source' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $fee_id
|
||||
* @property int $trade_id
|
||||
* @property int $account_type
|
||||
* @property int $belong_id
|
||||
* @property string $rate
|
||||
* @property int $fee
|
||||
* @property string $deleted_at
|
||||
* @property string $create_time
|
||||
* @property string $update_time
|
||||
*/
|
||||
class TradeFee extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'trade_fee';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['fee_id' => 'integer', 'trade_id' => 'integer', 'account_type' => 'integer', 'belong_id' => 'integer', 'fee' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $out_trade_id
|
||||
* @property int $org_id
|
||||
* @property int $merchant_id
|
||||
* @property int $trade_id
|
||||
* @property int $origin
|
||||
* @property string $out_trade_no
|
||||
* @property string $notify_url
|
||||
* @property int $notify_flag
|
||||
* @property int $notify_num
|
||||
* @property string $create_time
|
||||
* @property string $update_time
|
||||
* @property string $deleted_at
|
||||
*/
|
||||
class TradeOut extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'trade_out';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['out_trade_id' => 'integer', 'org_id' => 'integer', 'merchant_id' => 'integer', 'trade_id' => 'integer', 'origin' => 'integer', 'notify_flag' => 'integer', 'notify_num' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $summary_day_id
|
||||
* @property int $account_type
|
||||
* @property int $belong_id
|
||||
* @property string $total_money
|
||||
* @property string $wechat_money
|
||||
* @property string $alipay_money
|
||||
* @property string $unionpay_money
|
||||
* @property string $balace_money
|
||||
* @property string $create_date
|
||||
*/
|
||||
class TradeSummaryDay extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'trade_summary_day';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['summary_day_id' => 'integer', 'account_type' => 'integer', 'belong_id' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $user_id
|
||||
* @property int $invite_id
|
||||
* @property string $nickname
|
||||
* @property string $platform
|
||||
* @property string $openid
|
||||
* @property string $avatar
|
||||
* @property int $sex
|
||||
* @property string $birthday
|
||||
* @property string $create_time
|
||||
* @property string $update_time
|
||||
* @property string $deleted_at
|
||||
*/
|
||||
class User extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'user';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['user_id' => 'integer', 'invite_id' => 'integer', 'sex' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $uesr_charge_id
|
||||
* @property int $user_id
|
||||
* @property int $merchant_id
|
||||
* @property int $charge_id
|
||||
* @property string $charge_no
|
||||
* @property string $money
|
||||
* @property int $status
|
||||
* @property string $create_time
|
||||
* @property string $update_time
|
||||
* @property string $deleted_at
|
||||
*/
|
||||
class UserCharge extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'user_charge';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['uesr_charge_id' => 'integer', 'user_id' => 'integer', 'merchant_id' => 'integer', 'charge_id' => 'integer', 'status' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $user_charge_item_id
|
||||
* @property int $org_id
|
||||
* @property int $merchant_id
|
||||
* @property int $user_id
|
||||
* @property int $charge_id
|
||||
* @property int $uesr_charge_id
|
||||
* @property int $charge_item_id
|
||||
* @property int $times
|
||||
* @property string $create_time
|
||||
* @property string $update_time
|
||||
* @property string $deleted_at
|
||||
*/
|
||||
class UserChargeItem extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'user_charge_item';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['user_charge_item_id' => 'integer', 'org_id' => 'integer', 'merchant_id' => 'integer', 'user_id' => 'integer', 'charge_id' => 'integer', 'uesr_charge_id' => 'integer', 'charge_item_id' => 'integer', 'times' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,38 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $user_coupon_id
|
||||
* @property int $org_id
|
||||
* @property int $merchant_id
|
||||
* @property int $user_id
|
||||
* @property int $coupon_id
|
||||
* @property string $coupon_num
|
||||
* @property int $use_status
|
||||
* @property string $use_time
|
||||
* @property int $use_merchant_id
|
||||
* @property int $get_type
|
||||
* @property string $create_time
|
||||
* @property string $update_time
|
||||
* @property string $deleted_at
|
||||
*/
|
||||
class UserCoupon extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'user_coupon';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['user_coupon_id' => 'integer', 'org_id' => 'integer', 'merchant_id' => 'integer', 'user_id' => 'integer', 'coupon_id' => 'integer', 'use_status' => 'integer', 'use_merchant_id' => 'integer', 'get_type' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $register_id
|
||||
* @property int $org_id
|
||||
* @property int $merchant_id
|
||||
* @property string $create_time
|
||||
* @property string $update_time
|
||||
* @property string $deleted_at
|
||||
*/
|
||||
class UserRegister extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'user_register';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['register_id' => 'integer', 'org_id' => 'integer', 'merchant_id' => 'integer'];
|
||||
}
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property int $wallet_id
|
||||
* @property int $account_type
|
||||
* @property int $belong_id
|
||||
* @property int $type
|
||||
* @property string $amount
|
||||
* @property string $deleted_at
|
||||
* @property string $create_time
|
||||
* @property string $update_time
|
||||
*/
|
||||
class Wallet extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*/
|
||||
protected ?string $table = 'wallet';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*/
|
||||
protected array $fillable = [];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['wallet_id' => 'integer', 'account_type' => 'integer', 'belong_id' => 'integer', 'type' => 'integer'];
|
||||
}
|
||||
|
|
@ -21,6 +21,7 @@
|
|||
"hyperf/database": "~3.1.0",
|
||||
"hyperf/db-connection": "~3.1.0",
|
||||
"hyperf/engine": "^2.10",
|
||||
"hyperf/filesystem": "^3.1",
|
||||
"hyperf/framework": "~3.1.0",
|
||||
"hyperf/guzzle": "~3.1.0",
|
||||
"hyperf/http-server": "~3.1.0",
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ declare(strict_types=1);
|
|||
use Hyperf\Server\Event;
|
||||
use Hyperf\Server\Server;
|
||||
use Swoole\Constant;
|
||||
use function Hyperf\Support\env;
|
||||
|
||||
return [
|
||||
'mode' => SWOOLE_PROCESS,
|
||||
|
|
@ -20,13 +21,12 @@ return [
|
|||
'name' => 'http',
|
||||
'type' => Server::SERVER_HTTP,
|
||||
'host' => '0.0.0.0',
|
||||
'port' => 9501,
|
||||
'port' => (int) env('APP_PORT'),
|
||||
'sock_type' => SWOOLE_SOCK_TCP,
|
||||
'callbacks' => [
|
||||
Event::ON_REQUEST => [Hyperf\HttpServer\Server::class, 'onRequest'],
|
||||
],
|
||||
'options' => [
|
||||
// Whether to enable request lifecycle event
|
||||
'enable_request_lifecycle' => false,
|
||||
],
|
||||
],
|
||||
|
|
@ -41,6 +41,9 @@ return [
|
|||
Constant::OPTION_MAX_REQUEST => 100000,
|
||||
Constant::OPTION_SOCKET_BUFFER_SIZE => 2 * 1024 * 1024,
|
||||
Constant::OPTION_BUFFER_OUTPUT_SIZE => 2 * 1024 * 1024,
|
||||
// 将 public 替换为上传目录
|
||||
'document_root' => BASE_PATH . '/public',
|
||||
'enable_static_handler' => true,
|
||||
],
|
||||
'callbacks' => [
|
||||
Event::ON_WORKER_START => [Hyperf\Framework\Bootstrap\WorkerStartCallback::class, 'onWorkerStart'],
|
||||
|
|
|
|||
Loading…
Reference in New Issue