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.
22 lines
317 B
22 lines
317 B
package dao |
|
|
|
import ( |
|
"time" |
|
|
|
"go-common/app/service/openplatform/ticket-item/conf" |
|
"go-common/library/log" |
|
) |
|
|
|
func initConf() { |
|
if err := conf.Init(); err != nil { |
|
panic(err) |
|
} |
|
log.Init(conf.Conf.Log) |
|
defer log.Close() |
|
} |
|
|
|
func startService() { |
|
initConf() |
|
d = New(conf.Conf) |
|
time.Sleep(time.Second * 2) |
|
}
|
|
|