user_test.go 1.5 KB

1234567891011121314151617181920212223242526272829303132333435
  1. package system
  2. import (
  3. "fmt"
  4. "github.com/flipped-aurora/gin-vue-admin/server/core"
  5. "github.com/flipped-aurora/gin-vue-admin/server/global"
  6. "github.com/flipped-aurora/gin-vue-admin/server/initialize"
  7. "testing"
  8. )
  9. func TestName(t *testing.T) {
  10. //ssk:="4Iki42L+u5IYKcYABCDe/A=="
  11. //r:="K8yfw2N2JjgdoYwxSvTq39dKEYRruSftVIZHQQEAs9Kh3XRazd1wArh0kkvWKLvxySX/xLI68p973ea9f4cevYPeMENLX/6dFEyCbxv2dcZlKh8sFSi4rqDXuPf36Hayf024ek/35EylDt8n+XqqUfKv1RZePQYZuxThsQ92yba4FB4Nh2VHC7GFoIRQEkOBCq9sTqjX0IAVrUxhs0hz092+1AMZv+pptw9hjYv144/OIzmwxV97H9svAjVvqYbeWexlIocbAp7Z6+dmyHyQILpKFFgWlUE5vVZkDQAAeh+KcV//7aShZu+l7az1er3B5AOkNQ8UJX85Ux5wyCeduxbmOzGdViycrFQVa86r0cEGVFcNWmyGElUse5jzU3H+P/XMJ9AiZZ2ybvT3NrwgdBck49iulEXoWQKjczTGBIE="
  12. //vi:="gIEEvlb9cEjErJxZ5sflrw=="
  13. //phone , _ := weapp.DecryptMobile(ssk, r, vi)
  14. //fmt.Print(phone)
  15. global.GVA_VP = core.Viper() // 初始化Viper
  16. //global.GVA_LOG = core.Zap() // 初始化zap日志库
  17. global.GVA_DB = initialize.Gorm() // gorm连接数据库
  18. _, resysDictionaryDetail := dictionaryDetailService.GetSysDictionaryDetail(8)
  19. fmt.Printf("\t%v", resysDictionaryDetail)
  20. //f,_:=excelize.OpenFile("C:\\Users\\ice\\Documents\\WeChat Files\\zk1006\\FileStorage\\File\\2021-09\\21类.xlsx")
  21. //files := f.GetSheetList()
  22. //for _, sheet := range files {
  23. // rows,_:=f.GetRows(sheet)
  24. // fmt.Println(sheet)
  25. // for _, row := range rows {
  26. // for _, value := range row {
  27. // fmt.Printf("\t%s", strings.Replace(value, "\n", "", -1))
  28. // }
  29. // fmt.Println()
  30. // }
  31. // fmt.Println()
  32. //}
  33. }