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.