20 lines
267 B
Go
20 lines
267 B
Go
|
package server
|
||
|
|
||
|
import (
|
||
|
ecpmhttpserver "youtu_ecpm/api/gin"
|
||
|
)
|
||
|
|
||
|
type EcpmApp struct {
|
||
|
httpserver *ecpmhttpserver.HttpServer
|
||
|
}
|
||
|
|
||
|
func (s *EcpmApp) Run() {
|
||
|
s.httpserver.Run()
|
||
|
}
|
||
|
|
||
|
func NewEcpmApp(srv *ecpmhttpserver.HttpServer) *EcpmApp {
|
||
|
return &EcpmApp{
|
||
|
srv,
|
||
|
}
|
||
|
}
|