1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <?php
- namespace App\Generated\V1_1\Messages\Mock;
- use Kamicloud\StubApi\Concerns\ValueHelper;
- use Kamicloud\StubApi\Http\Messages\Message;
- use Kamicloud\StubApi\Utils\Constants;
- use App\Generated\V1_1\Enums\PartnerThumb;
- class ThumbPartnerMessage extends Message
- {
- use ValueHelper;
- protected $uid;
- protected $partnerId;
- protected $thumb;
- protected $result;
- /**
- * uid
- * @return int
- */
- public function getUid()
- {
- return $this->uid;
- }
- /**
- * 卡片id
- * @return int
- */
- public function getPartnerId()
- {
- return $this->partnerId;
- }
- /**
- * 点赞与否
- * @return mixed
- */
- public function getThumb()
- {
- return $this->thumb;
- }
- public function requestRules()
- {
- return [
- ['uid', 'uid', 'bail|integer', Constants::INTEGER, null],
- ['partnerId', 'partner_id', 'bail|integer', Constants::INTEGER, null],
- ['thumb', 'thumb', PartnerThumb::class, Constants::ENUM, null],
- ];
- }
- public function responseRules()
- {
- return [
- ['result', 'result', 'bail', null, null],
- ];
- }
- public function setResponse($result)
- {
- $this->result = $result;
- }
- }
|