feat: 初始化路由组

This commit is contained in:
Blizzard
2025-04-26 22:41:16 +08:00
parent 5e41df7dc2
commit 77405783c6
17 changed files with 264 additions and 5 deletions
+10
View File
@@ -0,0 +1,10 @@
package v1
import "sundynix-go/api/v1/system"
var ApiGroupApp = new(ApiGroup)
// ApiGroup 路由组
type ApiGroup struct {
SystemApiGroup system.ApiGroup
}
+6
View File
@@ -0,0 +1,6 @@
package system
type ApiGroup struct {
LoginApi
UserApi
}
+15
View File
@@ -0,0 +1,15 @@
package system
import "github.com/gin-gonic/gin"
type LoginApi struct{}
// Login
func (u LoginApi) Login(c *gin.Context) {
c.String(200, "Hello Admin")
}
// Captcha
func (u LoginApi) Captcha(c *gin.Context) {
c.String(200, "Hello Admin")
}
+4
View File
@@ -0,0 +1,4 @@
package system
type UserApi struct {
}