Skip to content

Commit bd60bca

Browse files
authored
添加 企业微信新的任务卡片类型(interactive_taskcard) (#2090)
1 parent 9ddd57e commit bd60bca

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the overtrue/wechat.
5+
*
6+
* (c) overtrue <i@overtrue.me>
7+
*
8+
* This source file is subject to the MIT license that is bundled
9+
* with this source code in the file LICENSE.
10+
*/
11+
12+
namespace EasyWeChat\Kernel\Messages;
13+
14+
/**
15+
* Class InteractiveTaskCard.
16+
*
17+
* @description 企业微信 interactive_taskcard 任务卡片消息类型
18+
*
19+
* @author xyj2156
20+
* @date 2021年5月25日 15:21:03
21+
*
22+
* @property string $title
23+
* @property string $description
24+
* @property string $url
25+
* @property string $task_id
26+
* @property array $btn
27+
*/
28+
class InteractiveTaskCard extends Message
29+
{
30+
/**
31+
* Messages type.
32+
*
33+
* @var string
34+
*/
35+
protected $type = 'interactive_taskcard';
36+
37+
/**
38+
* Properties.
39+
*
40+
* @var array
41+
*/
42+
protected $properties = [
43+
'title',
44+
'description',
45+
'url',
46+
'task_id',
47+
'btn',
48+
];
49+
}

0 commit comments

Comments
 (0)