Design of different clients in the same system

Source: Internet
Author: User

With the rapid development of modern technology, more and more internet devices, especially smartphones and 3G technology, more and more systems need to develop mobile versions, and there are several mainstream mobile versions.

Among them, Apple's iOS version and Google's Android version have a large market share. Therefore, when developing a system, if we want to implement the functions on the mobile phone end, we generally need to develop Android and IOS versions.

Of course, there may be new mobile terminals using other systems in the future, but currently the mainstream is the two. If a user can have permissions for both Android and PC versions

How should we control the database?

How to design the system's functional permissions and data permissions?

Currently, some systems use a field of the system type to distinguish between them. For example, 1, 2, and 4, 8 indicate different system types. If there are several system permissions, we can add them by addition, calculate the permissions of those systems, or perform multiplication using 1, 3, 5, and 7. Of course, there may also be better implementation methods, but I only know these two methods at present, and others will be further studied and verified.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.