企业助手

煤炭能源行业企业助手产品说明


友空间集成

<h1>一、待办消息集成</h1> <table> <thead> <tr> <th>接口名称</th> <th>接口地址</th> </tr> </thead> <tbody> <tr> <td>获取租户所在数据中心域名</td> <td><a href="https://apigateway.yonyoucloud.com/open-auth/dataCenter/getGatewayAddress?tenantId=xxxxxxxx">https://apigateway.yonyoucloud.com/open-auth/dataCenter/getGatewayAddress?tenantId=xxxxxxxx</a></td> </tr> <tr> <td>发送待办消息</td> <td>/yonbip/uspace/rest/openapi/idempotent/todo/push</td> </tr> <tr> <td>撤回(删除)待办消息</td> <td>/yonbip/uspace/rest/openapi/idempotent/todo/push/revocation</td> </tr> <tr> <td>标记待办消息为已处理</td> <td>/yonbip/uspace/rest/openapi/idempotent/todo/push/done</td> </tr> </tbody> </table> <h1>二、小应用集成</h1> <p>&gt; 小应用集成很简单,通过获取APP登录用户,拿到当前用户身份,跳转进入小应用</p> <table> <thead> <tr> <th>参考文档</th> <th>地址</th> </tr> </thead> <tbody> <tr> <td>用友iuap开放平台 (yonyoucloud.com)</td> <td><code>https://open.yonyoucloud.com/#/doc-center/docDes/doc?code=open_jrwd&amp;amp;section=4d98f0c5763b477b95390f25345b3df1</code></td> </tr> <tr> <td>根据友户通userId获取用户信息</td> <td><code>https://open.yonyoucloud.com/iuap-ipaas-base/ucf-wh/console-fe/open-home/index.html#/doc-center/docDes/api?apiId=2bac9773-c3fa-437b-89c7-65f25d274e2f&amp;amp;isOrigin=1&amp;amp;selectApiTab=open</code></td> </tr> </tbody> </table> <h2>集成步骤:</h2> <h3>1、创建小应用:</h3> <p>企业管理员登录用友云工作台(<a href="https://c2.yonyoucloud.com">https://c2.yonyoucloud.com</a>) 。登录完成后,选择租户,点击左上角的快捷应用中的 “数字化建模”-“系统管理”-“我的应用”,点击“我的应用”菜单,进入我的应用页面,点击【添加自建应用】-【集成开发】,打开添加自建应用页面,填写应用基本信息,点击【添加】按钮,返回到应用列表,点击【服务列表】,进入服务列表页,点击【添加自建服务】,打开添加自建服务页面,填写服务信息。</p> <ul> <li> <h4>Web端配置(必须按照这个配置)</h4> <p><img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=c59e80111b8f16c9a02b21d7bee40c2d&amp;amp;file=file.png" alt="" /></p> </li> <li> <h4>友空间配置(必须按照这个配置)</h4> <p><img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=27ea36acd9062b9a529b682d9388e41d&amp;amp;file=file.png" alt="" /></p> <p>&gt; ####切记选择全员应用,才可以控制友空间移动端显示,否则只能在Web端显示,同时Web端需要刷新,移动端需要多等待生效。</p> </li> </ul> <h3>2、配置小应用API访问授权:</h3> <p>进入小应用配置对应的API授权。</p> <table> <thead> <tr> <th>接口名称</th> <th>接口地址</th> </tr> </thead> <tbody> <tr> <td>根据code获取免登信息(用友 YonBIP-协同服务-免登)</td> <td>/yonbip/uspace/freelogin/base_info_by_code</td> </tr> <tr> <td>根据友户通userId获取用户信息(用友 YonBIP-协同服务-用户)</td> <td>/yonbip/uspace/users/list_by_ids</td> </tr> </tbody> </table> <p><img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=48e640bb1c833454e7d577997e715236&amp;amp;file=file.png" alt="友空间小应用 API授权列表" /></p> <h3>3、接口调用(获取用户信息实现免登跳转到对应的地址):</h3> <p><code>ApiFox案例:https://apifox.com/apidoc/shared-f4fd5706-de73-485f-8910-0c4e215376b1</code></p> <ol> <li>获取 access_token</li> <li>获取租户所在数据中心域名</li> <li>点击应用获取访问地址中的code,并访问用户ID</li> <li>通过用户ID换取用户基本信息</li> </ol> <h4>4、开发支持</h4> <table> <thead> <tr> <th>问题</th> <th>支持人</th> </tr> </thead> <tbody> <tr> <td>移动端应用发布有问题联系集团</td> <td>董红飞</td> </tr> <tr> <td>适配、部署</td> <td>田俊文</td> </tr> </tbody> </table>

页面列表

ITEM_HTML