archive_usages
Column Name | Type | Comment | Default | Null | Remark |
---|---|---|---|---|---|
id | bigint UNSIGNED | Primary Key ID | NO | Auto Increment | |
usage_type | tinyint UNSIGNED | 目标类型 | NO | ||
usage_id | bigint UNSIGNED | 目标主键 ID | NO | ||
archive_id | int UNSIGNED | 参数 ID | NO | 关联字段 archives > id | |
archive_value | text | 参数值 | YES | ||
is_private | tinyint UNSIGNED | 是否保密 | 0 | NO | 0.否 / 1.是 |
plugin_unikey | varchar(64) | 关联插件 | YES | 关联字段 plugins->unikey 哪个插件关联的 | |
created_at | timestamp | Create Time | CURRENT_TIMESTAMP | NO | |
updated_at | timestamp | Update Time | YES | ||
deleted_at | timestamp | Delete Time | YES |
使用目标关联介绍
usage_type
目标类型1
用户2
小组3
话题4
帖子5
评论6
帖子日志7
评论日志
usage_id
目标主键 ID1
关联字段 users->id2
关联字段 groups->id3
关联字段 hashtags->id4
关联字段 posts->id5
关联字段 comments->id6
关联字段 post_logs->id7
关联字段 comment_logs->id
接口输出示例
json
{
"archives": [
{
"code": "String / 标识码",
"name": "String / 名称",
"description": "String / 描述",
"value": "String / 参数值",
}
]
}