Ver Fonte

feat(User): 更新用户游戏皮肤接口并添加新字段

- 移除 ResponseUserGameSkin 中的 id 字段
- 在 UserInfo 中添加 skin_ids 字段,用于存储用户持有的农场皮肤
- 更新 proto_route.php 中的生成时间
notfff há 7 meses atrás
pai
commit
ab504cdcab

+ 1 - 1
config/proto_route.php

@@ -90,7 +90,7 @@ return array (
       7 => 'query_data',
     ),
   ),
-  'generated_at' => '+08:00 2025-06-07 18:28:35',
+  'generated_at' => '+08:00 2025-06-09 18:57:37',
   'conventions' => 
   array (
     'handler_namespace' => 'App\\Module\\AppGame\\Handler',

+ 6 - 7
protophp/GPBMetadata/Proto/Game.php

@@ -16,7 +16,7 @@ class Game
         }
         $pool->internalAddGeneratedFile(
             '
-Ÿ
+Ÿ
 proto/game.proto	uraus.kku"„4
 Request
 request_unid (	;
@@ -236,7 +236,7 @@ select_ids (.
 task_id (
 items ()
 RequestTaskClaimReward
-task_id ("ë<
+task_id ("ñ<
 Response
 run_unid (	
 run_ms (-
@@ -372,16 +372,15 @@ PublicLand
 ResponseUserEditinfo
 ResponseUserEditPassword
 ResponseUserLogout
-ResponseUserClearLog"
-ResponseUserGameSkin
-
-id (_
+ResponseUserClearLog
+ResponseUserGameSkinq
 UserInfo
 user_id (
 skin_id (
 avatar (
 	nick_name (	
-mobile (	n
+mobile (	
+skin_ids (n
 ResponseUserLogData,
 page (2.uraus.kku.Common.ResponsePage)
 logs (2.uraus.kku.Response.UserLog$

+ 0 - 34
protophp/Uraus/Kku/Response/ResponseUserGameSkin.php

@@ -15,12 +15,6 @@ use Google\Protobuf\Internal\GPBUtil;
  */
 class ResponseUserGameSkin extends \Google\Protobuf\Internal\Message
 {
-    /**
-     *皮肤id
-     *
-     * Generated from protobuf field <code>int64 id = 1;</code>
-     */
-    protected $id = 0;
 
     /**
      * Constructor.
@@ -28,8 +22,6 @@ class ResponseUserGameSkin extends \Google\Protobuf\Internal\Message
      * @param array $data {
      *     Optional. Data for populating the Message object.
      *
-     *     @type int|string $id
-     *          皮肤id
      * }
      */
     public function __construct($data = NULL) {
@@ -37,32 +29,6 @@ class ResponseUserGameSkin extends \Google\Protobuf\Internal\Message
         parent::__construct($data);
     }
 
-    /**
-     *皮肤id
-     *
-     * Generated from protobuf field <code>int64 id = 1;</code>
-     * @return int|string
-     */
-    public function getId()
-    {
-        return $this->id;
-    }
-
-    /**
-     *皮肤id
-     *
-     * Generated from protobuf field <code>int64 id = 1;</code>
-     * @param int|string $var
-     * @return $this
-     */
-    public function setId($var)
-    {
-        GPBUtil::checkInt64($var);
-        $this->id = $var;
-
-        return $this;
-    }
-
 }
 
 // Adding a class alias for backwards compatibility with the previous class name.

+ 34 - 0
protophp/Uraus/Kku/Response/UserInfo.php

@@ -45,6 +45,12 @@ class UserInfo extends \Google\Protobuf\Internal\Message
      * Generated from protobuf field <code>string mobile = 5;</code>
      */
     protected $mobile = '';
+    /**
+     *农场皮肤,持有
+     *
+     * Generated from protobuf field <code>repeated int64 skin_ids = 6;</code>
+     */
+    private $skin_ids;
 
     /**
      * Constructor.
@@ -62,6 +68,8 @@ class UserInfo extends \Google\Protobuf\Internal\Message
      *          玩家昵称
      *     @type string $mobile
      *           手机
+     *     @type int[]|string[]|\Google\Protobuf\Internal\RepeatedField $skin_ids
+     *          农场皮肤,持有
      * }
      */
     public function __construct($data = NULL) {
@@ -199,6 +207,32 @@ class UserInfo extends \Google\Protobuf\Internal\Message
         return $this;
     }
 
+    /**
+     *农场皮肤,持有
+     *
+     * Generated from protobuf field <code>repeated int64 skin_ids = 6;</code>
+     * @return \Google\Protobuf\Internal\RepeatedField
+     */
+    public function getSkinIds()
+    {
+        return $this->skin_ids;
+    }
+
+    /**
+     *农场皮肤,持有
+     *
+     * Generated from protobuf field <code>repeated int64 skin_ids = 6;</code>
+     * @param int[]|string[]|\Google\Protobuf\Internal\RepeatedField $var
+     * @return $this
+     */
+    public function setSkinIds($var)
+    {
+        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64);
+        $this->skin_ids = $arr;
+
+        return $this;
+    }
+
 }
 
 // Adding a class alias for backwards compatibility with the previous class name.