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; } }