[关闭]
@bergus 2018-09-30T01:53:49.000000Z 字数 951 阅读 769

dtcp格式定义

dtcp


common

name type optional comment
id string y Content id
version string y DTCP version. "1.0".
type string y object|link
signature string y metadata的签名
tag string y 标签集, 以逗号分隔 "帅气, 英俊"
dna string y metadata dna,不参与签名过程
parent_dna string y 该metadata修改前的dna
created int y 创建的时间,时间戳,13位长度, 1506302092000
updated int y 创建的时间,时间戳,13位长度, 1506302092000
status string y 状态,created,updated,deleted
creator object y Creator of the content
extra object y 扩展内容, 自定义内容, 用户的额外数据
data object y 根据tag存放相关的article, image, link自己独有的内容
title string n 内容的标题
source string n 内容的原地址,比如文章,图片,vedio,audio url
abstract string n 内容描述,对内容的描述
content string n 原始内容,原始内容
language string n zh-cn
license object n 内容许可
additional object n 额外的附加内容,不参与签名计算,系统的额外数据
name type optional comment
src_id string y source id
dest_id string y destination id

creator

name type optional comment
account_id string y Account id. Root account id in the case of Sub account posting.
account_name string n Account name.
sub_account_id string n Sub account id.
sub_account_name string n Sub account name. For fast creation of new sub accounts.
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注