访问路径:/api/app/orgAppToTmplate
应用权限:作品——>作品信息
接口说明:企业作品转模版
类型: POST
Author: Shang Pan,flame
Content-Type: application/json; charset=utf-8
接口描述 企业作品转模版
Request-headers:
Header | 类型 | 是否必填 | 字段描述 |
---|---|---|---|
X-Token | string | true | token |
接口入参:
参数 | 类型 | 是否必填 | 字段描述 |
---|---|---|---|
appId | string | true | 作品ID |
uid | string | true | 第三方平台用户的用户id |
companyId | string | false | 第三方平台企业id |
接口出参:
Field | 类型 | 字段描述 |
---|---|---|
code | string | 状态码 |
errorCode | string | 错误状态码 |
msg | string | 状态描述 |
data | object | 数据 |
└─orgtplId | string | 模板id |
└─orgtplOrg | string | 企业ID |
└─orgtplApp | string | 转模板对应appid |
└─orgtplUser | string | 模板归属用户id |
└─orgtplType | string | 企业模版类型,C:卡片模版,T:主题模版 |
└─orgtplTitle | string | 企业模板标题 |
└─orgtplDesc | string | 模版摘要描述 |
└─orgtplFile | string | 模版封面图,文件ID |
└─orgtplFilepath | string | 模版封面图文件路径url,基于CDN + imgKey动态生成 |
└─orgtplSort | int32 | 模版排序字段 |
└─orgtplData | string | 模版内容 |
└─orgtplRemark | string | 评论 |
└─orgtplUsecount | int32 | 模版使用次数 |
└─orgtplLasttime | string | 模版下架时间 |
└─orgtplState | string | 企业模板上架状态;U:上架,D:下架 |
└─orgtplStatetime | string | 模版上架时间 |
└─orgtplCt | string | 模板创建时间 |
└─orgtplUt | string | 模版更新时间 |
└─orgtplSpecies | string | 长页与兔展标示 |
└─orgtplExt | string | 视频数 |
└─appVersion | int32 | 作品版本(0:老作品,1:老作品转新作品,2:新作品,3:小程序) |
└─pluginId | int64 | 插件ID |
└─pluginClassifyId | int32 | 插件分类id |
└─pluginPlayWayKey | string | 插件玩法KEY |
└─pluginPlayWayType | string | 玩法json |
└─tplclass | string | 分类 |
└─tplscene | string | 场景 |
└─tpltheme | string | 主题 |
└─tplStyle | string | 风格 |
请求示例
curl -X POST -k -H 'Content-Type: application/json; charset=utf-8' -H 'X-Token' -i https://integrate.rabbitpre.com/api/open/api/app/orgAppToTmplate --data '{ "appId": "156", "uid": "156", "companyId": "156" }'
返回示例
{ "code": "200", "errorCode": "SUCCESS", "msg": "ok", "data": { "orgtplId": "cf55d539-dd59-4695-8f69-9f380b5d5b45", "orgtplOrg": "4fa08af9-97fb-473e-832f-b9722765c14c", "orgtplApp": "f6bb58c0-5f85-47cb-8253-4a59a0ebe413", "orgtplUser": "096c3c30-a33b-4782-914a-35aaf7f36ceb", "orgtplType": "T", "orgtplTitle": "我的H5作品", "orgtplDesc": "我做了一个超炫酷的H5,快来看看吧!", "orgtplFile": "", "orgtplSort": 0, "orgtplData": "{\"name\":\"我的H5作品\",\"desc\":\"我做了一个超炫酷的H5,快来看看吧!\",\"width\":320,\"height\":504,\"isMaterial\":false,\"isVideo\":false,\"musicName\":\"\",\"musicAutoPlay\":false,\"musicId\":\"\",\"imgId\":\"\",\"imgPath\":\"https://static.h5no1.com/rp/editor/646212f0-d5c7-4732-9b11-da5f1c7b4fb2\",\"device\":\"iPhone5\",\"ext\":\"\",\"appTitle\":\"我的兔展作品\",\"pfid\":\"be_mVvyV3Vnr\",\"type\":\"2\",\"appUrl\":\"http://testv1.rabbitpre.com/m2/FxAdmCK5XBD\",\"timeInterval\":0,\"gather\":\"\",\"switchGuide\":true,\"loop\":false,\"showReport\":true,\"publish\":false,\"appExtId\":\"539437e8-4a03-4dbd-a278-bec4a6c3aeff\",\"fonts\":\"[]\",\"appVersion\":2,\"brandType\":3,\"animationApplyAll\":1,\"isAdvertising\":false,\"showPageDot\":true,\"clickDynamicParams\":false,\"dataVersion\":1650365239194,\"settings\":\"{\\\"forbidSlideAll\\\":false,\\\"relativePosition\\\":false,\\\"independentTitle\\\":false,\\\"disablePageBounce\\\":false,\\\"posterRelatedAppId\\\":\\\"\\\",\\\"enableUserSelect\\\":false,\\\"appNavigationBarConfig\\\":{},\\\"variables\\\":{\\\"system\\\":[{\\\"name\\\":\\\"作品名称\\\"},{\\\"name\\\":\\\"浏览量\\\"},{\\\"name\\\":\\\"日期\\\"},{\\\"format\\\":\\\"imageLink\\\",\\\"name\\\":\\\"上传的图片\\\"},{\\\"format\\\":\\\"imageLink\\\",\\\"name\\\":\\\"轮播的图片\\\"},{\\\"format\\\":\\\"imageLink\\\",\\\"name\\\":\\\"人脸变化图片\\\"},{\\\"format\\\":\\\"imageLink\\\",\\\"name\\\":\\\"制成的图片\\\",\\\"cmpType\\\":\\\"diyPoster\\\",\\\"cmpValueMap\\\":{}}],\\\"user\\\":[{\\\"format\\\":\\\"imageLink\\\",\\\"name\\\":\\\"微信头像\\\"},{\\\"name\\\":\\\"微信昵称\\\"}],\\\"form\\\":[],\\\"custom\\\":[]},\\\"flowEnabled\\\":false,\\\"designerFlag\\\":false,\\\"auth\\\":{},\\\"styleList\\\":[{\\\"id\\\":\\\"165035950137575\\\",\\\"type\\\":\\\"text\\\",\\\"name\\\":\\\"默认样式\\\",\\\"style\\\":{\\\"fontFamily\\\":\\\"SYHT\\\",\\\"fontSize\\\":16,\\\"lineHeight\\\":18,\\\"letterSpacing\\\":0,\\\"fontWeight\\\":\\\"normal\\\",\\\"fontStyle\\\":\\\"normal\\\",\\\"textDecoration\\\":\\\"none\\\",\\\"textAlign\\\":\\\"left\\\",\\\"writingMode\\\":\\\"\\\",\\\"backgroundColor\\\":\\\"transparent\\\",\\\"color\\\":\\\"#333\\\"},\\\"materials\\\":[]}],\\\"workbench\\\":null}\",\"appContentSource\":\"\",\"sourceAppUserId\":\"096c3c30-a33b-4782-914a-35aaf7f36ceb\",\"contentType\":\"showPage\",\"pages\":[{\"pageExtId\":\"c2a34084-c5e2-498c-b116-c16b73562695\",\"cmps\":\"txt/20220419/3f54e4eb-c703-4834-9470-1746289bafc3.txt\",\"cmpsJson\":\"[]\",\"row\":0,\"col\":0,\"bgColor\":\"#fff\",\"bgImage\":\"\",\"bgServer\":\"\",\"bgLeft\":0,\"bgTop\":0,\"in\":\"\",\"out\":\"\",\"width\":320,\"height\":504,\"opacity\":1.0,\"bgImageType\":0,\"formatVersion\":\"2.0\",\"duration\":0.8,\"imageMaterials\":\"\",\"settings\":\"{\\\"forbidSlide\\\":false,\\\"type\\\":\\\"page\\\",\\\"fullscreenBgValid\\\":false,\\\"pageScroll\\\":true,\\\"resizeLock\\\":false,\\\"isDisabledChangeLockStatus\\\":false}\"}],\"formStructVos\":[],\"editTemplateFlag\":false,\"appPfid\":\"be_mVvyV3Vnr\",\"createClient\":1,\"pluginTemplate\":false}", "orgtplUsecount": 0, "orgtplState": "U", "orgtplStatetime": 1650437190444, "orgtplCt": 1650437190444, "orgtplUt": 1650437190444, "orgtplSpecies": "2", "appVersion": 2 } }