Browse Source

增加用户活动返利申请方法

alexzy 1 year ago
parent
commit
069d9c7d97
2 changed files with 144 additions and 0 deletions
  1. 134 0
      src/entity/ActiveRebateData.php
  2. 10 0
      src/sdk/UserActiveRebateServiceInterface.php

+ 134 - 0
src/entity/ActiveRebateData.php

@@ -0,0 +1,134 @@
+<?php
+
+namespace Yxy\Service\entity;
+
+class ActiveRebateData
+{
+    /**
+     * 小号ID
+     * @var null|int
+     */
+    private ?int $small_id = null;
+
+    /**
+     * 活动ID
+     * @var null|int
+     */
+    private ?int $active_id = null;
+
+    /**
+     * 角色ID
+     * @var null|string
+     */
+    private ?string $game_player_id = null;
+
+    /**
+     * 服务器名称
+     * @var null|string
+     */
+    private ?string $server_name = null;
+
+    /**
+     * 服务器名称
+     * @var null|int
+     */
+    private ?int $start_time = null;
+
+    /**
+     * 服务器名称
+     * @var null|int
+     */
+    private ?int $end_time = null;
+
+    /**
+     * 服务器名称
+     * @var null|string
+     */
+    private ?string $content = null;
+
+    /**
+     * 角色名称
+     * @var null|string
+     */
+    private ?string $game_player_name = null;
+
+    public function getSmallId(): ?int
+    {
+        return $this->small_id;
+    }
+
+    public function setSmallId(?int $small_id): void
+    {
+        $this->small_id = $small_id;
+    }
+
+    public function getActiveId(): ?int
+    {
+        return $this->active_id;
+    }
+
+    public function setActiveId(?int $active_id): void
+    {
+        $this->active_id = $active_id;
+    }
+
+    public function getGamePlayerId(): ?string
+    {
+        return $this->game_player_id;
+    }
+
+    public function setGamePlayerId(?string $game_player_id): void
+    {
+        $this->game_player_id = $game_player_id;
+    }
+
+    public function getGamePlayerName(): ?string
+    {
+        return $this->game_player_name;
+    }
+
+    public function setGamePlayerName(?string $game_player_name): void
+    {
+        $this->game_player_name = $game_player_name;
+    }
+
+    public function getServerName(): ?string
+    {
+        return $this->server_name;
+    }
+
+    public function setServerName(?string $server_name): void
+    {
+        $this->server_name = $server_name;
+    }
+
+    public function getStartTime(): ?int
+    {
+        return $this->start_time;
+    }
+
+    public function setStartTime(?int $start_time): void
+    {
+        $this->start_time = $start_time;
+    }
+
+    public function getEndTime(): ?int
+    {
+        return $this->end_time;
+    }
+
+    public function setEndTime(?int $end_time): void
+    {
+        $this->end_time = $end_time;
+    }
+
+    public function getContent(): ?string
+    {
+        return $this->content;
+    }
+
+    public function setContent(?string $content): void
+    {
+        $this->content = $content;
+    }
+}

+ 10 - 0
src/sdk/UserActiveRebateServiceInterface.php

@@ -0,0 +1,10 @@
+<?php
+
+namespace Yxy\Service\sdk;
+
+use Yxy\Service\entity\ActiveRebateData;
+
+interface UserActiveRebateServiceInterface
+{
+    public function applyActiveRebate(ActiveRebateData $activeRebateData): int;
+}