|
|
|
@ -72,35 +72,35 @@ func main() {
|
|
|
|
|
/*将今天的数据copy一份分发到接下来的30天*/
|
|
|
|
|
|
|
|
|
|
manageServer := &http.Server{
|
|
|
|
|
Addr: ":8080",
|
|
|
|
|
Addr: ":8180",
|
|
|
|
|
Handler: manage.Service(),
|
|
|
|
|
ReadTimeout: 5 * time.Second,
|
|
|
|
|
WriteTimeout: 10 * time.Second,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
appServer := &http.Server{
|
|
|
|
|
Addr: ":8081",
|
|
|
|
|
Addr: ":8181",
|
|
|
|
|
Handler: mobile.Service(),
|
|
|
|
|
ReadTimeout: 5 * time.Second,
|
|
|
|
|
WriteTimeout: 10 * time.Second,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
vendServer := &http.Server{
|
|
|
|
|
Addr: ":8082",
|
|
|
|
|
Addr: ":8182",
|
|
|
|
|
Handler: vend.Service(),
|
|
|
|
|
ReadTimeout: 5 * time.Second,
|
|
|
|
|
WriteTimeout: 10 * time.Second,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
storeServer := &http.Server{
|
|
|
|
|
Addr: ":8083",
|
|
|
|
|
Addr: ":8183",
|
|
|
|
|
Handler: store.Service(),
|
|
|
|
|
ReadTimeout: 5 * time.Second,
|
|
|
|
|
WriteTimeout: 10 * time.Second,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
h5Server := &http.Server{
|
|
|
|
|
Addr: ":8084",
|
|
|
|
|
Addr: ":8184",
|
|
|
|
|
Handler: mobile.Service(),
|
|
|
|
|
ReadTimeout: 5 * time.Second,
|
|
|
|
|
WriteTimeout: 10 * time.Second,
|
|
|
|
|