mirror of
https://gitee.com/technical-laohu/mpay_v2_webman.git
synced 2026-04-25 11:34:27 +08:00
更新统一使用 PHPDoc + PSR-19 标准注释
This commit is contained in:
@@ -10,8 +10,18 @@ use app\common\base\BaseModel;
|
||||
*/
|
||||
class BizOrder extends BaseModel
|
||||
{
|
||||
/**
|
||||
* 数据表名
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $table = 'ma_biz_order';
|
||||
|
||||
/**
|
||||
* 可批量赋值字段
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $fillable = [
|
||||
'biz_no',
|
||||
'trace_no',
|
||||
@@ -35,6 +45,11 @@ class BizOrder extends BaseModel
|
||||
'ext_json',
|
||||
];
|
||||
|
||||
/**
|
||||
* 字段类型转换配置
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $casts = [
|
||||
'merchant_id' => 'integer',
|
||||
'merchant_group_id' => 'integer',
|
||||
@@ -56,3 +71,5 @@ class BizOrder extends BaseModel
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -10,8 +10,18 @@ use app\common\base\BaseModel;
|
||||
*/
|
||||
class NotifyTask extends BaseModel
|
||||
{
|
||||
/**
|
||||
* 数据表名
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $table = 'ma_notify_task';
|
||||
|
||||
/**
|
||||
* 可批量赋值字段
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $fillable = [
|
||||
'notify_no',
|
||||
'merchant_id',
|
||||
@@ -27,11 +37,21 @@ class NotifyTask extends BaseModel
|
||||
'last_response',
|
||||
];
|
||||
|
||||
/**
|
||||
* 隐藏字段
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $hidden = [
|
||||
'notify_data',
|
||||
'last_response',
|
||||
];
|
||||
|
||||
/**
|
||||
* 字段类型转换配置
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $casts = [
|
||||
'merchant_id' => 'integer',
|
||||
'merchant_group_id' => 'integer',
|
||||
@@ -45,3 +65,5 @@ class NotifyTask extends BaseModel
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -10,8 +10,18 @@ use app\common\base\BaseModel;
|
||||
*/
|
||||
class PayOrder extends BaseModel
|
||||
{
|
||||
/**
|
||||
* 数据表名
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $table = 'ma_pay_order';
|
||||
|
||||
/**
|
||||
* 可批量赋值字段
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $fillable = [
|
||||
'pay_no',
|
||||
'biz_no',
|
||||
@@ -49,6 +59,11 @@ class PayOrder extends BaseModel
|
||||
'ext_json',
|
||||
];
|
||||
|
||||
/**
|
||||
* 字段类型转换配置
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $casts = [
|
||||
'merchant_id' => 'integer',
|
||||
'merchant_group_id' => 'integer',
|
||||
@@ -81,3 +96,5 @@ class PayOrder extends BaseModel
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -10,8 +10,18 @@ use app\common\base\BaseModel;
|
||||
*/
|
||||
class PaymentChannel extends BaseModel
|
||||
{
|
||||
/**
|
||||
* 数据表名
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $table = 'ma_payment_channel';
|
||||
|
||||
/**
|
||||
* 可批量赋值字段
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $fillable = [
|
||||
'merchant_id',
|
||||
'name',
|
||||
@@ -30,6 +40,11 @@ class PaymentChannel extends BaseModel
|
||||
'sort_no',
|
||||
];
|
||||
|
||||
/**
|
||||
* 字段类型转换配置
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $casts = [
|
||||
'merchant_id' => 'integer',
|
||||
'split_rate_bp' => 'integer',
|
||||
@@ -49,3 +64,5 @@ class PaymentChannel extends BaseModel
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -10,14 +10,39 @@ use app\common\base\BaseModel;
|
||||
*/
|
||||
class PaymentPlugin extends BaseModel
|
||||
{
|
||||
/**
|
||||
* 数据表名
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $table = 'ma_payment_plugin';
|
||||
|
||||
/**
|
||||
* 主键字段名
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $primaryKey = 'code';
|
||||
|
||||
/**
|
||||
* incrementing
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
public $incrementing = false;
|
||||
|
||||
/**
|
||||
* key类型
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $keyType = 'string';
|
||||
|
||||
/**
|
||||
* 可批量赋值字段
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $fillable = [
|
||||
'code',
|
||||
'name',
|
||||
@@ -32,6 +57,11 @@ class PaymentPlugin extends BaseModel
|
||||
'remark',
|
||||
];
|
||||
|
||||
/**
|
||||
* 字段类型转换配置
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $casts = [
|
||||
'config_schema' => 'array',
|
||||
'pay_types' => 'array',
|
||||
@@ -43,3 +73,5 @@ class PaymentPlugin extends BaseModel
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -10,8 +10,18 @@ use app\common\base\BaseModel;
|
||||
*/
|
||||
class PaymentPluginConf extends BaseModel
|
||||
{
|
||||
/**
|
||||
* 数据表名
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $table = 'ma_payment_plugin_conf';
|
||||
|
||||
/**
|
||||
* 可批量赋值字段
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $fillable = [
|
||||
'plugin_code',
|
||||
'config',
|
||||
@@ -20,6 +30,11 @@ class PaymentPluginConf extends BaseModel
|
||||
'remark',
|
||||
];
|
||||
|
||||
/**
|
||||
* 字段类型转换配置
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $casts = [
|
||||
'config' => 'array',
|
||||
'settlement_cycle_type' => 'integer',
|
||||
@@ -29,3 +44,5 @@ class PaymentPluginConf extends BaseModel
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -10,8 +10,18 @@ use app\common\base\BaseModel;
|
||||
*/
|
||||
class PaymentPollGroup extends BaseModel
|
||||
{
|
||||
/**
|
||||
* 数据表名
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $table = 'ma_payment_poll_group';
|
||||
|
||||
/**
|
||||
* 可批量赋值字段
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $fillable = [
|
||||
'group_name',
|
||||
'pay_type_id',
|
||||
@@ -20,6 +30,11 @@ class PaymentPollGroup extends BaseModel
|
||||
'remark',
|
||||
];
|
||||
|
||||
/**
|
||||
* 字段类型转换配置
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $casts = [
|
||||
'pay_type_id' => 'integer',
|
||||
'route_mode' => 'integer',
|
||||
@@ -29,3 +44,5 @@ class PaymentPollGroup extends BaseModel
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -10,8 +10,18 @@ use app\common\base\BaseModel;
|
||||
*/
|
||||
class PaymentPollGroupBind extends BaseModel
|
||||
{
|
||||
/**
|
||||
* 数据表名
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $table = 'ma_payment_poll_group_bind';
|
||||
|
||||
/**
|
||||
* 可批量赋值字段
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $fillable = [
|
||||
'merchant_group_id',
|
||||
'pay_type_id',
|
||||
@@ -20,6 +30,11 @@ class PaymentPollGroupBind extends BaseModel
|
||||
'remark',
|
||||
];
|
||||
|
||||
/**
|
||||
* 字段类型转换配置
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $casts = [
|
||||
'merchant_group_id' => 'integer',
|
||||
'pay_type_id' => 'integer',
|
||||
@@ -31,3 +46,5 @@ class PaymentPollGroupBind extends BaseModel
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -10,8 +10,18 @@ use app\common\base\BaseModel;
|
||||
*/
|
||||
class PaymentPollGroupChannel extends BaseModel
|
||||
{
|
||||
/**
|
||||
* 数据表名
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $table = 'ma_payment_poll_group_channel';
|
||||
|
||||
/**
|
||||
* 可批量赋值字段
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $fillable = [
|
||||
'poll_group_id',
|
||||
'channel_id',
|
||||
@@ -22,6 +32,11 @@ class PaymentPollGroupChannel extends BaseModel
|
||||
'remark',
|
||||
];
|
||||
|
||||
/**
|
||||
* 字段类型转换配置
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $casts = [
|
||||
'poll_group_id' => 'integer',
|
||||
'channel_id' => 'integer',
|
||||
@@ -35,3 +50,5 @@ class PaymentPollGroupChannel extends BaseModel
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -10,8 +10,18 @@ use app\common\base\BaseModel;
|
||||
*/
|
||||
class PaymentType extends BaseModel
|
||||
{
|
||||
/**
|
||||
* 数据表名
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $table = 'ma_payment_type';
|
||||
|
||||
/**
|
||||
* 可批量赋值字段
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $fillable = [
|
||||
'code',
|
||||
'name',
|
||||
@@ -21,6 +31,11 @@ class PaymentType extends BaseModel
|
||||
'remark',
|
||||
];
|
||||
|
||||
/**
|
||||
* 字段类型转换配置
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $casts = [
|
||||
'sort_no' => 'integer',
|
||||
'status' => 'integer',
|
||||
@@ -30,3 +45,5 @@ class PaymentType extends BaseModel
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -10,8 +10,18 @@ use app\common\base\BaseModel;
|
||||
*/
|
||||
class RefundOrder extends BaseModel
|
||||
{
|
||||
/**
|
||||
* 数据表名
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $table = 'ma_refund_order';
|
||||
|
||||
/**
|
||||
* 可批量赋值字段
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $fillable = [
|
||||
'refund_no',
|
||||
'merchant_id',
|
||||
@@ -36,6 +46,11 @@ class RefundOrder extends BaseModel
|
||||
'ext_json',
|
||||
];
|
||||
|
||||
/**
|
||||
* 字段类型转换配置
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $casts = [
|
||||
'merchant_id' => 'integer',
|
||||
'merchant_group_id' => 'integer',
|
||||
@@ -55,3 +70,5 @@ class RefundOrder extends BaseModel
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -10,8 +10,18 @@ use app\common\base\BaseModel;
|
||||
*/
|
||||
class SettlementItem extends BaseModel
|
||||
{
|
||||
/**
|
||||
* 数据表名
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $table = 'ma_settlement_item';
|
||||
|
||||
/**
|
||||
* 可批量赋值字段
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $fillable = [
|
||||
'settle_no',
|
||||
'merchant_id',
|
||||
@@ -27,6 +37,11 @@ class SettlementItem extends BaseModel
|
||||
'item_status',
|
||||
];
|
||||
|
||||
/**
|
||||
* 字段类型转换配置
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $casts = [
|
||||
'merchant_id' => 'integer',
|
||||
'merchant_group_id' => 'integer',
|
||||
@@ -43,3 +58,5 @@ class SettlementItem extends BaseModel
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -10,8 +10,18 @@ use app\common\base\BaseModel;
|
||||
*/
|
||||
class SettlementOrder extends BaseModel
|
||||
{
|
||||
/**
|
||||
* 数据表名
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $table = 'ma_settlement_order';
|
||||
|
||||
/**
|
||||
* 可批量赋值字段
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $fillable = [
|
||||
'settle_no',
|
||||
'trace_no',
|
||||
@@ -35,6 +45,11 @@ class SettlementOrder extends BaseModel
|
||||
'ext_json',
|
||||
];
|
||||
|
||||
/**
|
||||
* 字段类型转换配置
|
||||
*
|
||||
* @var mixed
|
||||
*/
|
||||
protected $casts = [
|
||||
'merchant_id' => 'integer',
|
||||
'merchant_group_id' => 'integer',
|
||||
@@ -58,3 +73,5 @@ class SettlementOrder extends BaseModel
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user