接口说明
根据项目 id,空间 id 获取空间源文案列表
请求 API
| 名称 | 内容 |
|---|
| 请求方式 | GET |
| Action | ProjectNamespaceSources |
请求参数
| 参数名 | 是否必填 | 类型 | 描述 |
|---|
| projectId | required | number | 项目id |
| namespaceId | required | number | 空间id |
| offset | optional | number | 翻页偏移量。default: 0 |
| limit | optional | number | 翻页最大数量。default: 25 |
| keyTexts | optional | string | 检索:精确匹配 key,逗号分隔(keyTexts: aa,bbb,ccc) |
| sourceIds | optional | string | 检索:精确匹配 id,逗号分隔(keyTexts: 111,222,333) |
| searchKey | optional | string | 检索:模糊匹配 key |
| searchSource | optional | string | 检索:模糊匹配源文案 |
| translatedStatus | optional | number or string | 检索:翻译状态 0: 已翻译 1: 未翻译 2: 已最新 3: 待更新,也可逗号分隔多选,例如 1,2,3 |
| distributeStatus | optional | number | 检索:发布状态 8: 未发布 7: 已发布 15: 所有状态 2: 灰度发布 4: 测试发布 1: 全量发布 |
| locale | optional | string | 语种 |
| source | optional | string | 筛选方式:按源文案数据筛选,这里的json string 数据,例如'{"TagName":1,"DateRange":[1693894465,1694499265],"TextType":0,"OperatorName":"2100011"}' TagName: 1是复数,4是单数;DateRange:最后操作起止时间,时间为Unix timestamp;TextType: 0是新增,1是修改;OperatorName: 最后操作人ID |
| target | optional | string | 筛选方式:按翻译文案数据筛选,同 source |
返回数据
// HTTP Status: 200
{
data: [
{
id: 6610468, // 源文案id
namespaceId: 37848, // 空间id
lang: 'de', // 源语言
keyText: 'apiupdate', // 文案key
content: '23333322232', // 文案内容
lengthLimit: 0, // 最长字符
tagName: '', // 文案类型,复数文案为:plural
commentary: '', // 文案注释
taskId: 0, // 来源于任务id
createdAt: '2021-06-17T11:02:14.000Z', // 创建时间
updatedAt: '2021-06-18T07:03:48.000Z', // 更新
targetText: {
id: 335716629,
sourceTextId: 66101308,
taskId: 785141526,
isMt: false,
lang: 'en',
keyText: 'ttest10',
content: 'test',
tagName: 'singular',
createdAt: '2023-09-12T06:23:29.000Z',
updatedAt: '2023-09-12T06:23:47.000Z',
textExtra: null
},
targetTexts: [
{
id: 335176629,
sourceTextId: 66101308,
taskId: 781514526,
isMt: false,
lang: 'en',
keyText: 'ttest10',
content: 'test',
tagName: 'singular',
createdAt: '202109-12T06:23:29.000Z',
updatedAt: '2021-09-12T06:23:47.000Z',
textExtra: null
},
{
id: 335766124,
sourceTextId: 66101308,
taskId: 78514526,
isMt: false,
lang: 'es-SV',
keyText: 'ttest10',
content: 'sdfsdf',
tagName: 'all',
createdAt: '2021-09-12T05:58:13.000Z',
updatedAt: '2021-09-12T06:23:45.000Z',
textExtra: null
},
{
id: 335716631,
sourceTextId: 66103108,
taskId: 78514526,
isMt: false,
lang: 'zh',
keyText: 'ttest10',
content: '3333',
tagName: 'all',
createdAt: '2021-09-12T06:26:36.000Z',
updatedAt: '2021-09-12T06:26:36.000Z',
textExtra: null
}
]
}
],
total: 4,
pagination: {
offset: 0,
limit: 25
}
}