调整swagger注解位置
This commit is contained in:
10
main.go
10
main.go
@@ -7,16 +7,6 @@ import (
|
||||
"git.huangwc.com/pig/pig-farm-controller/internal/core"
|
||||
)
|
||||
|
||||
// @title 猪场管理系统 API
|
||||
// @version 1.0
|
||||
// @description 这是一个用于管理猪场设备的后端服务。
|
||||
// @contact.name Divano
|
||||
// @contact.url http://www.example.com
|
||||
// @contact.email divano@example.com
|
||||
// @license.name Apache 2.0
|
||||
// @license.url http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
// @host localhost:8086
|
||||
// @BasePath /api/v1
|
||||
func main() {
|
||||
// 1. 创建应用实例
|
||||
// 所有复杂的初始化逻辑都已封装在 NewApplication 中
|
||||
|
||||
Reference in New Issue
Block a user