沈阳玫苑物业管理后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
281 B

  1. package inits
  2. import (
  3. "lapp_-wy/inits/parse"
  4. "lapp_-wy/inits/sys"
  5. )
  6. func Init() {
  7. parse.AppOtherParse()
  8. initRootUser()
  9. }
  10. func initRootUser() {
  11. // root is existed?
  12. if sys.CheckRootExit() {
  13. return
  14. }
  15. // create root user
  16. sys.CreateRoot()
  17. sys.CreateSystemRole()
  18. }