This commit is contained in:
Sakurasan
2025-02-01 23:52:55 +08:00
parent 65d6d12972
commit bc223d6530
30 changed files with 2683 additions and 242 deletions

View File

@@ -0,0 +1,16 @@
package dashboard
import "github.com/gin-gonic/gin"
func HandleTeam(c *gin.Context) {
c.JSON(200, gin.H{
"code": 200,
"data": gin.H{
"team": gin.H{
"total_users": 10,
"total_keys": 20,
"total_projects": 30,
},
},
})
}

20
team/dashboard/login.go Normal file
View File

@@ -0,0 +1,20 @@
package dashboard
import (
"fmt"
"github.com/gin-gonic/gin"
)
func HandleLogin(c *gin.Context) {
var user map[string]string
c.ShouldBind(&user)
fmt.Sprintf("%v", user)
c.JSON(200, gin.H{
"code": 200,
"msg": "success",
"data": gin.H{
"token": "token",
},
})
}