Your Name 8 달 전
부모
커밋
45bd28a66a
60개의 변경된 파일1070개의 추가작업 그리고 114개의 파일을 삭제
  1. 32 2
      UCore/Commands/GenerateModelAnnotation.php
  2. 11 0
      app/Module/Article/Models/Article.php
  3. 11 0
      app/Module/Article/Models/ArticleCate.php
  4. 11 0
      app/Module/Dev/Models/Dev.php
  5. 22 1
      app/Module/Fund/Models/FundAdminModel.php
  6. 26 1
      app/Module/Fund/Models/FundCirculationModel.php
  7. 19 0
      app/Module/Fund/Models/FundConfigModel.php
  8. 25 0
      app/Module/Fund/Models/FundCurrencyModel.php
  9. 11 0
      app/Module/Fund/Models/FundExternalModel.php
  10. 39 0
      app/Module/Fund/Models/FundLogModel.php
  11. 18 1
      app/Module/Fund/Models/FundModel.php
  12. 24 1
      app/Module/Fund/Models/FundOrderModel.php
  13. 23 0
      app/Module/Fund/Models/FundTransferModel.php
  14. 22 6
      app/Module/GameItems/Models/Item.php
  15. 12 6
      app/Module/GameItems/Models/ItemCategory.php
  16. 16 6
      app/Module/GameItems/Models/ItemChestContent.php
  17. 18 9
      app/Module/GameItems/Models/ItemChestOpenLog.php
  18. 29 1
      app/Module/GameItems/Models/ItemCraftLog.php
  19. 27 1
      app/Module/GameItems/Models/ItemDismantleLog.php
  20. 24 1
      app/Module/GameItems/Models/ItemDismantleResult.php
  21. 22 1
      app/Module/GameItems/Models/ItemDismantleRule.php
  22. 16 1
      app/Module/GameItems/Models/ItemGroup.php
  23. 16 1
      app/Module/GameItems/Models/ItemGroupItem.php
  24. 16 6
      app/Module/GameItems/Models/ItemInstance.php
  25. 24 1
      app/Module/GameItems/Models/ItemOutputLimit.php
  26. 20 1
      app/Module/GameItems/Models/ItemPityTime.php
  27. 36 1
      app/Module/GameItems/Models/ItemRecipe.php
  28. 18 1
      app/Module/GameItems/Models/ItemRecipeMaterial.php
  29. 31 1
      app/Module/GameItems/Models/ItemTransactionLog.php
  30. 12 6
      app/Module/GameItems/Models/ItemUser.php
  31. 23 0
      app/Module/GameItems/Models/ItemUserOutputCounter.php
  32. 22 1
      app/Module/GameItems/Models/ItemUserRecipe.php
  33. 29 0
      app/Module/OAuth/Models/OAuthAccessToken.php
  34. 29 0
      app/Module/OAuth/Models/OAuthClient.php
  35. 19 1
      app/Module/Sms/Models/SmsCode.php
  36. 25 1
      app/Module/Sms/Models/SmsConfig.php
  37. 27 1
      app/Module/Sms/Models/SmsDbGateway.php
  38. 25 0
      app/Module/System/Models/Administrator.php
  39. 1 1
      app/Module/System/Models/ReceiveAddress.php
  40. 34 0
      app/Module/System/Models/SysConfig.php
  41. 26 0
      app/Module/Test/Models/Test.php
  42. 2 2
      app/Module/Transaction/Models/Transaction.php
  43. 6 1
      app/Module/Transaction/Models/TransactionRecharge.php
  44. 2 2
      app/Module/Transaction/Models/TransactionTransfer.php
  45. 2 2
      app/Module/Transaction/Models/TransactionWithdrawal.php
  46. 5 0
      app/Module/Ulogic/Models/AppMessage.php
  47. 11 0
      app/Module/Ulogic/Models/AppMessageRecipient.php
  48. 11 0
      app/Module/Ulogic/Models/AppMessageTemplate.php
  49. 11 0
      app/Module/Ulogic/Models/UserAddress.php
  50. 5 0
      app/Module/Ulogic/Models/UserBans.php
  51. 16 5
      app/Module/Ulogic/Models/UserPunish.php
  52. 6 1
      app/Module/Ulogic/Models/UserRelation.php
  53. 5 0
      app/Module/Ulogic/Models/UserWord.php
  54. 5 0
      app/Module/Ulogic/Models/WalletAddress.php
  55. 18 14
      app/Module/User/Models/User.php
  56. 19 5
      app/Module/User/Models/UserAction.php
  57. 21 10
      app/Module/User/Models/UserInfo.php
  58. 16 6
      app/Module/User/Models/UserPhone.php
  59. 15 5
      app/Module/User/Models/UserSecretPassword.php
  60. 3 0
      noai.md

+ 32 - 2
UCore/Commands/GenerateModelAnnotation.php

