init: 第一次提交
- 以实现登录获取个人信息和课程 - 实现了获取视频记录 - 实现了学习接口
This commit is contained in:
20
cmd/agent/main.go
Normal file
20
cmd/agent/main.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"ckwk/internal/router"
|
||||
"ckwk/pkg/log"
|
||||
"net/http"
|
||||
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
func main() {
|
||||
router := router.SetupRouter()
|
||||
|
||||
if err := http.ListenAndServe(
|
||||
":8080",
|
||||
router,
|
||||
); err != nil {
|
||||
log.Error("服务启动失败", zap.Error(err))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user