$ composer require jncinet/qihucms-user-label
$ php artisan migrate
$ php artisan vendor:publish --provider="Qihucms\UserLabel\LabelServiceProvider"
- 会员标签 => user-labels
- 请求方式:GET
- 请求链接:user/labels
- 请求参数:
- labels:[1,2,3] // 标签ID数组
- 返回值:
{
"data": [
{
"id" => 1,
"name": "标签名称",
},
...
]
}
- 请求方式:POST
- 请求链接:user/add-labels
- 请求参数:
- labels:[1,2,3] // 标签ID数组
- 返回值:
{
"data": [
{
"id" => 1,
"name": "标签名称",
},
...
]
}
- 请求方式:POST
- 请求链接:user/remove-labels
- 请求参数:
- 返回值:
{
"data": [
{
"id" => 1,
"name": "标签名称",
},
...
]
}
Field | Type | Length | AllowNull | Default | Comment |
---|---|---|---|---|---|
id | bigint | ||||
name | text | 标签名称 |
Field | Type | Length | AllowNull | Default | Comment |
---|---|---|---|---|---|
id | bigint | ||||
label_id | bigint | 标签ID | |||
user_id | bigint | 会员ID |