feat: 初始化路由组
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package v1
|
||||
|
||||
import "sundynix-go/api/v1/system"
|
||||
|
||||
var ApiGroupApp = new(ApiGroup)
|
||||
|
||||
// ApiGroup 路由组
|
||||
type ApiGroup struct {
|
||||
SystemApiGroup system.ApiGroup
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
package system
|
||||
|
||||
type ApiGroup struct {
|
||||
LoginApi
|
||||
UserApi
|
||||
}
|
||||
@@ -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")
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
package system
|
||||
|
||||
type UserApi struct {
|
||||
}
|
||||
Reference in New Issue
Block a user