team api
This commit is contained in:
16
team/dashboard/dashboard.go
Normal file
16
team/dashboard/dashboard.go
Normal 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
20
team/dashboard/login.go
Normal 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",
|
||||
},
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user