接口说明
根据项目 id,空间 id,语言,显示待发布的文案列表
请求 API
| 名称 | 内容 |
|---|
| 请求方式 | GET |
| Action | ProjectDistributions |
请求参数
| 参数名 | 是否必填 | 类型 | 描述 |
|---|
| projectId | required | number | 项目id |
| namespaceId | required | number | 空间id |
| locale | required | string | 语言 |
| offset | optional | number | 翻页偏移量。default: 0 |
| limit | optional | number | 翻页最大数量。default: 25 |
| searchKey | optional | string | 检索条件:模糊搜索 文案key |
| operators | optional | string | 检索条件:操作人列表,如 {operators: "aa,bb,cc"} 逗号分隔 |
| creators | optional | string | 检索条件:创建人列表,如 {creators: "aa,bb,cc"} 逗号分隔 |
返回数据
// HTTP Status: 200
{
data: [
{
key: 'key', // 文案 key
sourceText: '', // 源文案
newTranslateText: '', // 新翻译文案
oldTranslateText: '我是api添加的文案', // 旧的翻译文案
status: 2, // 0:创建;1:更新;2:删除
targetTextId: 0, // 翻译文案id
sourceTextId: 0, // 源文案id
tagName: '', // 文案标签名称
updatedAt: '2021-06-20T06:08:43.000Z', // 更新时间
operatorId: 2100000220 // 操作人
}
],
total: 1,
pagination: {
offset: 0,
limit: 2
}
}