当前位置:网站首页>场景题:A系统如何使用B系统的页面
场景题:A系统如何使用B系统的页面
2022-04-23 03:15:00 【小道仙97】
大多数我们的系统都是独立的,即便是A、B系统有所交互那也是数据层的交互,用接口调用的方式就满足了,但最近接到了这样的一个需求。
A系统新增一个按钮,点击打开B系统的B.B页面,从B系统直接去B.B页面,会比从A系统进去少一些按钮和字段。
思路一
单独为这个写一个页面,然后全部交互都以后端接口的方式去调用。
优点
思路简单理解方便,开发起来也比较简单。
缺点
代码复用率低,维护性差,如果有一个通用的字段改了那么就要修改两个页面。
下次如果C系统也需要B.B页面那不是又得重新开发?或者下次C系统需要B.C页面?这样的开发不合乎代码规范。
思路二
上述方案成立的条件是,B系统必须有一个完整的用户角色菜单功能,也就是你可以通过权限去控制菜单的显示与否。
其实最后就是:设置一个特殊的用户这个用户只能访问特定的页面和特定的按钮。
优点
一次代码多次复用,以后如果xx系统要访问B系统的页面,直接新增一个用户然后配置即可,代码是通用的。
缺点
思路想起来有点麻烦
版权声明
本文为[小道仙97]所创,转载请带上原文链接,感谢
https://blog.csdn.net/Tomwildboar/article/details/119119692
边栏推荐
- Middle and rear binary tree
- JSON related
- Recursion - outputs continuously increasing numbers
- Data mining series (3)_ Data mining plug-in for Excel_ Estimation analysis
- Use DFS to solve the problem of "number of dictionary rows"
- Mysql database, inconsistent index character set, slow SQL query, interface timeout
- 2022 P cylinder filling training test questions and simulation test
- 2022T电梯修理考试模拟100题及在线模拟考试
- Seminar playback video: how to improve Jenkins' ability to become a real Devops platform
- 一套组合拳,打造一款 IDEA 护眼方案
猜你喜欢
OLED多级菜单记录
[MySQL] left function | right function
Configure automatic implementation of curd projects
【VS Code】解决jupyter文件在vs code中显示异常的问题
Laravel8- use JWT
This new feature of C 11, I would like to call it the strongest!
Top 9 task management system in 2022
Tips in MATLAB
[new version release] componentone added Net 6 and blazor platform control support
The most easy to understand dependency injection and control inversion
随机推荐
How does Microsoft solve the problem of multiple programs on PC side -- internal implementation
[vs Code] solve the problem that the jupyter file displays exceptions in vs code
利用正反遍历来解决“字符的最短距离”问题
PID debugging of coding motor (speed loop | position loop | follow)
2022年度Top9的任务管理系统
Two methods are used to solve the "maximum palindrome product" problem
OLED多级菜单记录
Seminar playback video: how to improve Jenkins' ability to become a real Devops platform
《C语言程序设计》(谭浩强第五版) 第7章 用函数实现模块化程序设计 习题解析与答案
[authentication / authorization] customize an authentication handler
TP5 where query one field is not equal to multiple values
Improvement of ref and struct in C 11
svg标签中利用<polygon/>循环数组绘制多边形
TP5 inherits base and uses the variables in base
Maui initial experience: Cool
队列的存储和循环队列
Yes Redis using distributed cache in NE6 webapi
2022 Shandong Province safety officer C certificate work certificate question bank and online simulation examination
Using positive and negative traversal to solve the problem of "the shortest distance of characters"
建立与遍历二叉树