推送
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.

18 lines
298 B

4 years ago
  1. package hasaki_push
  2. import "git.ouxuan.net/hasaki-service/hasaki-sdk/hskdb"
  3. func InitDb(config interface{}) (err error) {
  4. if config == nil {
  5. err = hskdb.XormSync2()
  6. if err != nil {
  7. return
  8. }
  9. } else { //分库
  10. err = hskdb.XormSync2(config)
  11. if err != nil {
  12. return
  13. }
  14. }
  15. return
  16. }