@@ -55,7 +55,12 @@ class GenerateModelAnnotation extends Command
     public function handle()
     {
         // 扫描核心模型目录
-        $this->call1(app_path('../UCore'), '\UCore\Models\\');
+        $ucoreModelsDir = app_path('../UCore/Models');
+        if (is_dir($ucoreModelsDir)) {
+            $this->call1($ucoreModelsDir, '\UCore\Models\\');
+        } else {
+            $this->warn("UCore Models 目录不存在: $ucoreModelsDir");
+        }
 
         // 扫描模块下的Models目录
         $modulesPath = app_path('Module');
@@ -128,10 +133,35 @@ class GenerateModelAnnotation extends Command
     public function call2($model,$modelClass,$file)
     {
         if(class_exists($modelClass)){
+            // 检查类是否是抽象类
+            $reflectionClass = new \ReflectionClass($modelClass);
+            if ($reflectionClass->isAbstract()) {
+                $this->output->warning(" model $modelClass 是抽象类,跳过");
+                return;
+            }
+
+            // 检查类是否是模型类
+            if (!$reflectionClass->isSubclassOf(\Illuminate\Database\Eloquent\Model::class)) {
+                $this->output->warning(" model $modelClass 不是模型类,跳过");
+                return;
+            }
+
+            // 检查构造函数是否需要参数
+            $constructor = $reflectionClass->getConstructor();
+            if ($constructor && $constructor->getNumberOfRequiredParameters() > 0) {
+                $this->output->warning(" model $modelClass 需要构造函数参数,跳过");
+                return;
+            }
+
             /**
              * @var ModelCore $model
              */
-            $model = new $modelClass();
+            try {
+                $model = new $modelClass();
+            } catch (\Throwable $e) {
+                $this->output->error(" model $modelClass 实例化失败: " . $e->getMessage());
+                return;
+            }
             if($model instanceof Model){
                 $co = $model->getConnection();
                 $tTablePrefix = $co->getTablePrefix();

+ 11 - 0
app/Module/Article/Models/Article.php

@@ -7,6 +7,12 @@ use Dcat\Admin\Traits\HasDateTimeFormatter;
 use Illuminate\Database\Eloquent\Model;
 use Illuminate\Database\Eloquent\SoftDeletes;
 
+/**
+ * App\Module\Article\Models\Article
+ *
+ * field start 
+ * field end
+ */
 class Article extends Model
 {
 	use HasDateTimeFormatter;
@@ -14,4 +20,9 @@ class Article extends Model
 
     protected $table = 'lan_articles';
 
+    // attrlist start 
+    protected $fillable = [
+    ];
+    // attrlist end
+
 }

+ 11 - 0
app/Module/Article/Models/ArticleCate.php

@@ -6,6 +6,12 @@ use Dcat\Admin\Traits\HasDateTimeFormatter;
 use Illuminate\Database\Eloquent\Model;
 use Illuminate\Database\Eloquent\SoftDeletes;
 
+/**
+ * App\Module\Article\Models\ArticleCate
+ *
+ * field start 
+ * field end
+ */
 class ArticleCate extends Model
 {
 	use HasDateTimeFormatter;
@@ -13,6 +19,11 @@ class ArticleCate extends Model
 
     protected $table = 'lan_article_cates';
 
+    // attrlist start 
+    protected $fillable = [
+    ];
+    // attrlist end
+
     /**
      * 获取分类列表
      *

+ 11 - 0
app/Module/Dev/Models/Dev.php

@@ -4,6 +4,12 @@ namespace App\Module\Dev\Models;
 
 use Illuminate\Database\Eloquent\Model;
 
+/**
+ * App\Module\Dev\Models\Dev
+ *
+ * field start 
+ * field end
+ */
 class Dev extends Model
 {
     /**
@@ -13,6 +19,11 @@ class Dev extends Model
      */
     protected $table = 'dev';
 
+    // attrlist start 
+    protected $fillable = [
+    ];
+    // attrlist end
+
     /**
      * 可批量赋值的属性
      *

+ 22 - 1
app/Module/Fund/Models/FundAdminModel.php

@@ -8,7 +8,15 @@ use UCore\ModelCore;
 /**
  * 资金管理员
  *
- * field start
+ * field start 
+ * @property   int  $id  自增
+ * @property   int  $total_fee  钱数
+ * @property   int  $status  
+ * @property   int  $fund_id  id
+ * @property   int  $user_id  这个订单的用户
+ * @property   int  $admin_id  管理员的id
+ * @property   int  $create_time  创建时间
+ * @property   string  $remark  备注
  * field end
  */
 class FundAdminModel extends ModelCore
@@ -16,6 +24,19 @@ class FundAdminModel extends ModelCore
 
     protected $table = 'fund_admin';
 
+    // attrlist start 
+    protected $fillable = [
+        'id',
+        'total_fee',
+        'status',
+        'fund_id',
+        'user_id',
+        'admin_id',
+        'create_time',
+        'remark',
+    ];
+    // attrlist end
+
     protected $fillable = [
         'admin_id',
         'admin_name',

+ 26 - 1
app/Module/Fund/Models/FundCirculationModel.php

@@ -7,13 +7,38 @@ use UCore\ModelCore;
 /**
  * 资金流通记录
  *
- * field start
+ * field start 
+ * @property   int  $id  自增
+ * @property   int  $user_id  用户id
+ * @property   int  $fund_id  资金ID
+ * @property   int  $to_fund_id  流向资金账户
+ * @property   string  $re_type  关联类型
+ * @property   int  $re_id  关联类型
+ * @property   int  $total_fee  充值钱数
+ * @property   int  $create_time  创建时间
+ * @property   int  $ok_time  处理时间
+ * @property   string  $remark  备注信息
  * field end
  */
 class FundCirculationModel extends ModelCore
 {
     protected $table = 'fund_circulation';
 
+    // attrlist start 
+    protected $fillable = [
+        'id',
+        'user_id',
+        'fund_id',
+        'to_fund_id',
+        're_type',
+        're_id',
+        'total_fee',
+        'create_time',
+        'ok_time',
+        'remark',
+    ];
+    // attrlist end
+
     protected $fillable = [
         'user_id',
         'fund_id',

+ 19 - 0
app/Module/Fund/Models/FundConfigModel.php

@@ -11,9 +11,28 @@ use UCore\ModelCore;
  * @property int $create_time
  * @property int $update_time
  */
+/**
+ * App\Module\Fund\Models\FundConfigModel
+ *
+ * field start 
+ * @property   int  $id  自增
+ * @property   string  $name  资金名字
+ * @property   int  $create_time  
+ * @property   int  $update_time  更新时间
+ * field end
+ */
 class FundConfigModel extends ModelCore
 {
     protected $table = 'fund_config';
+
+    // attrlist start 
+    protected $fillable = [
+        'id',
+        'name',
+        'create_time',
+        'update_time',
+    ];
+    // attrlist end
     public $timestamps = false;
 
 }

+ 25 - 0
app/Module/Fund/Models/FundCurrencyModel.php

@@ -11,9 +11,34 @@ use UCore\ModelCore;
  * @property int $create_time
  * @property int $update_time
  */
+/**
+ * App\Module\Fund\Models\FundCurrencyModel
+ *
+ * field start 
+ * @property   int  $id  自增
+ * @property   string  $identification  资金标识
+ * @property   string  $icon  资金标识
+ * @property   string  $name  资金名字
+ * @property   string  $data1  数据
+ * @property   int  $create_time  
+ * @property   int  $update_time  更新时间
+ * field end
+ */
 class FundCurrencyModel extends ModelCore
 {
     protected $table = 'fund_currency';
+
+    // attrlist start 
+    protected $fillable = [
+        'id',
+        'identification',
+        'icon',
+        'name',
+        'data1',
+        'create_time',
+        'update_time',
+    ];
+    // attrlist end
     public $timestamps = false;
 
 }

+ 11 - 0
app/Module/Fund/Models/FundExternalModel.php

@@ -16,9 +16,20 @@ use UCore\ModelCore;
  * @property int $create_time
  * @property int $update_time
  */
+/**
+ * App\Module\Fund\Models\FundExternalModel
+ *
+ * field start 
+ * field end
+ */
 class FundExternalModel extends ModelCore
 {
     protected $table = 'fund_external';
+
+    // attrlist start 
+    protected $fillable = [
+    ];
+    // attrlist end
     public $timestamps = false;
 
 }

+ 39 - 0
app/Module/Fund/Models/FundLogModel.php

@@ -24,10 +24,49 @@ use UCore\ModelCore;
  * @property string $hash 防篡改哈希值
  * @property string $prev_hash 上一条记录的哈希值
  */
+/**
+ * App\Module\Fund\Models\FundLogModel
+ *
+ * field start 
+ * @property   int  $id  
+ * @property   int  $user_id  用户ID
+ * @property   int  $fund_id  资金id
+ * @property   int  $amount  操作金额,正值为收入,负值为支出
+ * @property   string  $operate_id  上游操作id
+ * @property   string  $operate_type  上游操作类型
+ * @property   string  $remark  备注
+ * @property   int  $create_time  最后更新时间
+ * @property   string  $create_ip  最后更新ip
+ * @property   int  $later_balance  在此之后的余额
+ * @property   int  $before_balance  在此之前的月
+ * @property   int  $date_key  月份key
+ * @property   string  $hash  防篡改哈希值
+ * @property   string  $prev_hash  上一条记录的哈希值
+ * field end
+ */
 class FundLogModel extends ModelCore
 {
 
     protected $table      = 'fund_logs';
+
+    // attrlist start 
+    protected $fillable = [
+        'id',
+        'user_id',
+        'fund_id',
+        'amount',
+        'operate_id',
+        'operate_type',
+        'remark',
+        'create_time',
+        'create_ip',
+        'later_balance',
+        'before_balance',
+        'date_key',
+        'hash',
+        'prev_hash',
+    ];
+    // attrlist end
     public    $timestamps = false;
 
 

+ 18 - 1
app/Module/Fund/Models/FundModel.php

@@ -10,7 +10,13 @@ use UCore\ModelCore;
 /**
  * 资金表
  *
- * field start
+ * field start 
+ * @property   int  $id  自增
+ * @property   int  $user_id  用户ID
+ * @property   int  $fund_id  资金ID
+ * @property   int  $balance  余额
+ * @property   int  $update_time  更新时间
+ * @property   int  $create_time  创建时间
  * field end
  *
  */
@@ -20,6 +26,17 @@ class FundModel extends ModelCore
     protected $table = 'fund';
     public $timestamps = false;
 
+    // attrlist start 
+    protected $fillable = [
+        'id',
+        'user_id',
+        'fund_id',
+        'balance',
+        'update_time',
+        'create_time',
+    ];
+    // attrlist end
+
     /**
      *
      * @param $user_id

+ 24 - 1
app/Module/Fund/Models/FundOrderModel.php

@@ -7,7 +7,16 @@ use UCore\ModelCore;
 /**
  * 资金订单表
  *
- * field start
+ * field start 
+ * @property   int  $id  ID
+ * @property   int  $relation_id  关联ID 例如wlorder.Id
+ * @property   string  $relation_type  关联类型 wlorder物流订单
+ * @property   int  $type1  关联操作类型
+ * @property   int  $total_fee  支付金额
+ * @property   int  $create_time  创建时间
+ * @property   int  $to_user_id  收款账户id
+ * @property   int  $to_fund_id  收款账户的资金id
+ * @property   string  $remark  订单描述
  * field end
  *
  */
@@ -15,6 +24,20 @@ class FundOrderModel extends ModelCore
 {
 
     protected $table      = 'fund_order';
+
+    // attrlist start 
+    protected $fillable = [
+        'id',
+        'relation_id',
+        'relation_type',
+        'type1',
+        'total_fee',
+        'create_time',
+        'to_user_id',
+        'to_fund_id',
+        'remark',
+    ];
+    // attrlist end
     public    $timestamps = false;
 
 }

+ 23 - 0
app/Module/Fund/Models/FundTransferModel.php

@@ -6,10 +6,33 @@ use UCore\ModelCore;
 use App\Module\User\Models\User;
 
 
+/**
+ * App\Module\Fund\Models\FundTransferModel
+ *
+ * field start 
+ * @property   int  $id  自增
+ * @property   int  $user_id  用户id
+ * @property   int  $to_user_id  转给用户id
+ * @property   string  $remark  备注
+ * @property   int  $amount  钱数
+ * @property   int  $fund_id  来源账户的资金id
+ * field end
+ */
 class FundTransferModel extends ModelCore
 {
     protected $table = 'fund_transfer';
 
+    // attrlist start 
+    protected $fillable = [
+        'id',
+        'user_id',
+        'to_user_id',
+        'remark',
+        'amount',
+        'fund_id',
+    ];
+    // attrlist end
+
     protected $fillable = [
         'user_id',
         'from_fund_id',

+ 22 - 6
app/Module/GameItems/Models/Item.php

@@ -9,7 +9,25 @@ use UCore\ModelCore;
 /**
  * 物品基础信息
  *
- * field start
+ * field start 
+ * @property   int  $id  物品ID,主键
+ * @property   string  $name  物品名称
+ * @property   string  $description  物品描述
+ * @property   int  $category_id  物品分类ID,外键关联kku_item_categories表
+ * @property   int  $type  物品类型(1:可使用, 2:可装备, 3:可合成, 4:可交任务, 5:可开启...)
+ * @property   int  $is_unique  是否是单独属性物品(0:否,默认, 1:是)
+ * @property   int  $rarity  稀有度(1:普通, 2:稀有, 3:史诗, 4:传说...)
+ * @property   string  $icon  物品图标路径
+ * @property   int  $max_stack  最大堆叠数量
+ * @property   int  $sell_price  出售价格
+ * @property   int  $tradable  是否可交易(0:不可交易, 1:可交易,默认)
+ * @property   int  $dismantlable  是否可分解(0:不可分解, 1:可分解,默认)
+ * @property   int  $default_expire_seconds  玩家获取物品后的默认有效秒数(0表示永久有效)
+ * @property   object|array  $display_attributes  展示属性,以JSON格式存储键值对,用于界面展示和描述的属性
+ * @property   object|array  $numeric_attributes  数值属性,以JSON格式存储键值对,用于计算和游戏逻辑的属性
+ * @property   string  $global_expire_at  物品全局过期时间(可为空)
+ * @property   \Carbon\Carbon  $created_at  创建时间
+ * @property   \Carbon\Carbon  $updated_at  更新时间
  * field end
  */
 class Item extends ModelCore
@@ -21,12 +39,9 @@ class Item extends ModelCore
      */
     protected $table = 'item_items';
 
-    /**
-     * 可批量赋值的属性
-     *
-     * @var array
-     */
+    // attrlist start 
     protected $fillable = [
+        'id',
         'name',
         'description',
         'category_id',
@@ -43,6 +58,7 @@ class Item extends ModelCore
         'numeric_attributes',
         'global_expire_at',
     ];
+    // attrlist end
 
     /**
      * 应该被转换为日期的属性

+ 12 - 6
app/Module/GameItems/Models/ItemCategory.php

@@ -10,7 +10,15 @@ use UCore\ModelCore;
 /**
  * 物品分类
  *
- * field start
+ * field start 
+ * @property   int  $id  分类ID,主键
+ * @property   string  $name  分类名称
+ * @property   string  $code  分类编码(唯一)
+ * @property   string  $icon  分类图标
+ * @property   int  $sort  排序权重
+ * @property   int  $parent_id  父分类ID(可为空,用于实现分类层级)
+ * @property   \Carbon\Carbon  $created_at  创建时间
+ * @property   \Carbon\Carbon  $updated_at  更新时间
  * field end
  */
 class ItemCategory extends ModelCore
@@ -33,18 +41,16 @@ class ItemCategory extends ModelCore
 
 
 
-    /**
-     * 可批量赋值的属性
-     *
-     * @var array
-     */
+    // attrlist start 
     protected $fillable = [
+        'id',
         'name',
         'code',
         'icon',
         'sort',
         'parent_id',
     ];
+    // attrlist end
 
 
 

+ 16 - 6
app/Module/GameItems/Models/ItemChestContent.php

@@ -9,7 +9,19 @@ use UCore\ModelCore;
 /**
  * 宝箱内容配置
  *
- * field start
+ * field start 
+ * @property   int  $id  记录ID,主键
+ * @property   int  $chest_id  宝箱物品ID,外键关联kku_item_items表
+ * @property   int  $item_id  可能获得的物品ID,外键关联kku_item_items表(与group_id二选一)
+ * @property   int  $group_id  物品组ID,外键关联kku_item_groups表(与item_id二选一)
+ * @property   int  $min_quantity  最小数量
+ * @property   int  $max_quantity  最大数量
+ * @property   float  $weight  权重,决定获取概率
+ * @property   int  $allow_duplicate  是否允许在同一宝箱中重复掉落(0:不允许, 1:允许)
+ * @property   int  $pity_count  保底次数,当玩家连续未获得该内容达到次数后必定获得(0表示不启用保底)
+ * @property   float  $pity_weight_factor  保底权重因子,用于递增概率计算(默认1.0)
+ * @property   \Carbon\Carbon  $created_at  创建时间
+ * @property   \Carbon\Carbon  $updated_at  更新时间
  * field end
  */
 class ItemChestContent extends ModelCore
@@ -21,12 +33,9 @@ class ItemChestContent extends ModelCore
      */
     protected $table = 'item_chest_contents';
 
-    /**
-     * 可批量赋值的属性
-     *
-     * @var array
-     */
+    // attrlist start 
     protected $fillable = [
+        'id',
         'chest_id',
         'item_id',
         'group_id',
@@ -37,6 +46,7 @@ class ItemChestContent extends ModelCore
         'pity_count',
         'pity_weight_factor',
     ];
+    // attrlist end
 
     /**
      * 应该被转换为原生类型的属性

+ 18 - 9
app/Module/GameItems/Models/ItemChestOpenLog.php

@@ -8,7 +8,18 @@ use UCore\ModelCore;
 /**
  * 宝箱开启记录
  *
- * field start
+ * field start 
+ * @property   int  $id  记录ID,主键
+ * @property   int  $user_id  用户ID
+ * @property   int  $chest_id  宝箱ID,外键关联kku_item_items表
+ * @property   string  $open_time  开启时间
+ * @property   int  $open_quantity  开启数量
+ * @property   object|array  $result_items  获得的物品列表,包含物品ID、数量等信息
+ * @property   int  $pity_triggered  是否触发保底机制(0:否, 1:是)
+ * @property   int  $pity_content_id  触发保底的内容ID,外键关联kku_item_chest_contents表(可为空)
+ * @property   string  $ip_address  操作的IP地址(用于安全审计)
+ * @property   string  $device_info  设备信息(用于安全审计)
+ * @property   \Carbon\Carbon  $created_at  创建时间
  * field end
  */
 class ItemChestOpenLog extends ModelCore
@@ -20,22 +31,20 @@ class ItemChestOpenLog extends ModelCore
      */
     protected $table = 'item_chest_open_logs';
 
-    /**
-     * 可批量赋值的属性
-     *
-     * @var array
-     */
+    // attrlist start 
     protected $fillable = [
+        'id',
         'user_id',
         'chest_id',
-        'quantity',
-        'results',
+        'open_time',
+        'open_quantity',
+        'result_items',
         'pity_triggered',
         'pity_content_id',
-        'open_time',
         'ip_address',
         'device_info',
     ];
+    // attrlist end
 
     /**
      * 应该被转换为日期的属性

+ 29 - 1
app/Module/GameItems/Models/ItemCraftLog.php

@@ -9,7 +9,19 @@ use UCore\ModelCore;
 /**
  * 物品合成记录
  *
- * field start
+ * field start 
+ * @property   int  $id  记录ID,主键
+ * @property   int  $user_id  用户ID
+ * @property   int  $recipe_id  配方ID,外键关联kku_item_recipes表
+ * @property   object|array  $materials  消耗的材料,以JSON格式存储
+ * @property   int  $result_item_id  获得的物品ID,外键关联kku_item_items表
+ * @property   int  $result_instance_id  获得的单独属性物品ID,外键关联kku_item_instances表(可为空)
+ * @property   int  $result_quantity  获得的物品数量
+ * @property   int  $is_success  是否成功(0:失败, 1:成功)
+ * @property   string  $craft_time  合成时间
+ * @property   string  $ip_address  操作的IP地址
+ * @property   string  $device_info  设备信息
+ * @property   \Carbon\Carbon  $created_at  创建时间
  * field end
  */
 class ItemCraftLog extends ModelCore
@@ -21,6 +33,22 @@ class ItemCraftLog extends ModelCore
      */
     protected $table = 'item_craft_logs';
 
+    // attrlist start 
+    protected $fillable = [
+        'id',
+        'user_id',
+        'recipe_id',
+        'materials',
+        'result_item_id',
+        'result_instance_id',
+        'result_quantity',
+        'is_success',
+        'craft_time',
+        'ip_address',
+        'device_info',
+    ];
+    // attrlist end
+
     /**
      * 可批量赋值的属性
      *

+ 27 - 1
app/Module/GameItems/Models/ItemDismantleLog.php

@@ -9,7 +9,18 @@ use UCore\ModelCore;
 /**
  * 物品分解记录
  *
- * field start
+ * field start 
+ * @property   int  $id  记录ID,主键
+ * @property   int  $user_id  用户ID
+ * @property   int  $item_id  被分解的物品ID,外键关联kku_item_items表
+ * @property   int  $instance_id  被分解的单独属性物品ID,外键关联kku_item_instances表(可为空)
+ * @property   int  $quantity  分解数量
+ * @property   int  $rule_id  使用的分解规则ID,外键关联kku_item_dismantle_rules表
+ * @property   object|array  $results  分解结果,包含获得的物品ID、数量等信息
+ * @property   string  $dismantle_time  分解时间
+ * @property   string  $ip_address  操作的IP地址
+ * @property   string  $device_info  设备信息
+ * @property   \Carbon\Carbon  $created_at  创建时间
  * field end
  */
 class ItemDismantleLog extends ModelCore
@@ -21,6 +32,21 @@ class ItemDismantleLog extends ModelCore
      */
     protected $table = 'item_dismantle_logs';
 
+    // attrlist start 
+    protected $fillable = [
+        'id',
+        'user_id',
+        'item_id',
+        'instance_id',
+        'quantity',
+        'rule_id',
+        'results',
+        'dismantle_time',
+        'ip_address',
+        'device_info',
+    ];
+    // attrlist end
+
     /**
      * 可批量赋值的属性
      *

+ 24 - 1
app/Module/GameItems/Models/ItemDismantleResult.php

@@ -8,7 +8,17 @@ use UCore\ModelCore;
 /**
  * 物品分解结果
  *
- * field start
+ * field start 
+ * @property   int  $id  记录ID,主键
+ * @property   int  $rule_id  分解规则ID,外键关联kku_item_dismantle_rules表
+ * @property   int  $result_item_id  结果物品ID,外键关联kku_item_items表
+ * @property   int  $min_quantity  最小数量
+ * @property   int  $max_quantity  最大数量
+ * @property   float  $base_chance  基础获取概率(百分比,最大100)
+ * @property   float  $rarity_factor  稀有度影响因子
+ * @property   float  $quality_factor  品质影响因子
+ * @property   \Carbon\Carbon  $created_at  创建时间
+ * @property   \Carbon\Carbon  $updated_at  更新时间
  * field end
  */
 class ItemDismantleResult extends ModelCore
@@ -20,6 +30,19 @@ class ItemDismantleResult extends ModelCore
      */
     protected $table = 'item_dismantle_results';
 
+    // attrlist start 
+    protected $fillable = [
+        'id',
+        'rule_id',
+        'result_item_id',
+        'min_quantity',
+        'max_quantity',
+        'base_chance',
+        'rarity_factor',
+        'quality_factor',
+    ];
+    // attrlist end
+
     /**
      * 可批量赋值的属性
      *

+ 22 - 1
app/Module/GameItems/Models/ItemDismantleRule.php

@@ -9,7 +9,16 @@ use UCore\ModelCore;
 /**
  * 物品分解规则
  *
- * field start
+ * field start 
+ * @property   int  $id  规则ID,主键
+ * @property   int  $item_id  物品ID,外键关联kku_item_items表
+ * @property   int  $category_id  分类ID,外键关联kku_item_categories表
+ * @property   int  $min_rarity  最小适用稀有度
+ * @property   int  $max_rarity  最大适用稀有度
+ * @property   int  $priority  规则优先级
+ * @property   int  $is_active  是否激活(0:否, 1:是)
+ * @property   \Carbon\Carbon  $created_at  创建时间
+ * @property   \Carbon\Carbon  $updated_at  更新时间
  * field end
  */
 class ItemDismantleRule extends ModelCore
@@ -21,6 +30,18 @@ class ItemDismantleRule extends ModelCore
      */
     protected $table = 'item_dismantle_rules';
 
+    // attrlist start 
+    protected $fillable = [
+        'id',
+        'item_id',
+        'category_id',
+        'min_rarity',
+        'max_rarity',
+        'priority',
+        'is_active',
+    ];
+    // attrlist end
+
     /**
      * 可批量赋值的属性
      *

+ 16 - 1
app/Module/GameItems/Models/ItemGroup.php

@@ -8,7 +8,13 @@ use UCore\ModelCore;
 /**
  * 物品组
  *
- * field start
+ * field start 
+ * @property   int  $id  物品组ID,主键
+ * @property   string  $name  物品组名称
+ * @property   string  $code  物品组编码(唯一)
+ * @property   string  $description  物品组描述
+ * @property   \Carbon\Carbon  $created_at  创建时间
+ * @property   \Carbon\Carbon  $updated_at  更新时间
  * field end
  */
 class ItemGroup extends ModelCore
@@ -20,6 +26,15 @@ class ItemGroup extends ModelCore
      */
     protected $table = 'item_groups';
 
+    // attrlist start 
+    protected $fillable = [
+        'id',
+        'name',
+        'code',
+        'description',
+    ];
+    // attrlist end
+
     /**
      * 可批量赋值的属性
      *

+ 16 - 1
app/Module/GameItems/Models/ItemGroupItem.php

@@ -8,7 +8,13 @@ use UCore\ModelCore;
 /**
  * 物品组内容
  *
- * field start
+ * field start 
+ * @property   int  $id  记录ID,主键
+ * @property   int  $group_id  物品组ID,外键关联kku_item_groups表
+ * @property   int  $item_id  物品ID,外键关联kku_item_items表
+ * @property   float  $weight  权重,决定从物品组中选择该物品的概率
+ * @property   \Carbon\Carbon  $created_at  创建时间
+ * @property   \Carbon\Carbon  $updated_at  更新时间
  * field end
  */
 class ItemGroupItem extends ModelCore
@@ -20,6 +26,15 @@ class ItemGroupItem extends ModelCore
      */
     protected $table = 'item_group_items';
 
+    // attrlist start 
+    protected $fillable = [
+        'id',
+        'group_id',
+        'item_id',
+        'weight',
+    ];
+    // attrlist end
+
     /**
      * 可批量赋值的属性
      *

+ 16 - 6
app/Module/GameItems/Models/ItemInstance.php

@@ -9,7 +9,19 @@ use UCore\ModelCore;
 /**
  * 物品实例(单独属性物品)
  *
- * field start
+ * field start 
+ * @property   int  $id  唯一物品ID,主键
+ * @property   int  $item_id  关联的基础物品ID,外键关联kku_item_items表
+ * @property   string  $name  物品名称(可以与基础物品不同)
+ * @property   object|array  $display_attributes  展示属性,以JSON格式存储键值对
+ * @property   object|array  $numeric_attributes  数值属性,以JSON格式存储键值对
+ * @property   int  $tradable  是否可交易(0:不可交易, 1:可交易,默认)
+ * @property   int  $is_bound  是否已绑定(0:未绑定, 1:已绑定)
+ * @property   string  $bound_to  绑定对象(账号ID或角色ID)
+ * @property   string  $bind_exp_time  绑定过期时间(为空表示永久绑定)
+ * @property   string  $expire_at  物品过期时间(可为空)
+ * @property   \Carbon\Carbon  $created_at  创建时间
+ * @property   \Carbon\Carbon  $updated_at  更新时间
  * field end
  */
 class ItemInstance extends ModelCore
@@ -21,12 +33,9 @@ class ItemInstance extends ModelCore
      */
     protected $table = 'item_instances';
 
-    /**
-     * 可批量赋值的属性
-     *
-     * @var array
-     */
+    // attrlist start 
     protected $fillable = [
+        'id',
         'item_id',
         'name',
         'display_attributes',
@@ -37,6 +46,7 @@ class ItemInstance extends ModelCore
         'bind_exp_time',
         'expire_at',
     ];
+    // attrlist end
 
     /**
      * 应该被转换为日期的属性

+ 24 - 1
app/Module/GameItems/Models/ItemOutputLimit.php

@@ -9,7 +9,17 @@ use UCore\ModelCore;
 /**
  * 物品产出限制
  *
- * field start
+ * field start 
+ * @property   int  $id  记录ID,主键
+ * @property   int  $item_id  物品ID,外键关联kku_item_items表
+ * @property   int  $limit_type  限制类型(1:全局总量, 2:单个用户, 3:单日全局, 4:单日用户)
+ * @property   int  $max_quantity  最大产出数量
+ * @property   int  $current_quantity  当前已产出数量(全局限制时使用)
+ * @property   int  $reset_type  重置类型(0:不重置, 1:每日, 2:每周, 3:每月)
+ * @property   string  $last_reset_time  上次重置时间
+ * @property   object|array  $related_items  关联物品ID列表,这些物品共享同一个限制额度
+ * @property   \Carbon\Carbon  $created_at  创建时间
+ * @property   \Carbon\Carbon  $updated_at  更新时间
  * field end
  */
 class ItemOutputLimit extends ModelCore
@@ -21,6 +31,19 @@ class ItemOutputLimit extends ModelCore
      */
     protected $table = 'item_output_limits';
 
+    // attrlist start 
+    protected $fillable = [
+        'id',
+        'item_id',
+        'limit_type',
+        'max_quantity',
+        'current_quantity',
+        'reset_type',
+        'last_reset_time',
+        'related_items',
+    ];
+    // attrlist end
+
     /**
      * 可批量赋值的属性
      *

+ 20 - 1
app/Module/GameItems/Models/ItemPityTime.php

@@ -8,7 +8,15 @@ use UCore\ModelCore;
 /**
  * 宝箱保底计数
  *
- * field start
+ * field start 
+ * @property   int  $id  记录ID,主键
+ * @property   int  $user_id  用户ID
+ * @property   int  $chest_id  宝箱ID,外键关联kku_item_items表
+ * @property   int  $chest_content_id  宝箱内容ID,外键关联kku_item_chest_contents表
+ * @property   int  $current_count  当前计数,每开启一次宝箱增加1
+ * @property   string  $last_reset_time  上次重置时间(可用于周期性重置)
+ * @property   \Carbon\Carbon  $created_at  创建时间
+ * @property   \Carbon\Carbon  $updated_at  更新时间
  * field end
  */
 class ItemPityTime extends ModelCore
@@ -20,6 +28,17 @@ class ItemPityTime extends ModelCore
      */
     protected $table = 'item_pity_times';
 
+    // attrlist start 
+    protected $fillable = [
+        'id',
+        'user_id',
+        'chest_id',
+        'chest_content_id',
+        'current_count',
+        'last_reset_time',
+    ];
+    // attrlist end
+
     /**
      * 可批量赋值的属性
      *

+ 36 - 1
app/Module/GameItems/Models/ItemRecipe.php

@@ -10,7 +10,23 @@ use UCore\ModelCore;
 /**
  * 物品合成配方
  *
- * field start
+ * field start 
+ * @property   int  $id  配方ID,主键
+ * @property   string  $name  配方名称
+ * @property   int  $result_item_id  产出物品ID,外键关联kku_item_items表
+ * @property   int  $result_min_quantity  最小产出数量
+ * @property   int  $result_max_quantity  最大产出数量
+ * @property   float  $success_rate  成功率(百分比,最大100)
+ * @property   object|array  $coin_cost  货币成本,以JSON格式存储多种货币类型和数量
+ * @property   int  $level_required  所需等级
+ * @property   int  $is_default_unlocked  是否默认解锁(0:否, 1:是)
+ * @property   object|array  $unlock_condition  解锁条件,以JSON格式存储
+ * @property   int  $cooldown_seconds  冷却时间(秒)
+ * @property   int  $category_id  配方分类ID
+ * @property   int  $sort_order  排序权重
+ * @property   int  $is_active  是否激活(0:否, 1:是)
+ * @property   \Carbon\Carbon  $created_at  创建时间
+ * @property   \Carbon\Carbon  $updated_at  更新时间
  * field end
  */
 class ItemRecipe extends ModelCore
@@ -22,6 +38,25 @@ class ItemRecipe extends ModelCore
      */
     protected $table = 'item_recipes';
 
+    // attrlist start 
+    protected $fillable = [
+        'id',
+        'name',
+        'result_item_id',
+        'result_min_quantity',
+        'result_max_quantity',
+        'success_rate',
+        'coin_cost',
+        'level_required',
+        'is_default_unlocked',
+        'unlock_condition',
+        'cooldown_seconds',
+        'category_id',
+        'sort_order',
+        'is_active',
+    ];
+    // attrlist end
+
     /**
      * 可批量赋值的属性
      *

+ 18 - 1
app/Module/GameItems/Models/ItemRecipeMaterial.php

@@ -8,7 +8,14 @@ use UCore\ModelCore;
 /**
  * 合成配方材料
  *
- * field start
+ * field start 
+ * @property   int  $id  记录ID,主键
+ * @property   int  $recipe_id  配方ID,外键关联kku_item_recipes表
+ * @property   int  $item_id  材料物品ID,外键关联kku_item_items表
+ * @property   int  $quantity  所需数量
+ * @property   int  $is_consumed  是否消耗(0:不消耗, 1:消耗)
+ * @property   \Carbon\Carbon  $created_at  创建时间
+ * @property   \Carbon\Carbon  $updated_at  更新时间
  * field end
  */
 class ItemRecipeMaterial extends ModelCore
@@ -20,6 +27,16 @@ class ItemRecipeMaterial extends ModelCore
      */
     protected $table = 'item_recipe_materials';
 
+    // attrlist start 
+    protected $fillable = [
+        'id',
+        'recipe_id',
+        'item_id',
+        'quantity',
+        'is_consumed',
+    ];
+    // attrlist end
+
     /**
      * 可批量赋值的属性
      *

+ 31 - 1
app/Module/GameItems/Models/ItemTransactionLog.php

@@ -8,7 +8,20 @@ use UCore\ModelCore;
 /**
  * 物品交易记录
  *
- * field start
+ * field start 
+ * @property   int  $id  记录ID,主键
+ * @property   int  $user_id  用户ID
+ * @property   int  $item_id  物品ID,外键关联kku_item_items表
+ * @property   int  $instance_id  单独属性物品ID,外键关联kku_item_instances表(可为空)
+ * @property   int  $quantity  数量(正数表示获取,负数表示消耗)
+ * @property   int  $transaction_type  交易类型(1:获取, 2:消耗, 3:交易获得, 4:交易失去, 5:过期失效)
+ * @property   string  $source_type  来源类型(如任务奖励、商店购买、宝箱开启等)
+ * @property   int  $source_id  来源ID(如任务ID、订单ID、宝箱ID等)
+ * @property   object|array  $attributes  额外属性,存储交易相关的详细信息
+ * @property   string  $expire_at  物品过期时间(如果有)
+ * @property   \Carbon\Carbon  $created_at  创建时间
+ * @property   string  $ip_address  操作的IP地址(用于安全审计)
+ * @property   string  $device_info  设备信息(用于安全审计)
  * field end
  */
 class ItemTransactionLog extends ModelCore
@@ -20,6 +33,23 @@ class ItemTransactionLog extends ModelCore
      */
     protected $table = 'item_transaction_logs';
 
+    // attrlist start 
+    protected $fillable = [
+        'id',
+        'user_id',
+        'item_id',
+        'instance_id',
+        'quantity',
+        'transaction_type',
+        'source_type',
+        'source_id',
+        'attributes',
+        'expire_at',
+        'ip_address',
+        'device_info',
+    ];
+    // attrlist end
+
     /**
      * 可批量赋值的属性
      *

+ 12 - 6
app/Module/GameItems/Models/ItemUser.php

@@ -8,7 +8,15 @@ use UCore\ModelCore;
 /**
  * 用户物品关联
  *
- * field start
+ * field start 
+ * @property   int  $id  记录ID,主键
+ * @property   int  $user_id  用户ID
+ * @property   int  $item_id  统一属性物品ID,外键关联kku_item_items表
+ * @property   int  $instance_id  单独属性物品ID,外键关联kku_item_instances表(可为空)
+ * @property   int  $quantity  数量(对于单独属性物品,该值始终为1)
+ * @property   string  $expire_at  用户物品过期时间(可为空)
+ * @property   \Carbon\Carbon  $created_at  获取时间
+ * @property   \Carbon\Carbon  $updated_at  更新时间
  * field end
  */
 class ItemUser extends ModelCore
@@ -20,18 +28,16 @@ class ItemUser extends ModelCore
      */
     protected $table = 'item_users';
 
-    /**
-     * 可批量赋值的属性
-     *
-     * @var array
-     */
+    // attrlist start 
     protected $fillable = [
+        'id',
         'user_id',
         'item_id',
         'instance_id',
         'quantity',
         'expire_at',
     ];
+    // attrlist end
 
     /**
      * 应该被转换为日期的属性

+ 23 - 0
app/Module/GameItems/Models/ItemUserOutputCounter.php

@@ -5,6 +5,19 @@ namespace App\Module\GameItems\Models;
 use Illuminate\Database\Eloquent\Model;
 use Illuminate\Database\Eloquent\Relations\BelongsTo;
 
+/**
+ * App\Module\GameItems\Models\ItemUserOutputCounter
+ *
+ * field start 
+ * @property   int  $id  记录ID,主键
+ * @property   int  $user_id  用户ID
+ * @property   int  $limit_id  产出限制ID,外键关联kku_item_output_limits表
+ * @property   int  $current_count  当前产出计数
+ * @property   string  $record_date  记录日期(用于日期统计和重置)
+ * @property   \Carbon\Carbon  $created_at  创建时间
+ * @property   \Carbon\Carbon  $updated_at  更新时间
+ * field end
+ */
 class ItemUserOutputCounter extends Model
 {
     /**
@@ -14,6 +27,16 @@ class ItemUserOutputCounter extends Model
      */
     protected $table = 'item_user_output_counters';
 
+    // attrlist start 
+    protected $fillable = [
+        'id',
+        'user_id',
+        'limit_id',
+        'current_count',
+        'record_date',
+    ];
+    // attrlist end
+
     /**
      * 可批量赋值的属性
      *

+ 22 - 1
app/Module/GameItems/Models/ItemUserRecipe.php

@@ -8,7 +8,16 @@ use UCore\ModelCore;
 /**
  * 用户配方解锁状态
  *
- * field start
+ * field start 
+ * @property   int  $id  记录ID,主键
+ * @property   int  $user_id  用户ID
+ * @property   int  $recipe_id  配方ID,外键关联kku_item_recipes表
+ * @property   int  $is_unlocked  是否已解锁(0:否, 1:是)
+ * @property   string  $unlock_time  解锁时间
+ * @property   string  $last_craft_time  最后合成时间
+ * @property   int  $craft_count  合成次数
+ * @property   \Carbon\Carbon  $created_at  创建时间
+ * @property   \Carbon\Carbon  $updated_at  更新时间
  * field end
  */
 class ItemUserRecipe extends ModelCore
@@ -20,6 +29,18 @@ class ItemUserRecipe extends ModelCore
      */
     protected $table = 'item_user_recipes';
 
+    // attrlist start 
+    protected $fillable = [
+        'id',
+        'user_id',
+        'recipe_id',
+        'is_unlocked',
+        'unlock_time',
+        'last_craft_time',
+        'craft_count',
+    ];
+    // attrlist end
+
     /**
      * 可批量赋值的属性
      *

+ 29 - 0
app/Module/OAuth/Models/OAuthAccessToken.php

@@ -6,10 +6,39 @@ use App\Models\User;
 use Illuminate\Database\Eloquent\Model;
 use Illuminate\Database\Eloquent\Relations\BelongsTo;
 
+/**
+ * App\Module\OAuth\Models\OAuthAccessToken
+ *
+ * field start 
+ * @property   int  $id  
+ * @property   string  $client_id  客户端ID
+ * @property   int  $user_id  用户ID
+ * @property   string  $access_token  访问令牌
+ * @property   string  $refresh_token  
+ * @property   string  $expires_at  过期时间
+ * @property   object|array  $scope  权限范围
+ * @property   int  $revoked  
+ * @property   \Carbon\Carbon  $created_at  
+ * @property   \Carbon\Carbon  $updated_at  
+ * field end
+ */
 class OAuthAccessToken extends Model
 {
     protected $table = 'oauth_access_tokens';
 
+    // attrlist start 
+    protected $fillable = [
+        'id',
+        'client_id',
+        'user_id',
+        'access_token',
+        'refresh_token',
+        'expires_at',
+        'scope',
+        'revoked',
+    ];
+    // attrlist end
+
     protected $fillable = [
         'client_id',
         'user_id',

+ 29 - 0
app/Module/OAuth/Models/OAuthClient.php

@@ -4,10 +4,39 @@ namespace App\Module\OAuth\Models;
 
 use Illuminate\Database\Eloquent\Model;
 
+/**
+ * App\Module\OAuth\Models\OAuthClient
+ *
+ * field start 
+ * @property   int  $id  
+ * @property   string  $name  客户端名称
+ * @property   string  $client_id  客户端ID
+ * @property   string  $client_secret  客户端密钥
+ * @property   string  $redirect_uri  回调地址
+ * @property   object|array  $grant_types  授权类型
+ * @property   object|array  $scope  权限范围
+ * @property   int  $user_id  关联用户ID
+ * @property   \Carbon\Carbon  $created_at  
+ * @property   \Carbon\Carbon  $updated_at  
+ * field end
+ */
 class OAuthClient extends Model
 {
     protected $table = 'oauth_clients';
 
+    // attrlist start 
+    protected $fillable = [
+        'id',
+        'name',
+        'client_id',
+        'client_secret',
+        'redirect_uri',
+        'grant_types',
+        'scope',
+        'user_id',
+    ];
+    // attrlist end
+
     protected $fillable = [
         'name',
         'client_id',

+ 19 - 1
app/Module/Sms/Models/SmsCode.php

@@ -9,7 +9,15 @@ use Illuminate\Database\Eloquent\SoftDeletes;
 /**
  * 短信验证码模型
  *
- * field start
+ * field start 
+ * @property   int  $id  
+ * @property   string  $mobile  
+ * @property   string  $token  
+ * @property   string  $type  
+ * @property   string  $code_value  
+ * @property   \Carbon\Carbon  $created_at  
+ * @property   \Carbon\Carbon  $updated_at  
+ * @property   \Carbon\Carbon  $deleted_at  删除时间
  * field end
  *
  */
@@ -24,6 +32,16 @@ class SmsCode extends ModelCore
      */
     protected $table = 'sms_code';
 
+    // attrlist start 
+    protected $fillable = [
+        'id',
+        'mobile',
+        'token',
+        'type',
+        'code_value',
+    ];
+    // attrlist end
+
     /**
      * 可批量赋值的属性
      *

+ 25 - 1
app/Module/Sms/Models/SmsConfig.php

@@ -8,7 +8,18 @@ use UCore\Model;
 /**
  * 短信配置模型
  *
- * field start
+ * field start 
+ * @property   int  $id  
+ * @property   string  $driver  驱动
+ * @property   string  $is_open  是否开启
+ * @property   string  $title  标题
+ * @property   string  $desc  描述
+ * @property   int  $type  类型 详情见枚举
+ * @property   string  $value  值
+ * @property   string  $group  分组
+ * @property   \Carbon\Carbon  $created_at  
+ * @property   \Carbon\Carbon  $updated_at  
+ * @property   \Carbon\Carbon  $deleted_at  删除时间
  * field end
  */
 class SmsConfig extends ModelCore
@@ -20,6 +31,19 @@ class SmsConfig extends ModelCore
      */
     protected $table = 'sms_config';
 
+    // attrlist start 
+    protected $fillable = [
+        'id',
+        'driver',
+        'is_open',
+        'title',
+        'desc',
+        'type',
+        'value',
+        'group',
+    ];
+    // attrlist end
+
     /**
      * 可批量赋值的属性
      *

+ 27 - 1
app/Module/Sms/Models/SmsDbGateway.php

@@ -8,7 +8,19 @@ use UCore\ModelCore;
 /**
  * 数据库-短信网关 模型
  *
- * field start
+ * field start 
+ * @property   int  $id  
+ * @property   string  $tpl_id  
+ * @property   string  $tpl_value  
+ * @property   string  $key  
+ * @property   string  $universal_number  
+ * @property   string  $mobile  
+ * @property   string  $content  
+ * @property   string  $idd_code  
+ * @property   string  $zero_prefixed_number  
+ * @property   \Carbon\Carbon  $created_at  
+ * @property   \Carbon\Carbon  $updated_at  
+ * @property   \Carbon\Carbon  $deleted_at  删除时间
  * field end
  */
 class SmsDbGateway extends ModelCore
@@ -22,6 +34,20 @@ class SmsDbGateway extends ModelCore
      */
     protected $table = 'sms_dbgateway';
 
+    // attrlist start 
+    protected $fillable = [
+        'id',
+        'tpl_id',
+        'tpl_value',
+        'key',
+        'universal_number',
+        'mobile',
+        'content',
+        'idd_code',
+        'zero_prefixed_number',
+    ];
+    // attrlist end
+
     /**
      * 可批量赋值的属性
      *

+ 25 - 0
app/Module/System/Models/Administrator.php

@@ -2,9 +2,34 @@
 
 namespace App\Module\System\Models;
 
+/**
+ * App\Module\System\Models\Administrator
+ *
+ * field start 
+ * @property   int  $id  
+ * @property   string  $username  
+ * @property   string  $password  
+ * @property   string  $name  
+ * @property   string  $avatar  
+ * @property   string  $remember_token  
+ * @property   \Carbon\Carbon  $created_at  
+ * @property   \Carbon\Carbon  $updated_at  
+ * field end
+ */
 class Administrator extends \Dcat\Admin\Models\Administrator
 {
     protected $table = 'admin_users';
 
+    // attrlist start 
+    protected $fillable = [
+        'id',
+        'username',
+        'password',
+        'name',
+        'avatar',
+        'remember_token',
+    ];
+    // attrlist end
+
 }
 

+ 1 - 1
app/Module/System/Models/ReceiveAddress.php

@@ -12,7 +12,7 @@ use Illuminate\Database\Eloquent\SoftDeletes;
  */
 class ReceiveAddress extends Model
 {
-    //attrlist start 
+    // attrlist start 
     protected $fillable = [
     ];
     // attrlist end

+ 34 - 0
app/Module/System/Models/SysConfig.php

@@ -6,6 +6,25 @@ use Dcat\Admin\Traits\HasDateTimeFormatter;
 use Illuminate\Database\Eloquent\SoftDeletes;
 use Illuminate\Database\Eloquent\Model;
 
+/**
+ * App\Module\System\Models\SysConfig
+ *
+ * field start 
+ * @property   int  $id  
+ * @property   string  $keyname  key
+ * @property   string  $is_client  是否给客户端
+ * @property   string  $title  标题
+ * @property   int  $type  类型 详情见枚举
+ * @property   string  $value  值
+ * @property   string  $group  分组
+ * @property   string  $group2  分组2
+ * @property   \Carbon\Carbon  $created_at  
+ * @property   \Carbon\Carbon  $updated_at  
+ * @property   \Carbon\Carbon  $deleted_at  删除时间
+ * @property   string  $desc  描述
+ * @property   string  $options  其他配置
+ * field end
+ */
 class SysConfig extends Model
 {
     use HasDateTimeFormatter;
@@ -13,4 +32,19 @@ class SysConfig extends Model
 
     protected $table = 'sys_configs';
 
+    // attrlist start 
+    protected $fillable = [
+        'id',
+        'keyname',
+        'is_client',
+        'title',
+        'type',
+        'value',
+        'group',
+        'group2',
+        'desc',
+        'options',
+    ];
+    // attrlist end
+
 }

+ 26 - 0
app/Module/Test/Models/Test.php

@@ -8,6 +8,21 @@ use UCore\ModelCore;
 use Illuminate\Database\Eloquent\SoftDeletes;
 use App\Module\Test\Events\TestEvent;
 
+/**
+ * App\Module\Test\Models\Test
+ *
+ * field start 
+ * @property   int  $id  
+ * @property   string  $name  名称
+ * @property   string  $code  编码
+ * @property   string  $description  描述
+ * @property   object|array  $data  数据
+ * @property   int  $status  状态:0禁用 1启用
+ * @property   \Carbon\Carbon  $created_at  
+ * @property   \Carbon\Carbon  $updated_at  
+ * @property   \Carbon\Carbon  $deleted_at  
+ * field end
+ */
 class Test extends ModelCore
 {
     use HasFactory, SoftDeletes;
@@ -19,6 +34,17 @@ class Test extends ModelCore
      */
     protected $table = 'test';
 
+    // attrlist start 
+    protected $fillable = [
+        'id',
+        'name',
+        'code',
+        'description',
+        'data',
+        'status',
+    ];
+    // attrlist end
+
     /**
      * 可批量赋值的属性
      *

+ 2 - 2
app/Module/Transaction/Models/Transaction.php

@@ -8,12 +8,12 @@ use UCore\ModelCore;
 /**
  * 交易记录
  *
- * field start
+ * field start 
  * field end
  */
 class Transaction extends ModelCore
 {
-    // attrlist start
+    // attrlist start 
     protected $fillable = [
     ];
     // attrlist end

+ 6 - 1
app/Module/Transaction/Models/TransactionRecharge.php

@@ -9,7 +9,7 @@ use UCore\ModelCore;
 /**
  * 充值记录
  *
- * field start
+ * field start 
  * field end
  */
 class TransactionRecharge extends ModelCore
@@ -21,6 +21,11 @@ class TransactionRecharge extends ModelCore
 
     protected $table = 'transaction_recharge';
 
+    // attrlist start 
+    protected $fillable = [
+    ];
+    // attrlist end
+
     /**
      * @param $data
      * @return static

+ 2 - 2
app/Module/Transaction/Models/TransactionTransfer.php

@@ -10,12 +10,12 @@ use UCore\ModelCore;
 /**
  * 转账记录
  *
- * field start
+ * field start 
  * field end
  */
 class TransactionTransfer extends ModelCore
 {
-    // attrlist start
+    // attrlist start 
     protected $fillable = [
     ];
     // attrlist end

+ 2 - 2
app/Module/Transaction/Models/TransactionWithdrawal.php

@@ -10,12 +10,12 @@ use UCore\ModelCore;
 /**
  * 提现记录
  *
- * field start
+ * field start 
  * field end
  */
 class TransactionWithdrawal extends ModelCore
 {
-    // attrlist start
+    // attrlist start 
     protected $fillable = [
     ];
     // attrlist end

+ 5 - 0
app/Module/Ulogic/Models/AppMessage.php

@@ -24,6 +24,11 @@ class AppMessage extends Model
      */
     protected $table = 'app_messages';
 
+    // attrlist start 
+    protected $fillable = [
+    ];
+    // attrlist end
+
     /**
      * 可批量赋值的属性
      *

+ 11 - 0
app/Module/Ulogic/Models/AppMessageRecipient.php

@@ -19,6 +19,12 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
  * @property-read AppMessage $message 关联的消息
  * @property-read \App\Models\User $user 关联的用户
  */
+/**
+ * App\Module\Ulogic\Models\AppMessageRecipient
+ *
+ * field start 
+ * field end
+ */
 class AppMessageRecipient extends Model
 {
     /**
@@ -28,6 +34,11 @@ class AppMessageRecipient extends Model
      */
     protected $table = 'app_message_recipients';
 
+    // attrlist start 
+    protected $fillable = [
+    ];
+    // attrlist end
+
     /**
      * 可批量赋值的属性
      *

+ 11 - 0
app/Module/Ulogic/Models/AppMessageTemplate.php

@@ -19,6 +19,12 @@ use Illuminate\Database\Eloquent\Model;
  * @property \Carbon\Carbon $created_at 创建时间
  * @property \Carbon\Carbon $updated_at 更新时间
  */
+/**
+ * App\Module\Ulogic\Models\AppMessageTemplate
+ *
+ * field start 
+ * field end
+ */
 class AppMessageTemplate extends Model
 {
     /**
@@ -28,6 +34,11 @@ class AppMessageTemplate extends Model
      */
     protected $table = 'app_message_templates';
 
+    // attrlist start 
+    protected $fillable = [
+    ];
+    // attrlist end
+
     /**
      * 可批量赋值的属性
      *

+ 11 - 0
app/Module/Ulogic/Models/UserAddress.php

@@ -6,6 +6,12 @@ use Dcat\Admin\Traits\HasDateTimeFormatter;
 use Illuminate\Database\Eloquent\SoftDeletes;
 use Illuminate\Database\Eloquent\Model;
 
+/**
+ * App\Module\Ulogic\Models\UserAddress
+ *
+ * field start 
+ * field end
+ */
 class UserAddress extends Model
 {
     use HasDateTimeFormatter;
@@ -13,6 +19,11 @@ class UserAddress extends Model
 
     protected $table = 'user_address';
 
+    // attrlist start 
+    protected $fillable = [
+    ];
+    // attrlist end
+
     /**
      * @param $userId
      * @return \Illuminate\Database\Eloquent\Collection

+ 5 - 0
app/Module/Ulogic/Models/UserBans.php

@@ -19,6 +19,11 @@ class UserBans extends Model
 
     protected $table = 'user_bans';
 
+    // attrlist start 
+    protected $fillable = [
+    ];
+    // attrlist end
+
     /**
      * @param $userId
      * @param $type

+ 16 - 5
app/Module/Ulogic/Models/UserPunish.php

@@ -10,15 +10,15 @@ use Illuminate\Database\Eloquent\Relations\HasOne;
  * 用户 惩罚(违规记录)
  * punish
  *
- * field start
- * @property   int  $id
+ * field start 
+ * @property   int  $id  
  * @property   int  $user_id  用户ID
  * @property   string  $type  类型
- * @property   \Carbon\Carbon  $created_at
- * @property   \Carbon\Carbon  $updated_at
+ * @property   \Carbon\Carbon  $created_at  
+ * @property   \Carbon\Carbon  $updated_at  
  * @property   string  $desc  描述
  * @property   int  $level  惩罚等级
- * @property   \Carbon\Carbon  $deleted_at
+ * @property   \Carbon\Carbon  $deleted_at  
  * @property   int  $admin_id  做出惩罚的管理员ID
  * field end
  *
@@ -31,6 +31,17 @@ class UserPunish extends ModelCore
 
     protected $table = 'user_punishs';
 
+    // attrlist start 
+    protected $fillable = [
+        'id',
+        'user_id',
+        'type',
+        'desc',
+        'level',
+        'admin_id',
+    ];
+    // attrlist end
+
     protected $casts = [
         'type' => PUNISH_TYPE::class
     ];

+ 6 - 1
app/Module/Ulogic/Models/UserRelation.php

@@ -9,7 +9,7 @@ use Illuminate\Database\Eloquent\Model;
 /**
  * 用户关系表
  * *
- * field start
+ * field start 
  * field end
  */
 class UserRelation extends Model
@@ -17,6 +17,11 @@ class UserRelation extends Model
     use HasDateTimeFormatter;
 
     protected $table = 'user_relation';
+
+    // attrlist start 
+    protected $fillable = [
+    ];
+    // attrlist end
     public $timestamps = false;
 
     public function createRow($userId, $relationUserId, $level)

+ 5 - 0
app/Module/Ulogic/Models/UserWord.php

@@ -17,6 +17,11 @@ class UserWord extends Model
     use HasDateTimeFormatter;
 
     protected $table = 'user_word';
+
+    // attrlist start 
+    protected $fillable = [
+    ];
+    // attrlist end
     public $timestamps = false;
 
     /**

+ 5 - 0
app/Module/Ulogic/Models/WalletAddress.php

@@ -22,6 +22,11 @@ class WalletAddress extends Model
 
     protected $table = 'wallet_address';
 
+    // attrlist start 
+    protected $fillable = [
+    ];
+    // attrlist end
+
     /**
      * @return string
      * 生成uraus地址

+ 18 - 14
app/Module/User/Models/User.php

@@ -11,20 +11,14 @@ use UCore\ModelCore;
  *
  * 用户
  *
- * field start
- *
- * @property   int $user_id
- * @property   string $mobile  手机号
- * @property   string $nickname  昵称
- * @property   string $avatar  头像
- * @property   string $invite_code  邀请码
- * @property   int $up_user_id  上级用户id
- * @property   string $password  助记词
- * @property   string $desc  个性签名
- * @property   int $is_prohibit  是否封禁
- * @property   int $is_verify  是否认证
- * @property   string $create_time
- * @property   string $update_time
+ * field start 
+ * @property   int  $id  
+ * @property   string  $username  
+ * @property   string  $password  
+ * @property   string  $remember_token  
+ * @property   \Carbon\Carbon  $created_at  
+ * @property   \Carbon\Carbon  $updated_at  
+ * @property   int  $status2  状态
  * field end
  */
 class User extends ModelCore
@@ -40,5 +34,15 @@ class User extends ModelCore
         'status2' => STATUS2::class,
     ];
 
+    // attrlist start 
+    protected $fillable = [
+        'id',
+        'username',
+        'password',
+        'remember_token',
+        'status2',
+    ];
+    // attrlist end
+
 
 }

+ 19 - 5
app/Module/User/Models/UserAction.php

@@ -10,8 +10,8 @@ use App\Module\User\Enums\ACTION_TYPE;
  *
  * 用户操作记录
  *
- * field start
- * @property   int  $id
+ * field start 
+ * @property   int  $id  
  * @property   int  $admin_id  做出操作的管理员ID
  * @property   int  $user_id  用户ID
  * @property   string  $type  类型
@@ -19,9 +19,9 @@ use App\Module\User\Enums\ACTION_TYPE;
  * @property   int  $exp_time  有效期
  * @property   int  $re_id  关联操作-ID
  * @property   string  $re_type  关联操作-类型
- * @property   \Carbon\Carbon  $created_at
- * @property   \Carbon\Carbon  $updated_at
- * @property   \Carbon\Carbon  $deleted_at
+ * @property   \Carbon\Carbon  $created_at  
+ * @property   \Carbon\Carbon  $updated_at  
+ * @property   \Carbon\Carbon  $deleted_at  
  * @property   int  $status  状态
  * field end
  */
@@ -32,5 +32,19 @@ class UserAction extends ModelCore
         'status' => ACTION_STATUS::class
     ];
 
+    // attrlist start 
+    protected $fillable = [
+        'id',
+        'admin_id',
+        'user_id',
+        'type',
+        'desc',
+        'exp_time',
+        're_id',
+        're_type',
+        'status',
+    ];
+    // attrlist end
+
 
 }

+ 21 - 10
app/Module/User/Models/UserInfo.php

@@ -17,16 +17,16 @@ use Illuminate\Database\Eloquent\SoftDeletes;
 /**
  * 用户信息
  *
- * field start
- *
- * @property   int $user_id  用户ID
- * @property   int $status  状态
- * @property   string $google2fa_secret
- * @property   string $nickname  昵称
- * @property   string $avatar  头像
- * @property   \Carbon\Carbon $created_at
- * @property   \Carbon\Carbon $updated_at
- * @property   \Carbon\Carbon $deleted_at
+ * field start 
+ * @property   int  $user_id  用户ID
+ * @property   int  $status  状态
+ * @property   string  $google2fa_secret  
+ * @property   string  $nickname  昵称
+ * @property   string  $avatar  头像
+ * @property   \Carbon\Carbon  $created_at  
+ * @property   \Carbon\Carbon  $updated_at  
+ * @property   \Carbon\Carbon  $deleted_at  
+ * @property   string  $wx_id  微信号
  * field end
  *
  * Class UserInfo
@@ -48,6 +48,17 @@ class UserInfo extends \UCore\ModelCore
         'saved' => UserInfoSaved::class
     ];
 
+    // attrlist start 
+    protected $fillable = [
+        'user_id',
+        'status',
+        'google2fa_secret',
+        'nickname',
+        'avatar',
+        'wx_id',
+    ];
+    // attrlist end
+
     public function merchant(): HasOne
     {
         return $this->hasOne(Merchant::class, 'user_id', 'user_id')->orderByDesc('id');

+ 16 - 6
app/Module/User/Models/UserPhone.php

@@ -17,15 +17,15 @@ use Illuminate\Database\Eloquent\SoftDeletes;
 /**
  * 用户信息
  *
- * field start
- * @property   int  $id
+ * field start 
+ * @property   int  $id  
  * @property   int  $user_id  用户ID
  * @property   int  $status  状态
  * @property   int  $type  类型
- * @property   string  $phone
- * @property   \Carbon\Carbon  $created_at
- * @property   \Carbon\Carbon  $updated_at
- * @property   \Carbon\Carbon  $deleted_at
+ * @property   string  $phone  
+ * @property   \Carbon\Carbon  $created_at  
+ * @property   \Carbon\Carbon  $updated_at  
+ * @property   \Carbon\Carbon  $deleted_at  
  * field end
  */
 class UserPhone extends \UCore\ModelCore
@@ -44,6 +44,16 @@ class UserPhone extends \UCore\ModelCore
         'saved' => UserPhoneSaved::class
     ];
 
+    // attrlist start 
+    protected $fillable = [
+        'id',
+        'user_id',
+        'status',
+        'type',
+        'phone',
+    ];
+    // attrlist end
+
     public function user(): HasOne
     {
         return $this->hasOne(User::class,'id','user_id');

+ 15 - 5
app/Module/User/Models/UserSecretPassword.php

@@ -10,15 +10,15 @@ use UCore\ModelCore;
 /**
  * 用户 - 安全密码
  *
- * field start
- * @property   int  $id
+ * field start 
+ * @property   int  $id  
  * @property   int  $user_id  用户ID
  * @property   int  $status  状态
  * @property   string  $last_check_at  最后验证时间
  * @property   string  $secret_password  安全密码
- * @property   \Carbon\Carbon  $created_at
- * @property   \Carbon\Carbon  $updated_at
- * @property   \Carbon\Carbon  $deleted_at
+ * @property   \Carbon\Carbon  $created_at  
+ * @property   \Carbon\Carbon  $updated_at  
+ * @property   \Carbon\Carbon  $deleted_at  
  * field end
  *
  */
@@ -35,4 +35,14 @@ class UserSecretPassword extends ModelCore
     protected $dispatchesEvents = [
         'saved' => UserSecretPasswordSaved::class
     ];
+
+    // attrlist start 
+    protected $fillable = [
+        'id',
+        'user_id',
+        'status',
+        'last_check_at',
+        'secret_password',
+    ];
+    // attrlist end
 }

+ 3 - 0
noai.md

@@ -29,3 +29,6 @@ netresearch/jsonmapper
 2025/4/22 上午11:01:21 (Asia/Shanghai, UTC+8:00)
 
 枚举类名 全大写下划线命名,文件名同类名,case名 全大写下划线命名,case值不变
+
+所有的Model类增加` * field start
+* field end`的类注释,并注释该类的中文名