21 lines
281 B
Go
21 lines
281 B
Go
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",
|
|
},
|
|
})
|
|
}
|